Jan Engelhardt
d773f1ca04
OBS-URL: https://build.opensuse.org/package/show/science/gp2c?expand=0&rev=6
64 lines
1.9 KiB
RPMSpec
64 lines
1.9 KiB
RPMSpec
#
|
|
# spec file for package gp2c
|
|
#
|
|
# 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.9pl5
|
|
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
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildRequires: fdupes
|
|
|
|
%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
|
|
|
|
%build
|
|
%configure --docdir="%_docdir/%name"
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
b="%buildroot";
|
|
make install DESTDIR="$b";
|
|
%fdupes %buildroot/%_prefix
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%_bindir/gp2c*
|
|
%_docdir/%name/
|
|
%_datadir/%name/
|
|
%_mandir/man1/gp2c*
|
|
%doc COPYING
|
|
|
|
%changelog
|