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://github.com/iotbzh/xds-gdb.git
14 Source0: xds-gdb_linux-amd64-v1.0.2_2018-04-05_131503.zip
16 BuildRoot: %{_tmppath}/%{name}-%{version}-build
19 xds-gdb is an agent that should run on your local machine when you use XDS
27 mkdir -p %{?buildroot}%{_prefix}/xds/gdb %{?buildroot}%{_bindir}
28 cp xds-gdb %{?buildroot}%{_prefix}/xds/gdb
29 ln -s ../xds/gdb/xds-gdb %{?buildroot}%{_bindir}/xds-gdb
30 mkdir -p %{?buildroot}%{_sysconfdir}/profile.d
31 sed -e "s;@XDS_INSTALL_BIN_DIR@;%{_bindir};g" ./conf.d/etc/profile.d/xds-gdb.sh > %{buildroot}%{_sysconfdir}/profile.d/%{name}.sh
38 %dir %{_prefix}/xds/gdb
40 %{_prefix}/bin/xds-gdb
41 %config %{_sysconfdir}/profile.d/%{name}.sh