Remove scriptlets that manipulate info entries.
This commit is contained in:
parent
48d5fc81bc
commit
34528f5f20
19
check.spec
19
check.spec
@ -17,9 +17,6 @@ BuildRequires: pkgconfig
|
|||||||
BuildRequires: subunit-devel
|
BuildRequires: subunit-devel
|
||||||
BuildRequires: texinfo
|
BuildRequires: texinfo
|
||||||
|
|
||||||
Requires(post): info
|
|
||||||
Requires(preun): info
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Check is a unit test framework for C. It features a simple interface for
|
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
|
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>]]&|' \
|
sed -e '/DECLS(\[a/s|)|,,,[AC_INCLUDES_DEFAULT\n[#include <time.h>\n #include <sys/time.h>]]&|' \
|
||||||
-i configure.ac
|
-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
|
# Get rid of version control files
|
||||||
find . -name .cvsignore -exec rm {} +
|
find . -name .cvsignore -exec rm {} +
|
||||||
|
|
||||||
@ -94,18 +95,6 @@ rm -rf checkmk/test/check_checkmk*
|
|||||||
# these files are empty
|
# these files are empty
|
||||||
rm -rf checkmk/test/empty_input
|
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
|
%ldconfig_scriptlets
|
||||||
|
|
||||||
%files
|
%files
|
||||||
|
Loading…
Reference in New Issue
Block a user