Add macros.info

This commit is contained in:
Vitezslav Crhonek 2015-02-02 13:46:49 +01:00
parent af9bf89d49
commit e829fdab7e
2 changed files with 26 additions and 1 deletions

15
macros.info Normal file
View File

@ -0,0 +1,15 @@
%info_requires \
Requires(post): /usr/sbin/install-info \
Requires(preun): /usr/sbin/install-info
%info_post() \
if [ -f %{_infodir}/%1 ]; then # --excludedocs? \
/usr/sbin/install-info %{_infodir}/%1 %{_infodir}/dir || : \
fi
%info_preun() \
if [ $1 == 0 ]; then \
if [ -f %{_infodir}/%1 ]; then # --excludedocs? \
/usr/sbin/install-info --delete %{_infodir}/%1 %{_infodir}/dir || : \
fi \
fi

View File

@ -5,7 +5,7 @@
Summary: Tools needed to create Texinfo format documentation files Summary: Tools needed to create Texinfo format documentation files
Name: texinfo Name: texinfo
Version: 5.2 Version: 5.2
Release: 7%{?dist} Release: 8%{?dist}
License: GPLv3+ License: GPLv3+
Group: Applications/Publishing Group: Applications/Publishing
Url: http://www.gnu.org/software/texinfo/ Url: http://www.gnu.org/software/texinfo/
@ -16,6 +16,8 @@ Source2: info-dir
Source3: filter-requires-texinfo.sh Source3: filter-requires-texinfo.sh
# Source4: script for filtering out false perl provides # Source4: script for filtering out false perl provides
Source4: filter-provides-texinfo.sh Source4: filter-provides-texinfo.sh
# Source5: macro definitions
Source5: macros.info
Patch0: texinfo-4.12-zlib.patch Patch0: texinfo-4.12-zlib.patch
Patch1: texinfo-4.13a-powerpc.patch Patch1: texinfo-4.13a-powerpc.patch
# Patch2: bz#1053129, already upstream # Patch2: bz#1053129, already upstream
@ -87,6 +89,9 @@ install -p -m644 doc/texinfo.tex doc/txi-??.tex $RPM_BUILD_ROOT%{tex_texinfo}
install -p -m644 %{SOURCE2} $RPM_BUILD_ROOT%{_infodir}/dir install -p -m644 %{SOURCE2} $RPM_BUILD_ROOT%{_infodir}/dir
mv $RPM_BUILD_ROOT%{_bindir}/install-info $RPM_BUILD_ROOT/sbin mv $RPM_BUILD_ROOT%{_bindir}/install-info $RPM_BUILD_ROOT/sbin
mkdir -p $RPM_BUILD_ROOT%{_rpmconfigdir}/macros.d
cp %{SOURCE5} $RPM_BUILD_ROOT%{_rpmconfigdir}/macros.d
%find_lang %{name} %find_lang %{name}
%find_lang %{name}_document %find_lang %{name}_document
@ -156,6 +161,7 @@ fi
%{_mandir}/man1/infokey.1* %{_mandir}/man1/infokey.1*
%{_mandir}/man1/install-info.1* %{_mandir}/man1/install-info.1*
%{_mandir}/man5/info.5* %{_mandir}/man5/info.5*
%{_rpmconfigdir}/macros.d/macros.info
%files tex %files tex
%{_bindir}/texindex %{_bindir}/texindex
@ -169,6 +175,10 @@ fi
%{_mandir}/man1/pdftexi2dvi.1* %{_mandir}/man1/pdftexi2dvi.1*
%changelog %changelog
* Mon Feb 02 2015 Vitezslav Crhonek <vcrhonek@redhat.com> - 5.2-8
- Add macros.info
Resolves: #948735
* Thu Oct 30 2014 Vitezslav Crhonek <vcrhonek@redhat.com> - 5.2-7 * Thu Oct 30 2014 Vitezslav Crhonek <vcrhonek@redhat.com> - 5.2-7
- Filter bogus perl requires/provides - Filter bogus perl requires/provides
- Enable upstream test suite - Enable upstream test suite