From 94b4b2baff17ac57ba2b5a220ff642a6ae663672b295bd3f60eba222b2425ee8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Wed, 5 Feb 2014 23:40:04 +0000 Subject: [PATCH] Accepting request 221014 from home:jengelh:branches:science OBS-URL: https://build.opensuse.org/request/show/221014 OBS-URL: https://build.opensuse.org/package/show/science/gp2c?expand=0&rev=1 --- .gitattributes | 23 +++++++ .gitignore | 1 + ...-build-stop-misplacing-documentation.patch | 24 +++++++ gp2c-0.0.8.tar.gz | 3 + gp2c-0.0.8.tar.gz.asc | 7 ++ gp2c.changes | 6 ++ gp2c.spec | 64 +++++++++++++++++++ 7 files changed, 128 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 0001-build-stop-misplacing-documentation.patch create mode 100644 gp2c-0.0.8.tar.gz create mode 100644 gp2c-0.0.8.tar.gz.asc create mode 100644 gp2c.changes create mode 100644 gp2c.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/0001-build-stop-misplacing-documentation.patch b/0001-build-stop-misplacing-documentation.patch new file mode 100644 index 0000000..771d46a --- /dev/null +++ b/0001-build-stop-misplacing-documentation.patch @@ -0,0 +1,24 @@ +From 5d7d7e7ad9502f0bf59aac12dc8eb2a0f7a9d30b Mon Sep 17 00:00:00 2001 +From: Jan Engelhardt +Date: Wed, 5 Feb 2014 03:13:37 +0100 +Subject: [PATCH 1/2] build: stop misplacing documentation + +docdir must not be statically set as it would override what the +user gave to ./configure --docdir=... +--- + doc/Makefile.am | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/doc/Makefile.am b/doc/Makefile.am +index ccaf3a7..f710a4d 100644 +--- a/doc/Makefile.am ++++ b/doc/Makefile.am +@@ -1,5 +1,4 @@ + all: +-docdir=$(datadir)/doc + pkgdocdir=$(docdir)/$(PACKAGE) + man_MANS = gp2c.1 gp2c-run.1 $(GP2C_DBG1) + EXTRA_MANS = gp2c-dbg.1 +-- +1.8.4.5 + diff --git a/gp2c-0.0.8.tar.gz b/gp2c-0.0.8.tar.gz new file mode 100644 index 0000000..0a7ec5d --- /dev/null +++ b/gp2c-0.0.8.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:642c2026d4ade973267fdf80500bfd1a51114df4823ff7c72346442d3c8fcf0d +size 361677 diff --git a/gp2c-0.0.8.tar.gz.asc b/gp2c-0.0.8.tar.gz.asc new file mode 100644 index 0000000..776de3b --- /dev/null +++ b/gp2c-0.0.8.tar.gz.asc @@ -0,0 +1,7 @@ +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.12 (GNU/Linux) + +iEYEABECAAYFAlI8RR0ACgkQeDPs8bVESBUqEwCdGW0jIVOxD/P2tYHurD11XIH/ +M8gAn13cxXpl1JIl3QMW3tLhkbSOiaRa +=//mB +-----END PGP SIGNATURE----- diff --git a/gp2c.changes b/gp2c.changes new file mode 100644 index 0000000..c19f22c --- /dev/null +++ b/gp2c.changes @@ -0,0 +1,6 @@ +------------------------------------------------------------------- +Wed Feb 5 02:09:23 UTC 2014 - jengelh@inai.de + +- Initial package (version 0.0.8) for build.opensuse.org +- Add 0001-build-stop-misplacing-documentation.patch, + 0002-build-replace-outdated-autotools-calls.patch diff --git a/gp2c.spec b/gp2c.spec new file mode 100644 index 0000000..2148907 --- /dev/null +++ b/gp2c.spec @@ -0,0 +1,64 @@ +# +# 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