## START: Set by rpmautospec ## (rpmautospec version 0.3.0) %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global upver 0.0.13 Name: gp2c Version: %(sed s/pl/./ <<< %{upver}) Release: %autorelease Summary: PARI/GP script to C program translator # The entire source is GPL-2.0-or-later (see README), except: # - src/parse.h and src/parse.c are (GPL-3.0-or-later WITH # Bison-exception-2.2) # # Additionally, some files that belong to the build system and therefore do not # contribute to the license of the binary RPMs have other licenses: # - aclocal.m4 is FSFULLR # - configure is FSFUL, or more likely, (FSFUL AND GPL-2.0-or-later) # - config/install-sh is X11 License: GPL-2.0-or-later AND GPL-3.0-or-later WITH Bison-exception-2.2 URL: https://pari.math.u-bordeaux.fr/ Source0: %{url}pub/pari/GP2C/%{name}-%{upver}.tar.gz Source1: %{url}pub/pari/GP2C/%{name}-%{upver}.tar.gz.asc # Public key 0x4522e387, Bill Allombert Source2: gpgkey-42028EA404A2E9D80AC453148F0E7C2B4522E387.gpg BuildRequires: gcc BuildRequires: make BuildRequires: perl BuildRequires: pari-gp BuildRequires: pari-devel BuildRequires: tex(latex) BuildRequires: gnupg2 Requires: gcc Requires: pari-devel%{?_isa} %if 0%{?rhel} > 7 Recommends: pari-gp %endif %description GP2C is a PARI/GP script to C program translator. %package doc Summary: Documentation for gp2c BuildArch: noarch %description doc This package contains documentation for GP2C. %prep %{gpgverify} --data=%{SOURCE0} --signature=%{SOURCE1} --keyring=%{SOURCE2} %autosetup -n %{name}-%{upver} # Convert to Unicode iconv -f ISO8859-1 -t UTF-8 ChangeLog > ChangeLog.utf8 touch -r ChangeLog ChangeLog.utf8 mv ChangeLog.utf8 ChangeLog # Regenerate the documentation rm -v doc/*.{dvi,html,pdf} %build %configure --with-paricfg='%{_libdir}/pari/pari.cfg' %make_build # Build the documentation # The makefile does not invoke LaTex enough times, so do it manually cd doc pdflatex -interaction=batchmode gp2c.tex pdflatex -interaction=batchmode gp2c.tex pdflatex -interaction=batchmode gp2c.tex pdflatex -interaction=batchmode type.tex pdflatex -interaction=batchmode type.tex cd - %install %make_install # We will install the files we want with %%doc below rm -vrf '%{buildroot}%{_docdir}/%{name}' %check %make_build check %files %license COPYING %doc README %{_bindir}/gp2c %{_bindir}/gp2c-run %{_mandir}/man1/gp2c.1* %{_mandir}/man1/gp2c-run.1* %{_datadir}/gp2c/ %files doc %license COPYING %doc AUTHORS %doc ChangeLog %doc BUGS %doc README %doc doc/*.pdf %doc doc/*.png %changelog * Thu Sep 22 2022 Benjamin A. Beasley 0.0.13-1 - Update to 0.0.13 (close RHBZ#2128529) * Fri Aug 05 2022 Benjamin A. Beasley 0.0.12.1-4 - Drop unnecessary BR’s on bison and flex * Fri Aug 05 2022 Benjamin A. Beasley 0.0.12.1-3 - Update License to SPDX * Thu Jul 21 2022 Fedora Release Engineering 0.0.12.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Sun Mar 27 2022 Jerry James 0.0.12.1-1 - Version 0.0.12pl1. * Thu Jan 20 2022 Fedora Release Engineering 0.0.12-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Dec 10 2021 Benjamin A. Beasley 0.0.12-4 - Explicitly BR: make * Fri Dec 10 2021 Benjamin A. Beasley 0.0.12-3 - Style changes according to personal preference * Wed Aug 11 2021 Jerry James - 0.0.12-1 - Initial RPM