Minor SPEC cleanup

This commit is contained in:
Christopher Meng 2015-02-23 20:20:57 +08:00
parent 47e9b9f814
commit 14f55e7d19

View File

@ -70,13 +70,16 @@ make install DESTDIR=%{buildroot}
rm -rf %{buildroot}%{_infodir}/dir rm -rf %{buildroot}%{_infodir}/dir
# kludge to get around rpmlint complaining about 0 length semephore file # kludge to get around rpmlint complaining about 0 length semephore file
echo freeipmi > %{buildroot}%{_localstatedir}/lib/freeipmi/ipckey echo freeipmi > %{buildroot}%{_localstatedir}/lib/freeipmi/ipckey
# Remove .la files # Remove .la files
rm -rf %{buildroot}%{_libdir}/*.la find %{buildroot} -name '*.la' -delete -print
# Install systemd units # Install systemd units
install -m755 -d %{buildroot}%{_unitdir} install -m755 -d %{buildroot}%{_unitdir}
install -m 644 %SOURCE1 %SOURCE2 %SOURCE3 %{buildroot}%{_unitdir}/ install -pm644 %SOURCE1 %SOURCE2 %SOURCE3 %{buildroot}%{_unitdir}/
# Remove initscripts # Remove initscripts
rm -rf %{buildroot}%{_initrddir} %{buildroot}%{_sysconfdir}/init.d rm -frv %{buildroot}%{_initrddir} %{buildroot}%{_sysconfdir}/init.d
%post %post
/sbin/install-info %{_infodir}/freeipmi-faq.info.gz %{_infodir}/dir &>/dev/null || : /sbin/install-info %{_infodir}/freeipmi-faq.info.gz %{_infodir}/dir &>/dev/null || :