From ab5a93305a7188c58f272347432ed03d1ac1a13a241cfb694132ed5d84b6b088 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Sat, 24 Jun 2023 14:12:16 +0000 Subject: [PATCH 1/2] - Support SLE 15.x build OBS-URL: https://build.opensuse.org/package/show/science/polylib?expand=0&rev=3 --- polylib.changes | 5 +++++ polylib.spec | 9 +++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/polylib.changes b/polylib.changes index 594172a..01ad97c 100644 --- a/polylib.changes +++ b/polylib.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Jun 24 14:12:04 UTC 2023 - Jan Engelhardt + +- Support SLE 15.x build + ------------------------------------------------------------------- Sat Sep 12 13:22:45 UTC 2020 - Jan Engelhardt diff --git a/polylib.spec b/polylib.spec index b2938fb..3f23845 100644 --- a/polylib.spec +++ b/polylib.spec @@ -1,7 +1,7 @@ # # spec file for package polylib # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -27,9 +27,14 @@ URL: https://icps.u-strasbg.fr/polylib/ Source: https://icps.u-strasbg.fr/polylib/polylib_src/%name-%version.tar.gz BuildRequires: gcc-c++ BuildRequires: ntl-devel -BuildRequires: pkgconfig +BuildRequires: pkg-config +%if 0%{?suse_version} >= 1590 BuildRequires: pkgconfig(gmpxx) BuildRequires: pkgconfig(isl) +%else +BuildRequires: gmp-devel +BuildRequires: isl-devel +%endif %description The Polyhedral Library (PolyLib) operates on objects made up of From b194f9d1ec6e39dc94496a63364eeb5f2fd8ae813f770f14cce877dfeebb5e43 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Sat, 24 Jun 2023 14:23:57 +0000 Subject: [PATCH 2/2] - Require gmp from polylib-devel - Remove isl dependency OBS-URL: https://build.opensuse.org/package/show/science/polylib?expand=0&rev=4 --- polylib.changes | 1 + polylib.spec | 11 +++++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/polylib.changes b/polylib.changes index 01ad97c..d01d700 100644 --- a/polylib.changes +++ b/polylib.changes @@ -2,6 +2,7 @@ Sat Jun 24 14:12:04 UTC 2023 - Jan Engelhardt - Support SLE 15.x build +- Require gmp from polylib-devel ------------------------------------------------------------------- Sat Sep 12 13:22:45 UTC 2020 - Jan Engelhardt diff --git a/polylib.spec b/polylib.spec index 3f23845..3eec53a 100644 --- a/polylib.spec +++ b/polylib.spec @@ -29,11 +29,9 @@ BuildRequires: gcc-c++ BuildRequires: ntl-devel BuildRequires: pkg-config %if 0%{?suse_version} >= 1590 -BuildRequires: pkgconfig(gmpxx) -BuildRequires: pkgconfig(isl) +BuildRequires: pkgconfig(gmp) %else BuildRequires: gmp-devel -BuildRequires: isl-devel %endif %description @@ -52,6 +50,11 @@ unions of polyhedra of any dimension. Summary: Development files for PolyLib Group: Development/Libraries/C and C++ Requires: %lname = %version +%if 0%{?suse_version} >= 1590 +Requires: pkgconfig(gmp) +%else +Requires: gmp-devel +%endif %description devel The Polyhedral Library (PolyLib) operates on objects made up of @@ -69,7 +72,7 @@ developing with PolyLib. %autosetup -p1 %build -%configure --disable-static --with-isl=system --with-libgmp +%configure --disable-static --with-libgmp %make_build %install