Compare commits
2 Commits
Author | SHA256 | Date | |
---|---|---|---|
d8ce10437a | |||
d910ab2447 |
@ -12,42 +12,50 @@ openSUSE has relegated them to /usr/libexec/4ti2, offering instead
|
||||
prefixed symlinks in /usr/bin, e.g. /usr/bin/4ti2_groebner ->
|
||||
/usr/libexec/4ti2/groebner.
|
||||
---
|
||||
src/groebner/script.template | 2 +-
|
||||
src/groebner/script.template.in | 2 +-
|
||||
src/groebner/script.template | 5 +++--
|
||||
src/groebner/script.template.in | 5 +++--
|
||||
src/zsolve/graver.template | 2 +-
|
||||
src/zsolve/hilbert.template | 2 +-
|
||||
4 files changed, 4 insertions(+), 4 deletions(-)
|
||||
4 files changed, 8 insertions(+), 6 deletions(-)
|
||||
|
||||
Index: 4ti2-1.6.9/src/groebner/script.template
|
||||
Index: 4ti2-1.6.10/src/groebner/script.template
|
||||
===================================================================
|
||||
--- 4ti2-1.6.9.orig/src/groebner/script.template
|
||||
+++ 4ti2-1.6.9/src/groebner/script.template
|
||||
@@ -21,7 +21,7 @@
|
||||
--- 4ti2-1.6.10.orig/src/groebner/script.template
|
||||
+++ 4ti2-1.6.10/src/groebner/script.template
|
||||
@@ -21,9 +21,10 @@
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
|
||||
# We locate where this script is so we can call the executables.
|
||||
-SCRIPT=`which "$0"`
|
||||
+SCRIPT=$(realpath $(which "$0"))
|
||||
+FUNCTION="${0##*/}"
|
||||
+FUNCTION="${FUNCTION#4ti2_}"
|
||||
+SCRIPT=$(realpath "$(which "$0")")
|
||||
DIR=`dirname "$SCRIPT"`
|
||||
FUNCTION=`basename "$SCRIPT"`
|
||||
-FUNCTION=`basename "$SCRIPT"`
|
||||
|
||||
Index: 4ti2-1.6.9/src/groebner/script.template.in
|
||||
# The default executable.
|
||||
EXECUTABLE=4ti2int64
|
||||
Index: 4ti2-1.6.10/src/groebner/script.template.in
|
||||
===================================================================
|
||||
--- 4ti2-1.6.9.orig/src/groebner/script.template.in
|
||||
+++ 4ti2-1.6.9/src/groebner/script.template.in
|
||||
@@ -21,7 +21,7 @@
|
||||
--- 4ti2-1.6.10.orig/src/groebner/script.template.in
|
||||
+++ 4ti2-1.6.10/src/groebner/script.template.in
|
||||
@@ -21,9 +21,10 @@
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
|
||||
# We locate where this script is so we can call the executables.
|
||||
-SCRIPT=`which "$0"`
|
||||
+SCRIPT=$(realpath $(which "$0"))
|
||||
+FUNCTION="${0##*/}"
|
||||
+FUNCTION="${FUNCTION#4ti2_}"
|
||||
+SCRIPT=$(realpath "$(which "$0")")
|
||||
DIR=`dirname "$SCRIPT"`
|
||||
FUNCTION=`basename "$SCRIPT"`
|
||||
-FUNCTION=`basename "$SCRIPT"`
|
||||
|
||||
Index: 4ti2-1.6.9/src/zsolve/graver.template
|
||||
# The default executable.
|
||||
EXECUTABLE=@GROEBNER_DEFAULT_EXECUTABLE@
|
||||
Index: 4ti2-1.6.10/src/zsolve/graver.template
|
||||
===================================================================
|
||||
--- 4ti2-1.6.9.orig/src/zsolve/graver.template
|
||||
+++ 4ti2-1.6.9/src/zsolve/graver.template
|
||||
--- 4ti2-1.6.10.orig/src/zsolve/graver.template
|
||||
+++ 4ti2-1.6.10/src/zsolve/graver.template
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
# We locate where this script is so we can call the executable zsolve which
|
||||
@ -57,10 +65,10 @@ Index: 4ti2-1.6.9/src/zsolve/graver.template
|
||||
SCRIPTDIR=`dirname "$SCRIPT"`
|
||||
EXECUTABLE=zsolve
|
||||
|
||||
Index: 4ti2-1.6.9/src/zsolve/hilbert.template
|
||||
Index: 4ti2-1.6.10/src/zsolve/hilbert.template
|
||||
===================================================================
|
||||
--- 4ti2-1.6.9.orig/src/zsolve/hilbert.template
|
||||
+++ 4ti2-1.6.9/src/zsolve/hilbert.template
|
||||
--- 4ti2-1.6.10.orig/src/zsolve/hilbert.template
|
||||
+++ 4ti2-1.6.10/src/zsolve/hilbert.template
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
# We locate where this script is so we can call the executable zsolve which
|
||||
|
13
4ti2.changes
13
4ti2.changes
@ -1,3 +1,16 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Feb 24 14:48:18 UTC 2025 - Jan Engelhardt <jengelh@inai.de>
|
||||
|
||||
- Trim bashisms from build recipe
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jan 24 21:01:47 UTC 2025 - Jan Engelhardt <jengelh@inai.de>
|
||||
|
||||
- Edit 4ti2-handle-prefix.diff [boo#1233672]
|
||||
* Avoid eagerly following %fdupes-created symlinks when
|
||||
determining what final program to call.
|
||||
* Handle being called as /usr/bin/4ti2_circuits.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 26 08:33:12 UTC 2023 - Jan Engelhardt <jengelh@inai.de>
|
||||
|
||||
|
16
4ti2.spec
16
4ti2.spec
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package 4ti2
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -42,9 +42,9 @@ Group: System/Libraries
|
||||
%description -n lib4ti2-0
|
||||
This package contains the 4ti2 program library, which comes in three
|
||||
flavors:
|
||||
- 32-bit precision integers
|
||||
- 64-bit precision integers
|
||||
- arbitrary precision integer support through use of GNU MP
|
||||
* 32-bit precision integers
|
||||
* 64-bit precision integers
|
||||
* arbitrary precision integer support through use of GNU MP
|
||||
|
||||
%package -n libzsolve0
|
||||
Summary: Library for solving linear systems over integers for 4ti2
|
||||
@ -78,16 +78,14 @@ b="%buildroot"
|
||||
rm -f "$b/%_libdir"/*.la
|
||||
mkdir -p "$b/%_bindir" "$b/%_libexecdir/%name"
|
||||
mv "$b/%_bindir"/* "$b/%_libexecdir/%name/"
|
||||
pushd "$b/%_libexecdir/%name"
|
||||
cd "$b/%_libexecdir/%name"
|
||||
for i in *; do
|
||||
ln -s "%_libexecdir/%name/$i" "$b/%_bindir/4ti2_$i"
|
||||
done
|
||||
%fdupes -s %buildroot/%_prefix
|
||||
|
||||
%post -n lib4ti2-0 -p /sbin/ldconfig
|
||||
%postun -n lib4ti2-0 -p /sbin/ldconfig
|
||||
%post -n libzsolve0 -p /sbin/ldconfig
|
||||
%postun -n libzsolve0 -p /sbin/ldconfig
|
||||
%ldconfig_scriptlets -n lib4ti2-0
|
||||
%ldconfig_scriptlets -n libzsolve0
|
||||
|
||||
%files
|
||||
%license COPYING
|
||||
|
Loading…
x
Reference in New Issue
Block a user