remove obsolete macros

This commit is contained in:
Miroslav Lichvar 2013-02-27 11:37:35 +01:00
parent a40d3f4607
commit 6274f032ad

View File

@ -10,7 +10,6 @@ Source0: http://download.savannah.gnu.org/releases/gpsd/%{name}-%{version}.tar.g
Source10: gpsd.service Source10: gpsd.service
Source11: gpsd.sysconfig Source11: gpsd.sysconfig
Patch1: gpsd-nolibcap.patch Patch1: gpsd-nolibcap.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: dbus-devel dbus-glib-devel ncurses-devel xmlto python-devel BuildRequires: dbus-devel dbus-glib-devel ncurses-devel xmlto python-devel
BuildRequires: scons desktop-file-utils bluez-libs-devel pps-tools-devel BuildRequires: scons desktop-file-utils bluez-libs-devel pps-tools-devel
@ -95,7 +94,6 @@ scons \
%install %install
rm -rf %{buildroot}
# avoid rebuilding # avoid rebuilding
export CCFLAGS="%{optflags}" export CCFLAGS="%{optflags}"
DESTDIR=%{buildroot} scons install DESTDIR=%{buildroot} scons install
@ -144,10 +142,6 @@ for i in %{buildroot}%{python_sitearch}/gps/*.so; do
chrpath -d $i chrpath -d $i
done done
%clean
rm -rf %{buildroot}
%post %post
/bin/systemctl daemon-reload &> /dev/null /bin/systemctl daemon-reload &> /dev/null
if [ -f %{_initrddir}/%{name} ] && /sbin/chkconfig --level 3 %{name}; then if [ -f %{_initrddir}/%{name} ] && /sbin/chkconfig --level 3 %{name}; then
@ -169,7 +163,6 @@ fi
%files %files
%defattr(-,root,root,-)
%doc README INSTALL COPYING %doc README INSTALL COPYING
%config(noreplace) %{_sysconfdir}/sysconfig/%{name} %config(noreplace) %{_sysconfdir}/sysconfig/%{name}
%config(noreplace) %{_sysconfdir}/udev/rules.d/* %config(noreplace) %{_sysconfdir}/udev/rules.d/*
@ -189,13 +182,11 @@ fi
%{_mandir}/man1/gpsctl.1* %{_mandir}/man1/gpsctl.1*
%files libs %files libs
%defattr(-,root,root,-)
%{_libdir}/libgps*.so.* %{_libdir}/libgps*.so.*
%{python_sitearch}/gps* %{python_sitearch}/gps*
%exclude %{python_sitearch}/gps/fake* %exclude %{python_sitearch}/gps/fake*
%files devel %files devel
%defattr(-,root,root,-)
%doc TODO %doc TODO
%{_bindir}/gpsfake %{_bindir}/gpsfake
%{_libdir}/libgps*.so %{_libdir}/libgps*.so
@ -212,7 +203,6 @@ fi
%{_mandir}/man5/srec.5* %{_mandir}/man5/srec.5*
%files clients %files clients
%defattr(-,root,root,-)
%{_bindir}/cgps %{_bindir}/cgps
%{_bindir}/gegps %{_bindir}/gegps
%{_bindir}/gpscat %{_bindir}/gpscat