- fixed install of .info files

This commit is contained in:
Tomáš Mráz 2005-08-08 08:39:25 +00:00
parent ece0766187
commit 4237faff13

View File

@ -65,6 +65,7 @@ rm -f $RPM_BUILD_ROOT/%{_bindir}/srptool
rm -f $RPM_BUILD_ROOT/%{_bindir}/gnutls-srpcrypt
rm -f $RPM_BUILD_ROOT/%{_mandir}/man1/srptool.1
rm -f $RPM_BUILD_ROOT/%{_mandir}/man3/*srp*
rm -f $RPM_BUILD_ROOT/%{_infodir}/dir
%check
make check
@ -76,6 +77,16 @@ rm -fr $RPM_BUILD_ROOT
%postun -p /sbin/ldconfig
%post devel
if [ -f %{_infodir}/gnutls.info.gz ]; then
/sbin/install-info %{_infodir}/gnutls.info.gz %{_infodir}/dir
fi
%preun devel
if [ $1 = 0 -a -f %{_infodir}/gnutls.info.gz ]; then
/sbin/install-info --delete %{_infodir}/gnutls.info.gz %{_infodir}/dir
fi
%files
%defattr(-,root,root)
%{_libdir}/*.so.*