From fbe6261f295bec02efc08016a941dd09c5b205ee Mon Sep 17 00:00:00 2001 From: Jerry James Date: Wed, 11 Nov 2015 20:22:32 -0700 Subject: [PATCH] Minimize LaTeX dependencies. Also: - Drop scriptlets; gap-core now uses rpm file triggers - Rebuild documentation from source --- GAPDoc.spec | 93 ++++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 78 insertions(+), 15 deletions(-) diff --git a/GAPDoc.spec b/GAPDoc.spec index 34af98f..c1ad899 100644 --- a/GAPDoc.spec +++ b/GAPDoc.spec @@ -1,6 +1,6 @@ Name: GAPDoc Version: 1.5.1 -Release: 7%{?dist} +Release: 8%{?dist} Summary: GAP documentation tool # The package is all GPLv2+ except for some of the mathml files @@ -10,9 +10,61 @@ Source0: http://www.math.rwth-aachen.de/~Frank.Luebeck/%{name}/%{name}-%{ BuildArch: noarch BuildRequires: gap-devel +BuildRequires: gap-online-help +BuildRequires: tex(a4wide.sty) +BuildRequires: tex(amssymb.sty) +BuildRequires: tex(babelbib.sty) +BuildRequires: tex(color.sty) +BuildRequires: tex(english.ldf) +BuildRequires: tex(enumitem.sty) +BuildRequires: tex(fancyvrb.sty) +BuildRequires: tex(hyperref.sty) +BuildRequires: tex(inputenc.sty) +BuildRequires: tex(makeidx.sty) +BuildRequires: tex(pslatex.sty) +BuildRequires: tex(psnfss.map) +BuildRequires: tex-bibtex +BuildRequires: tex-cm +BuildRequires: tex-cm-super +BuildRequires: tex-dvips +BuildRequires: tex-ec +BuildRequires: tex-helvetic +BuildRequires: tex-latex-bin +BuildRequires: tex-makeindex +BuildRequires: tex-rsfs +BuildRequires: tex-symbol +BuildRequires: tex-times + Requires: gap-core -Requires: tex(latex) -Provides: gap-pkg-%{name} = %{version}-%{release} +Requires: gap-online-help +Requires: tex(a4wide.sty) +Requires: tex(amssymb.sty) +Requires: tex(babelbib.sty) +Requires: tex(color.sty) +Requires: tex(english.ldf) +Requires: tex(enumitem.sty) +Requires: tex(fancyvrb.sty) +Requires: tex(hyperref.sty) +Requires: tex(inputenc.sty) +Requires: tex(makeidx.sty) +Requires: tex(pslatex.sty) +Requires: tex(psnfss.map) +Requires: tex-bibtex +Requires: tex-cm +Requires: tex-cm-super +Requires: tex-dvips +Requires: tex-ec +Requires: tex-helvetic +Requires: tex-latex-bin +Requires: tex-makeindex +Requires: tex-rsfs +Requires: tex-symbol +Requires: tex-times + +Provides: gap-pkg-gapdoc = %{version}-%{release} + +# Needed to fetch BibTeX entries from MathSciNet +Suggests: gap-pkg-io %description This package describes a document format for writing GAP documentation. @@ -60,27 +112,38 @@ for fil in mathml/{ctop,mathml,pmathml}.xsl; do done %build -# Remove unnecessary documentation clean scripts -rm -f 3k+1/clean doc/clean example/clean +# Link to main GAP documentation +ln -s %{_gap_dir}/doc ../../doc +mkdir ../pkg +ln -s ../GAPDoc-%{version} ../pkg +gap -l "$PWD/..;%{_gap_dir}" makedocrel.g < /dev/null +rm -f ../../doc +rm -fr ../pkg %install -mkdir -p $RPM_BUILD_ROOT%{_gap_dir}/pkg +# Remove unnecessary files +rm -f */clean */*.{aux,bbl,blg,brf,idx,ilg,ind,log,out,pnr,toc} + +# Install +mkdir -p %{buildroot}%{_gap_dir}/pkg cd .. -cp -a %{name}-%{version} $RPM_BUILD_ROOT%{_gap_dir}/pkg -rm -f $RPM_BUILD_ROOT%{_gap_dir}/pkg/%{name}-%{version}/{CHANGES,GPL,README} - -%post -%{_bindir}/update-gap-workspace &> /dev/null || : - -%postun -%{_bindir}/update-gap-workspace &> /dev/null || : +cp -a %{name}-%{version} %{buildroot}%{_gap_dir}/pkg/%{name} +rm -f %{buildroot}%{_gap_dir}/pkg/%{name}/{CHANGES,GPL,README} %files %doc CHANGES README +%docdir %{_gap_dir}/pkg/%{pkgname}/3k+1 +%docdir %{_gap_dir}/pkg/%{pkgname}/doc +%docdir %{_gap_dir}/pkg/%{pkgname}/example %license GPL -%{_gap_dir}/pkg/%{name}-%{version}/ +%{_gap_dir}/pkg/%{name}/ %changelog +* Wed Nov 11 2015 Jerry James - 1.5.1-8 +- Minimize LaTeX dependencies +- Drop scriptlets; gap-core now uses rpm file triggers +- Rebuild documentation from source + * Tue Jun 16 2015 Fedora Release Engineering - 1.5.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild