SHA256
1
0
forked from pool/gp2c
gp2c/gp2c.spec

65 lines
2.0 KiB
RPMSpec

#
# spec file for package pari
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: gp2c
Version: 0.0.8
Release: 0
Summary: GP script to PARI C program compiler
License: GPL-2.0
Group: Productivity/Scientific/Math
Url: http://pari.math.u-bordeaux.fr/
#Git-Clone: http://pari.math.u-bordeaux.fr/git/gp2c.git
#Git-Web: http://pari.math.u-bordeaux.fr/cgi-bin/gitweb.cgi
Source: http://pari.math.u-bordeaux.fr/pub/pari/GP2C/gp2c-%version.tar.gz
Source2: http://pari.math.u-bordeaux.fr/pub/pari/GP2C/gp2c-%version.tar.gz.asc
Patch1: 0001-build-stop-misplacing-documentation.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: autoconf, automake, libtool
%description
The gp2c compiler is a package for translating GP routines into the C
programming language, so that they can be compiled and used with the PARI
system or the GP calculator.
The main advantage of doing this is to speed up computations and to include
your own routines within the preexisting GP ones. It may also find bugs in GP
scripts.
%prep
%setup -q
%patch -P 1 -p1
%build
autoreconf -fi
%configure --docdir="%_docdir/%name"
make %{?_smp_mflags}
%install
b="%buildroot";
make install DESTDIR="$b";
%files
%defattr(-,root,root)
%_bindir/gp2c*
%_docdir/%name/
%_datadir/%name/
%_mandir/man1/gp2c*
%changelog