merge review fixes

This commit is contained in:
vcrhonek 2008-01-22 11:25:03 +00:00
parent 0679bb249b
commit ab8f64d7fa

View File

@ -2,7 +2,7 @@ Summary: Tools needed to create Texinfo format documentation files
Name: texinfo Name: texinfo
Version: 4.11 Version: 4.11
Release: 4%{?dist} Release: 4%{?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/
Source0: ftp://ftp.gnu.org/gnu/texinfo/texinfo-%{version}.tar.bz2 Source0: ftp://ftp.gnu.org/gnu/texinfo/texinfo-%{version}.tar.bz2
@ -16,10 +16,6 @@ Requires(preun): /sbin/install-info
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: zlib-devel, ncurses-devel BuildRequires: zlib-devel, ncurses-devel
# Redefine this so "dir" in the info directory isn't compressed
%define __spec_install_post %{?__debug_package:%{__debug_install_post}} /usr/lib/rpm/brp-strip \; /usr/lib/rpm/brp-strip-comment-note \; rm -f
%description %description
Texinfo is a documentation system that can produce both online Texinfo is a documentation system that can produce both online
information and printed output from a single source file. The GNU information and printed output from a single source file. The GNU
@ -65,7 +61,6 @@ for printing using TeX.
%patch2 -p1 -b .direntry %patch2 -p1 -b .direntry
%build %build
%configure %configure
make %{?_smp_mflags} make %{?_smp_mflags}
@ -73,43 +68,44 @@ make %{?_smp_mflags}
rm -rf ${RPM_BUILD_ROOT} rm -rf ${RPM_BUILD_ROOT}
mkdir -p ${RPM_BUILD_ROOT}/sbin mkdir -p ${RPM_BUILD_ROOT}/sbin
make install DESTDIR=$RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p'
pushd ${RPM_BUILD_ROOT} install -p -m644 %{SOURCE2} $RPM_BUILD_ROOT%{_mandir}/man1/texi2pdf.1
install -m644 %{SOURCE2} .%{_mandir}/man1/texi2pdf.1 install -p -m644 %{SOURCE1} $RPM_BUILD_ROOT%{_infodir}/dir
gzip -n -9f .%{_infodir}/*info* mv $RPM_BUILD_ROOT%{_bindir}/install-info $RPM_BUILD_ROOT/sbin
gzip -n -9f .%{_mandir}/*/*
install -m644 %{SOURCE1} .%{_infodir}/dir
mv -f .%{_bindir}/install-info ./sbin
popd
rm -f $RPM_BUILD_ROOT%{_datadir}/texinfo/texinfo.{xsl,dtd} rm -f $RPM_BUILD_ROOT%{_datadir}/texinfo/texinfo.{xsl,dtd}
# Convert ChangeLog to UTF-8
mv ChangeLog ChangeLog_iso
/usr/bin/iconv -f iso-8859-2 -t utf-8 < ChangeLog_iso > ChangeLog
rm -f ChangeLog_iso
%find_lang %name %find_lang %name
%clean %clean
rm -rf ${RPM_BUILD_ROOT} rm -rf ${RPM_BUILD_ROOT}
%post %post
/sbin/install-info %{_infodir}/texinfo.gz %{_infodir}/dir || : /sbin/install-info %{_infodir}/texinfo %{_infodir}/dir || :
%preun %preun
if [ $1 = 0 ]; then if [ $1 = 0 ]; then
/sbin/install-info --delete %{_infodir}/texinfo.gz %{_infodir}/dir || : /sbin/install-info --delete %{_infodir}/texinfo %{_infodir}/dir || :
fi fi
%post -n info %post -n info
/sbin/install-info %{_infodir}/info-stnd.info.gz %{_infodir}/dir || : /sbin/install-info %{_infodir}/info-stnd.info %{_infodir}/dir || :
%preun -n info %preun -n info
if [ $1 = 0 ]; then if [ $1 = 0 ]; then
/sbin/install-info --delete %{_infodir}/info-stnd.info.gz %{_infodir}/dir \ /sbin/install-info --delete %{_infodir}/info-stnd.info %{_infodir}/dir \
|| : || :
fi fi
%files -f %{name}.lang %files -f %{name}.lang
%defattr(-,root,root) %defattr(-,root,root,-)
%doc AUTHORS ChangeLog INTRODUCTION NEWS README TODO %doc AUTHORS ChangeLog INTRODUCTION NEWS README TODO COPYING
%{_bindir}/makeinfo %{_bindir}/makeinfo
%{_datadir}/texinfo %{_datadir}/texinfo
%{_infodir}/texinfo* %{_infodir}/texinfo*
@ -117,7 +113,7 @@ fi
%{_mandir}/man5/texinfo.5* %{_mandir}/man5/texinfo.5*
%files -n info %files -n info
%defattr(-,root,root) %defattr(-,root,root,-)
%config(noreplace) %verify(not md5 size mtime) %{_infodir}/dir %config(noreplace) %verify(not md5 size mtime) %{_infodir}/dir
%doc COPYING %doc COPYING
%{_bindir}/info %{_bindir}/info
@ -415,6 +411,7 @@ fi
* Thu Mar 11 1999 Cristian Gafton <gafton@redhat.com> * Thu Mar 11 1999 Cristian Gafton <gafton@redhat.com>
- version 3.12f - version 3.12f
- make /usr/info/dir to be a %%config(noreplace) - make /usr/info/dir to be a %%config(noreplace)
* Wed Nov 25 1998 Jeff Johnson <jbj@redhat.com> * Wed Nov 25 1998 Jeff Johnson <jbj@redhat.com>
- rebuild to fix docdir perms. - rebuild to fix docdir perms.