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
17 BuildRoot: %{_tmppath}/%{name}-%{version}-build
18 Group: Development/Tools/Debuggers
21 xds-gdb is an agent that should run on your local machine when you use XDS
29 mkdir -p %{?buildroot}%{_prefix}/xds/gdb %{?buildroot}%{_bindir}
30 cp xds-gdb %{?buildroot}%{_prefix}/xds/gdb
31 ln -s ../xds/gdb/xds-gdb %{?buildroot}%{_bindir}/xds-gdb
33 mkdir -p %{?buildroot}%{_sysconfdir}/profile.d
34 sed -e "s;@XDS_INSTALL_BIN_DIR@;%{_bindir};g" ./conf.d/etc/profile.d/xds-gdb.sh > %{buildroot}%{_sysconfdir}/profile.d/%{name}.sh
41 %dir %{_prefix}/xds/gdb
44 %config %{_sysconfdir}/profile.d/%{name}.sh
45 %attr(644,root,root) %{_sysconfdir}/profile.d/%{name}.sh