Minor SPEC cleanup

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

View File

@ -28,7 +28,7 @@ Summary: Development package for FreeIPMI
Group: Development/System
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
Development package for FreeIPMI. This package includes the FreeIPMI
Development package for FreeIPMI. This package includes the FreeIPMI
header files and libraries.
%package bmc-watchdog
@ -70,13 +70,16 @@ make install DESTDIR=%{buildroot}
rm -rf %{buildroot}%{_infodir}/dir
# kludge to get around rpmlint complaining about 0 length semephore file
echo freeipmi > %{buildroot}%{_localstatedir}/lib/freeipmi/ipckey
# Remove .la files
rm -rf %{buildroot}%{_libdir}/*.la
find %{buildroot} -name '*.la' -delete -print
# Install systemd units
install -m 755 -d %{buildroot}%{_unitdir}
install -m 644 %SOURCE1 %SOURCE2 %SOURCE3 %{buildroot}%{_unitdir}/
install -m755 -d %{buildroot}%{_unitdir}
install -pm644 %SOURCE1 %SOURCE2 %SOURCE3 %{buildroot}%{_unitdir}/
# Remove initscripts
rm -rf %{buildroot}%{_initrddir} %{buildroot}%{_sysconfdir}/init.d
rm -frv %{buildroot}%{_initrddir} %{buildroot}%{_sysconfdir}/init.d
%post
/sbin/install-info %{_infodir}/freeipmi-faq.info.gz %{_infodir}/dir &>/dev/null || :