use rm and install directly instead of macros

This commit is contained in:
Miroslav Lichvar 2023-05-11 14:15:57 +02:00
parent b9bc8e525d
commit 6a43fd3e78

View File

@ -157,8 +157,8 @@ DESTDIR=%{buildroot} scons install systemd_install udev-install
# use the old name for udev rules
mv %{buildroot}%{_udevrulesdir}/{25,99}-gpsd.rules
%{__install} -d -m 0755 %{buildroot}%{_sysconfdir}/sysconfig
%{__install} -p -m 0644 %{SOURCE11} \
install -d -m 0755 %{buildroot}%{_sysconfdir}/sysconfig
install -p -m 0644 %{SOURCE11} \
%{buildroot}%{_sysconfdir}/sysconfig/gpsd
# Install the .desktop files
@ -170,12 +170,12 @@ desktop-file-install \
packaging/X11/xgpsspeed.desktop
# 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
# anyway
%if !%{with_qt}
%{__rm} -f %{buildroot}%{_libdir}/libQgpsmm* \
rm -f %{buildroot}%{_libdir}/libQgpsmm* \
%{buildroot}%{_libdir}/pkgconfig/Qgpsmm* \
%{buildroot}%{_mandir}/man3/libQgpsmm.3*
%endif