SHA256
1
0
forked from pool/polymake

Accepting request 1062077 from science

- Update to release 4.9

OBS-URL: https://build.opensuse.org/request/show/1062077
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/polymake?expand=0&rev=2
This commit is contained in:
Dominique Leuenberger 2023-01-31 15:09:05 +00:00 committed by Git OBS Bridge
commit 9e690e82c8
5 changed files with 28 additions and 25 deletions

View File

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

3
V4.9.tar.gz Normal file
View File

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

View File

@ -1,3 +1,20 @@
-------------------------------------------------------------------
Mon Jan 30 11:46:29 UTC 2023 - Jan Engelhardt <jengelh@inai.de>
- Update to release 4.9
* fulton: markov_bases: add new client
* polytope: mps files: many fixes in parser and writer
-------------------------------------------------------------------
Tue Dec 20 23:49:39 UTC 2022 - Jan Engelhardt <jengelh@inai.de>
- Update to release 4.8
* plantri: introduce interface to plantri for generation of
planar graphs.
* pluecker_ideal changed to c++ client
* add tropical median
- Drop vertices-31.patch (merged)
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Nov 19 00:54:38 UTC 2022 - Jan Engelhardt <jengelh@inai.de> Sat Nov 19 00:54:38 UTC 2022 - Jan Engelhardt <jengelh@inai.de>

View File

@ -1,7 +1,7 @@
# #
# spec file for package polymake # spec file for package polymake
# #
# Copyright (c) 2022 SUSE LLC # Copyright (c) 2023 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -16,9 +16,9 @@
# #
%define lname libpolymake4_7 %define lname libpolymake4_9
Name: polymake Name: polymake
Version: 4.7 Version: 4.9
Release: 0 Release: 0
Summary: Application for studying combinatorics and geometry of convex polytopes Summary: Application for studying combinatorics and geometry of convex polytopes
License: GPL-2.0-or-later License: GPL-2.0-or-later
@ -28,9 +28,9 @@ URL: https://polymake.org/
Source: https://github.com/polymake/polymake/archive/V%version.tar.gz Source: https://github.com/polymake/polymake/archive/V%version.tar.gz
Source9: %name-rpmlintrc Source9: %name-rpmlintrc
Patch2: sympol-system.patch Patch2: sympol-system.patch
Patch3: vertices-31.patch
BuildRequires: bliss-devel BuildRequires: bliss-devel
BuildRequires: cddlib-devel BuildRequires: cddlib-devel
BuildRequires: fdupes
BuildRequires: flint-devel BuildRequires: flint-devel
BuildRequires: gcc-c++ >= 5 BuildRequires: gcc-c++ >= 5
BuildRequires: gmp-devel >= 4.2 BuildRequires: gmp-devel >= 4.2
@ -85,7 +85,9 @@ objects, and other objects.
%autosetup -p1 %autosetup -p1
%build %build
# Not AC. # force using system libnormaliz
rm -rf bundled/libnormaliz/external
# It's not autoconf.
./configure --prefix="%_prefix" --libdir="%_libdir" \ ./configure --prefix="%_prefix" --libdir="%_libdir" \
--libexecdir="%_libdir/%name-%version" --without-native \ --libexecdir="%_libdir/%name-%version" --without-native \
--with-bliss="%_prefix" --with-sympol="%_prefix" --with-cdd="%_prefix" \ --with-bliss="%_prefix" --with-sympol="%_prefix" --with-cdd="%_prefix" \
@ -104,6 +106,7 @@ find "%buildroot/%_includedir" -type f -exec chmod a-x {} +
mv "%buildroot/%_libdir/polymake-%version/lib"/libp* "%buildroot/%_libdir/" mv "%buildroot/%_libdir/polymake-%version/lib"/libp* "%buildroot/%_libdir/"
# zero size file, why # zero size file, why
rm -f "%buildroot/%_libdir/polymake-%version/lib/ideal.so" rm -f "%buildroot/%_libdir/polymake-%version/lib/ideal.so"
%fdupes %buildroot/%_prefix
%post -n %lname -p /sbin/ldconfig %post -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig %postun -n %lname -p /sbin/ldconfig

View File

@ -1,17 +0,0 @@
Resolve a build failure on ILP32.
References: https://gist.github.com/benlorenz/76b0cc37e332943e0129e1e922a1b577
Index: polymake-4.7/apps/topaz/include/grass_plucker.h
===================================================================
--- polymake-4.7.orig/apps/topaz/include/grass_plucker.h
+++ polymake-4.7/apps/topaz/include/grass_plucker.h
@@ -122,7 +122,7 @@ using CubeIndex = NamedType<Int, CubeInd
inline constexpr Int max_n_vertices(31);
inline constexpr Int first_cube_index(Int(1) << max_n_vertices);
*/
-#define max_n_vertices 31
+#define max_n_vertices ((Int) sizeof(Int)*4-1)
#define first_cube_index (CubeIndex(Int(1) << (2*max_n_vertices)))
#define MAGIC_VERTEX_MULTIPLE 256