%global upstreamver 1r1p3 Name: gap-character-tables Version: %(echo %upstreamver | sed -r "s/r|p/./g") Release: 1%{?dist} Summary: GAP Character Table Library Group: Applications/Engineering License: GPLv2+ URL: http://www.math.rwth-aachen.de/~Thomas.Breuer/ctbllib/ Source0: http://www.math.rwth-aachen.de/~Thomas.Breuer/ctbllib/ctbllib%{upstreamver}.tar.gz BuildArch: noarch Provides: gap-pkg-ctbllib = %{version}-%{release} Requires: gap-table-of-marks %description This package provides the Character Table Library by Thomas Breuer. %prep %setup -q -n ctbllib # Compress large tables and DVI documentation gzip --best data/*.tbl doc/*.dvi %build # Nothing to do %install mkdir -p $RPM_BUILD_ROOT%{_datadir}/gap/pkg/ctbllib cp -a data doc gap4 tst *.g $RPM_BUILD_ROOT%{_datadir}/gap/pkg/ctbllib %posttrans -p %{_bindir}/update-gap-workspace %postun -p %{_bindir}/update-gap-workspace %files %doc README htm %{_datadir}/gap/pkg/ctbllib/ %changelog * Wed Jan 4 2012 Jerry James <loganjerry@gmail.com> - 1.1.3-1 - Initial RPM