2 # spec file for package agl-xds-gdb
5 %define _prefix /opt/AGL
6 %global debug_package %{nil}
12 Summary: Wrapper on gdb debugger for XDS
13 Url: https://gerrit.automotivelinux.org/gerrit/p/src/xds/xds-gdb.git
14 Source0: xds-gdb_linux-amd64-%{version}.zip
16 BuildRoot: %{_tmppath}/%{name}-%{version}-build
17 Group: Development/Tools/Debuggers
20 xds-gdb is an agent that should run on your local machine when you use XDS
28 mkdir -p %{?buildroot}%{_prefix}/xds/gdb %{?buildroot}%{_bindir}
29 cp xds-gdb %{?buildroot}%{_prefix}/xds/gdb
30 ln -s ../xds/gdb/xds-gdb %{?buildroot}%{_bindir}/xds-gdb
32 mkdir -p %{?buildroot}%{_sysconfdir}/profile.d
33 sed -e "s;@XDS_INSTALL_BIN_DIR@;%{_bindir};g" ./conf.d/etc/profile.d/xds-gdb.sh > %{buildroot}%{_sysconfdir}/profile.d/%{name}.sh
40 %dir %{_prefix}/xds/gdb
43 %config %{_sysconfdir}/profile.d/%{name}.sh
44 %attr(644,root,root) %{_sysconfdir}/profile.d/%{name}.sh