SHA256
1
0
forked from pool/sympow

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
This commit is contained in:
Atri Bhattacharya 2020-09-21 13:19:20 +00:00 committed by Git OBS Bridge
commit a60642593c
6 changed files with 109 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

View File

@ -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))

3
sympow-v2.023.6.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d153530dfdd46da05c954121640e50771064536fedc22c7fef24fb11083172ef
size 61391

5
sympow.changes Normal file
View File

@ -0,0 +1,5 @@
-------------------------------------------------------------------
Fri Sep 18 01:29:37 UTC 2020 - Jan Engelhardt <jengelh@inai.de>
- Initial package (v2.023.6) for build.opensuse.org
- Add sympow-2.023.5-cachedir.patch from Fedora

60
sympow.spec Normal file
View File

@ -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