use rm and install directly instead of macros
This commit is contained in:
parent
b9bc8e525d
commit
6a43fd3e78
@ -157,8 +157,8 @@ DESTDIR=%{buildroot} scons install systemd_install udev-install
|
|||||||
# use the old name for udev rules
|
# use the old name for udev rules
|
||||||
mv %{buildroot}%{_udevrulesdir}/{25,99}-gpsd.rules
|
mv %{buildroot}%{_udevrulesdir}/{25,99}-gpsd.rules
|
||||||
|
|
||||||
%{__install} -d -m 0755 %{buildroot}%{_sysconfdir}/sysconfig
|
install -d -m 0755 %{buildroot}%{_sysconfdir}/sysconfig
|
||||||
%{__install} -p -m 0644 %{SOURCE11} \
|
install -p -m 0644 %{SOURCE11} \
|
||||||
%{buildroot}%{_sysconfdir}/sysconfig/gpsd
|
%{buildroot}%{_sysconfdir}/sysconfig/gpsd
|
||||||
|
|
||||||
# Install the .desktop files
|
# Install the .desktop files
|
||||||
@ -170,12 +170,12 @@ desktop-file-install \
|
|||||||
packaging/X11/xgpsspeed.desktop
|
packaging/X11/xgpsspeed.desktop
|
||||||
|
|
||||||
# Missed in scons install
|
# Missed in scons install
|
||||||
%{__install} -p -m 0755 gpsinit %{buildroot}%{_sbindir}
|
install -p -m 0755 gpsinit %{buildroot}%{_sbindir}
|
||||||
|
|
||||||
# If qt build was disabled, clean up the files that may have been installed
|
# If qt build was disabled, clean up the files that may have been installed
|
||||||
# anyway
|
# anyway
|
||||||
%if !%{with_qt}
|
%if !%{with_qt}
|
||||||
%{__rm} -f %{buildroot}%{_libdir}/libQgpsmm* \
|
rm -f %{buildroot}%{_libdir}/libQgpsmm* \
|
||||||
%{buildroot}%{_libdir}/pkgconfig/Qgpsmm* \
|
%{buildroot}%{_libdir}/pkgconfig/Qgpsmm* \
|
||||||
%{buildroot}%{_mandir}/man3/libQgpsmm.3*
|
%{buildroot}%{_mandir}/man3/libQgpsmm.3*
|
||||||
%endif
|
%endif
|
||||||
|
Loading…
Reference in New Issue
Block a user