Blob Blame Raw
%global pkgname utils

Name:           gap-pkg-%{pkgname}
Version:        0.44
Release:        1%{?dist}
Summary:        Utility functions for GAP

License:        GPLv2+
BuildArch:      noarch

BuildRequires:  gap-devel
BuildRequires:  GAPDoc-latex

Requires:       gap-core

The Utils package provides a collection of utility functions gleaned
from many packages.

%setup -q -n %{pkgname}-%{version}

# Link to main GAP documentation
ln -s %{_gap_dir}/doc ../../doc
mkdir ../pkg
ln -s ../%{pkgname}-%{version} ../pkg/%{pkgname}
gap -l "$PWD/..;%{_gap_dir}" makedoc.g
rm -fr ../../doc ../pkg

mkdir -p %{buildroot}%{_gap_dir}/pkg
cp -a ../%{pkgname}-%{version} %{buildroot}%{_gap_dir}/pkg/%{pkgname}
rm -f %{buildroot}%{_gap_dir}/pkg/%{pkgname}/{CHANGES,LICENSE.txt,README}
rm -f %{buildroot}%{_gap_dir}/pkg/%{pkgname}/doc/*.{aux,bbl,blg,brf,idx,ilg,ind,log,out,pnr,tex,toc}

gap -l "%{buildroot}%{_gap_dir};%{_gap_dir}" < tst/testall.g 2>&1 | tee log
grep -Fvq fail log
rm -f log

%license LICENSE.txt
%docdir %{_gap_dir}/pkg/%{pkgname}/doc
%docdir %{_gap_dir}/pkg/%{pkgname}/htm

* Wed Jan 18 2017 Jerry James <> - 0.44-1
- New upstream version

* Thu Oct 20 2016 Jerry James <> - 0.43-1
- New upstream version

* Wed Oct 19 2016 Jerry James <> - 0.42-1
- New upstream version

* Tue May  3 2016 Jerry James <> - 0.40-1
- Initial RPM