Rebuild for GAP 4.10.0.
Also: - Change BRs and Rs due to recent TeXLive packaging changes. - Create -doc subpackage.
This commit is contained in:
parent
522ac31df2
commit
92e4524939
81
GAPDoc.spec
81
GAPDoc.spec
@ -1,6 +1,6 @@
|
||||
Name: GAPDoc
|
||||
Version: 1.6.2
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?dist}
|
||||
Summary: GAP documentation tool
|
||||
|
||||
# The package is all GPLv2+ except for some of the mathml files
|
||||
@ -10,29 +10,19 @@ Source0: http://www.math.rwth-aachen.de/~Frank.Luebeck/%{name}/%{name}-%{
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: gap-devel
|
||||
BuildRequires: gap-online-help
|
||||
BuildRequires: ghostscript
|
||||
BuildRequires: tex(color.cfg)
|
||||
BuildRequires: tex(color.sty)
|
||||
BuildRequires: tex(english.ldf)
|
||||
BuildRequires: tex(enumitem.sty)
|
||||
BuildRequires: tex(fancyvrb.sty)
|
||||
BuildRequires: tex(geometry.sty)
|
||||
BuildRequires: tex(language.dat)
|
||||
BuildRequires: tex(pdftex.map)
|
||||
BuildRequires: tex(pslatex.sty)
|
||||
BuildRequires: tex(psnfss.map)
|
||||
BuildRequires: tex(updmap-hdr.cfg)
|
||||
BuildRequires: tex-bibtex
|
||||
BuildRequires: tex-cm
|
||||
BuildRequires: tex(tex)
|
||||
BuildRequires: tex-cm-super
|
||||
BuildRequires: tex-dvips
|
||||
BuildRequires: tex-ec
|
||||
BuildRequires: tex-gsftopk
|
||||
BuildRequires: tex-helvetic
|
||||
BuildRequires: tex-latex-bin
|
||||
BuildRequires: tex-makeindex
|
||||
BuildRequires: tex-metafont
|
||||
BuildRequires: tex-mfware
|
||||
BuildRequires: tex-rsfs
|
||||
BuildRequires: tex-symbol
|
||||
BuildRequires: tex-times
|
||||
@ -78,29 +68,21 @@ This package provides:
|
||||
|
||||
%package latex
|
||||
Summary: All LaTeX dependencies for GAPDoc
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: gap-online-help
|
||||
Requires: ghostscript
|
||||
Requires: tex(color.cfg)
|
||||
Requires: tex(color.sty)
|
||||
Requires: tex(english.ldf)
|
||||
Requires: tex(enumitem.sty)
|
||||
Requires: tex(fancyvrb.sty)
|
||||
Requires: tex(geometry.sty)
|
||||
Requires: tex(language.dat)
|
||||
Requires: tex(pdftex.map)
|
||||
Requires: tex(pslatex.sty)
|
||||
Requires: tex(psnfss.map)
|
||||
Requires: tex(updmap-hdr.cfg)
|
||||
Requires: tex-bibtex
|
||||
Requires: tex-cm
|
||||
Requires: tex(tex)
|
||||
Requires: tex-cm-super
|
||||
Requires: tex-dvips
|
||||
Requires: tex-ec
|
||||
Requires: tex-gsftopk
|
||||
Requires: tex-helvetic
|
||||
Requires: tex-latex-bin
|
||||
Requires: tex-makeindex
|
||||
Requires: tex-metafont
|
||||
Requires: tex-mfware
|
||||
Requires: tex-rsfs
|
||||
Requires: tex-symbol
|
||||
Requires: tex-times
|
||||
@ -116,40 +98,65 @@ then dragging in all of the LaTeX dependencies is wasteful. Install
|
||||
this package to pull in all of the necessary LaTeX dependencies for
|
||||
building GAP package documentation.
|
||||
|
||||
%package doc
|
||||
Summary: GAPDoc documentation
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: gap-online-help
|
||||
|
||||
%description doc
|
||||
This package contains documentation for GAPDoc.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%autosetup
|
||||
|
||||
# Fix character encoding
|
||||
iconv -f ISO8859-1 -t UTF-8 3k+1/3k+1.bib > 3k+1/3k+1.bib.utf8
|
||||
touch -r 3k+1/3k+1.bib 3k+1/3k+1.bib.utf8
|
||||
mv -f 3k+1/3k+1.bib.utf8 3k+1/3k+1.bib
|
||||
|
||||
%build
|
||||
# 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
|
||||
gap -l "$PWD/..;%{_gap_dir}" < makedocrel.g
|
||||
rm -fr ../../doc ../pkg
|
||||
|
||||
# Remove build paths
|
||||
sed -i "s|$PWD/..|%{_gap_dir}|g" doc/*.html example/*.html
|
||||
|
||||
%install
|
||||
# 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} %{buildroot}%{_gap_dir}/pkg/%{name}
|
||||
cp -a ../%{name}-%{version} %{buildroot}%{_gap_dir}/pkg/%{name}
|
||||
rm -f %{buildroot}%{_gap_dir}/pkg/%{name}/{3k+1,doc,example}/clean
|
||||
rm -f %{buildroot}%{_gap_dir}/pkg/%{name}/{3k+1,doc,example}/*.{aux,bbl,blg,brf,idx,ilg,ind,log,out,pnr,tex}
|
||||
rm -f %{buildroot}%{_gap_dir}/pkg/%{name}/{CHANGES,GPL,README.md}
|
||||
|
||||
%files
|
||||
%doc CHANGES README.md
|
||||
%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}/
|
||||
%exclude %{_gap_dir}/pkg/%{name}/3k+1/
|
||||
%exclude %{_gap_dir}/pkg/%{name}/doc/
|
||||
%exclude %{_gap_dir}/pkg/%{name}/example/
|
||||
|
||||
%files latex
|
||||
# This is a metapackage to pull in dependencies only
|
||||
|
||||
%files doc
|
||||
%docdir %{_gap_dir}/pkg/%{name}/3k+1/
|
||||
%docdir %{_gap_dir}/pkg/%{name}/doc/
|
||||
%docdir %{_gap_dir}/pkg/%{name}/example/
|
||||
%{_gap_dir}/pkg/%{name}/3k+1/
|
||||
%{_gap_dir}/pkg/%{name}/doc/
|
||||
%{_gap_dir}/pkg/%{name}/example/
|
||||
|
||||
%changelog
|
||||
* Fri Feb 1 2019 Jerry James <loganjerry@gmail.com> - 1.6.2-3
|
||||
- Rebuild for GAP 4.10.0
|
||||
- Change BRs and Rs due to recent TeXLive packaging changes
|
||||
- Create -doc subpackage
|
||||
|
||||
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.2-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user