commit a60642593c3325624659795d3811d2794e363c567df3a0b4fbcfff1e3c747fed Author: Atri Bhattacharya Date: Mon Sep 21 13:19:20 2020 +0000 Accepting request 835548 from home:jengelh:branches:science OBS-URL: https://build.opensuse.org/request/show/835548 OBS-URL: https://build.opensuse.org/package/show/science/sympow?expand=0&rev=1 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/sympow-2.023.5-cachedir.patch b/sympow-2.023.5-cachedir.patch new file mode 100644 index 0000000..89cca74 --- /dev/null +++ b/sympow-2.023.5-cachedir.patch @@ -0,0 +1,17 @@ +References: https://src.fedoraproject.org/rpms/sympow/blob/master/f/sympow-2.023.5-cachedir.patch + +--- sympow-v2.023.5/main.c.orig 2018-11-24 00:38:19.000000000 -0700 ++++ sympow-v2.023.5/main.c 2019-06-26 13:03:21.425514068 -0600 +@@ -112,11 +112,7 @@ static void prepare_main(char *argv0) + if (stat(pkgdatafilesdir,&infod)) {free(pkgdatafilesdir); pkgdatafilesdir=NULL;} + asprintf(&pkgdatafilesbindir,"%s/datafiles/"ENDIANTUPLE,pkgcachedir); + if (stat(pkgdatafilesbindir,&infodb)) {mode_t mask=umask(0); +- if (mkdir(pkgdatafilesbindir,(S_IRWXU|S_IRWXG|S_IRWXO|S_ISVTX))) +- {if (VERBOSE>=1) fprintf(stderr,"**WARNING** failed to create data bin package cache folder %s\n",pkgdatafilesbindir); +- free(pkgdatafilesbindir); pkgdatafilesbindir=NULL;} +- else +- {stat(pkgdatafilesbindir,&infodb); pkgdatamode= infodb.st_mode & ~MASK;} ++ pkgdatamode= infodb.st_mode & ~MASK; + umask(mask);} + else + {if (!S_ISDIR(infodb.st_mode)) diff --git a/sympow-v2.023.6.tar.bz2 b/sympow-v2.023.6.tar.bz2 new file mode 100644 index 0000000..b11d17e --- /dev/null +++ b/sympow-v2.023.6.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d153530dfdd46da05c954121640e50771064536fedc22c7fef24fb11083172ef +size 61391 diff --git a/sympow.changes b/sympow.changes new file mode 100644 index 0000000..b424033 --- /dev/null +++ b/sympow.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Fri Sep 18 01:29:37 UTC 2020 - Jan Engelhardt + +- Initial package (v2.023.6) for build.opensuse.org +- Add sympow-2.023.5-cachedir.patch from Fedora diff --git a/sympow.spec b/sympow.spec new file mode 100644 index 0000000..1819748 --- /dev/null +++ b/sympow.spec @@ -0,0 +1,60 @@ +# +# spec file for package sympow +# +# Copyright (c) 2020 SUSE LLC +# +# 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 https://bugs.opensuse.org/ +# + + +Name: sympow +Version: 2.023.6 +Release: 0 +Summary: Program to compute symmetric power elliptic curve L-functions +License: BSD-2-Clause +Group: Productivity/Scientific/Math +URL: https://gitlab.com/rezozer/forks/sympow +Source: https://gitlab.com/rezozer/forks/sympow/-/archive/v%version/%name-v%version.tar.bz2 +Patch1: sympow-2.023.5-cachedir.patch +BuildRequires: help2man +BuildRequires: pari-gp +Requires: grep +Requires: sed +Requires: pari-gp + +%description +SYMPOW is a mathematical program to compute special values of +symmetric power elliptic curve L-functions; it can compute up to +about 64 digits of precision. + +%prep +%autosetup -p1 -n %name-v%version + +%build +PREFIX="%_prefix" ./Configure +cat >>config.h <<-EOF + #define PKGLIBDIR "%_libexecdir/%name" +EOF +perl -i -pe 's{%_prefix/lib/%name}{%_libexecdir/%name}' Makefile +%make_build OPT="%optflags" + +%install +%make_install + +%files +%_bindir/sympow +%_mandir/man1/*.1* +%_libexecdir/%name/ +%_datadir/%name/ +%license COPYING + +%changelog