Remove obsolete scriptlets
References: https://fedoraproject.org/wiki/Changes/RemoveObsoleteScriptlets Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
parent
44fa350fc5
commit
2a04c480d2
14
bison.spec
14
bison.spec
@ -18,8 +18,6 @@ URL: http://www.gnu.org/software/bison/
|
|||||||
BuildRequires: m4 >= 1.4
|
BuildRequires: m4 >= 1.4
|
||||||
#java-1.7.0-openjdk-devel
|
#java-1.7.0-openjdk-devel
|
||||||
Requires: m4 >= 1.4
|
Requires: m4 >= 1.4
|
||||||
Requires(post): /sbin/install-info
|
|
||||||
Requires(preun): /sbin/install-info
|
|
||||||
|
|
||||||
# bison contains a copy of gnulib. As a copylib, gnulib was granted
|
# bison contains a copy of gnulib. As a copylib, gnulib was granted
|
||||||
# an exception that allows bundling it with other software. For
|
# an exception that allows bundling it with other software. For
|
||||||
@ -104,18 +102,6 @@ rm -f $RPM_BUILD_ROOT/%{_docdir}/%{name}/examples/rpcalc/*
|
|||||||
|
|
||||||
gzip -9nf ${RPM_BUILD_ROOT}%{_infodir}/bison.info*
|
gzip -9nf ${RPM_BUILD_ROOT}%{_infodir}/bison.info*
|
||||||
|
|
||||||
%post
|
|
||||||
if [ -f %{_infodir}/bison.info.gz ]; then # for --excludedocs
|
|
||||||
/sbin/install-info %{_infodir}/bison.info.gz %{_infodir}/dir --entry="* bison: (bison). The GNU parser generator." || :
|
|
||||||
fi
|
|
||||||
|
|
||||||
%preun
|
|
||||||
if [ $1 = 0 ]; then
|
|
||||||
if [ -f %{_infodir}/bison.info.gz ]; then # for --excludedocs
|
|
||||||
/sbin/install-info --delete %{_infodir}/bison.info.gz %{_infodir}/dir --entry="* bison: (bison). The GNU parser generator." || :
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
# The distribution contains also source files. These are used by m4
|
# The distribution contains also source files. These are used by m4
|
||||||
# when the target parser file is generated.
|
# when the target parser file is generated.
|
||||||
%files -f %{name}.lang
|
%files -f %{name}.lang
|
||||||
|
Loading…
Reference in New Issue
Block a user