Merge review changes(#226098) - ship more docs, remove unnecessary things,

require 5.10.1 perl for directory, structure
This commit is contained in:
Ondrej Vasik 2010-02-02 13:04:52 +00:00
parent e5d0a2f69a
commit c534ad8e1c

View File

@ -3,7 +3,7 @@
Summary: A text formatting package based on SGML Summary: A text formatting package based on SGML
Name: linuxdoc-tools Name: linuxdoc-tools
Version: 0.9.66 Version: 0.9.66
Release: 4%{?dist} Release: 5%{?dist}
License: Copyright only License: Copyright only
Group: Applications/Publishing Group: Applications/Publishing
Source: http://http.us.debian.org/debian/pool/main/l/linuxdoc-tools/%{name}_%{version}.tar.gz Source: http://http.us.debian.org/debian/pool/main/l/linuxdoc-tools/%{name}_%{version}.tar.gz
@ -12,7 +12,11 @@ Patch1: linuxdoc-tools-0.9.20-lib64.patch
Url: http://packages.qa.debian.org/l/linuxdoc-tools.html Url: http://packages.qa.debian.org/l/linuxdoc-tools.html
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: flex sgml-common jade gawk groff autoconf texinfo BuildRequires: flex sgml-common jade gawk groff autoconf texinfo
#need actual perl directory structure
BuildRequires: perl >= 4:5.10.1
Requires: jade gawk groff Requires: jade gawk groff
Requires(post): %{_bindir}/texconfig-sys
Requires(postun): %{_bindir}/texconfig-sys
# this should anyway be only a "suggest" # this should anyway be only a "suggest"
%if %{tetex} %if %{tetex}
Requires: tex(latex) Requires: tex(latex)
@ -36,7 +40,7 @@ documentation.
%patch1 -p1 -b .lib64 %patch1 -p1 -b .lib64
%build %build
%configure --with-installed-nsgmls --with-installed-iso-entities %configure --with-installed-iso-entities
# Packaging brain-damage # Packaging brain-damage
pushd entity-map pushd entity-map
autoconf autoconf
@ -55,6 +59,15 @@ make install DESTDIR=$RPM_BUILD_ROOT perl5libdir=$installvendorlib
mv $RPM_BUILD_ROOT%{_docdir}/%{name} $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} mv $RPM_BUILD_ROOT%{_docdir}/%{name} $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
perl -pi -e 's,/usr/share/sgml/iso-entities-8879.1986/iso-entities.cat,\$main::prefix/share/sgml/sgml-iso-entities-8879.1986/catalog,' \ perl -pi -e 's,/usr/share/sgml/iso-entities-8879.1986/iso-entities.cat,\$main::prefix/share/sgml/sgml-iso-entities-8879.1986/catalog,' \
$RPM_BUILD_ROOT$installvendorlib/LinuxDocTools.pm $RPM_BUILD_ROOT$installvendorlib/LinuxDocTools.pm
#Copy license files for parts into docdir
mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/sgmls-1.1
cp -pr sgmls-1.1/LICENSE $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/sgmls-1.1/LICENSE
mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/iso-entities
cp -pr iso-entities/COPYING $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/iso-entities/COPYING
mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/entity-map
cp -pr entity-map/COPYING $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/entity-map/COPYING
cp -pr COPYING $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/
# Some files need moving around. # Some files need moving around.
rm -f $RPM_BUILD_ROOT%{_datadir}/%{name}/epsf.* rm -f $RPM_BUILD_ROOT%{_datadir}/%{name}/epsf.*
@ -63,22 +76,15 @@ install -d $RPM_BUILD_ROOT%{_datadir}/texmf/tex/latex/misc
mv $RPM_BUILD_ROOT%{_datadir}/%{name}/*.sty \ mv $RPM_BUILD_ROOT%{_datadir}/%{name}/*.sty \
$RPM_BUILD_ROOT%{_datadir}/texmf/tex/latex/misc $RPM_BUILD_ROOT%{_datadir}/texmf/tex/latex/misc
cat > doc/COPYRIGHT <<EOF
(C) International Organization for Standardization 1986
Permission to copy in any form is granted for use with
conforming SGML systems and applications as defined in
ISO 8879, provided this notice is included in all copies.
EOF
%clean %clean
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
%post %post
[ -x %{_bindir}/texconfig-sys ] && %{_bindir}/texconfig-sys rehash 2> /dev/null || : %{_bindir}/texconfig-sys rehash 2> /dev/null || :
exit 0 exit 0
%postun %postun
[ -x %{_bindir}/texconfig-sys ] && %{_bindir}/texconfig-sys rehash 2> /dev/null || : %{_bindir}/texconfig-sys rehash 2> /dev/null || :
exit 0 exit 0
%files %files
@ -96,6 +102,11 @@ exit 0
%{_mandir}/*/* %{_mandir}/*/*
%changelog %changelog
* Tue Feb 02 2010 Ondrej Vasik <ovasik@redhat.com> 0.9.66-5
- Merge review changes(#226098) - ship more docs, remove
unnecessary things, require 5.10.1 perl for directory
structure
* Fri Dec 18 2009 Ondrej Vasik <ovasik@redhat.com> 0.9.66-4 * Fri Dec 18 2009 Ondrej Vasik <ovasik@redhat.com> 0.9.66-4
- fix perl5 dir paths - fix perl5 dir paths