Remove scriptlets that manipulate info entries.

This commit is contained in:
Jerry James 2018-07-06 19:28:41 -06:00
parent 48d5fc81bc
commit 34528f5f20

View File

@ -17,9 +17,6 @@ BuildRequires: pkgconfig
BuildRequires: subunit-devel
BuildRequires: texinfo
Requires(post): info
Requires(preun): info
%description
Check is a unit test framework for C. It features a simple interface for
defining unit tests, putting little in the way of the developer. Tests
@ -62,6 +59,10 @@ programs suitable for use with the Check unit test framework.
sed -e '/DECLS(\[a/s|)|,,,[AC_INCLUDES_DEFAULT\n[#include <time.h>\n #include <sys/time.h>]]&|' \
-i configure.ac
# Improve the info directory entry
sed -e 's/\(Check: (check)\)Introduction./\1. A unit testing framework for C./' \
-i doc/check.texi
# Get rid of version control files
find . -name .cvsignore -exec rm {} +
@ -94,18 +95,6 @@ rm -rf checkmk/test/check_checkmk*
# these files are empty
rm -rf checkmk/test/empty_input
%post
if [ -e %{_infodir}/%{name}.info* ]; then
/sbin/install-info \
--entry='* Check: (check). A unit testing framework for C.' \
%{_infodir}/%{name}.info %{_infodir}/dir || :
fi
%preun
if [ $1 = 0 -a -e %{_infodir}/%{name}.info* ]; then
/sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || :
fi
%ldconfig_scriptlets
%files