- Update to new upstream release 0.94j

OBS-URL: https://build.opensuse.org/package/show/science/cddlib?expand=0&rev=19
This commit is contained in:
Jan Engelhardt 2018-10-20 11:49:23 +00:00 committed by Git OBS Bridge
parent fcaf2cacb0
commit 0e5adbff65
5 changed files with 32 additions and 57 deletions

3
cddlib-0.94j.tar.gz Normal file
View File

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

View File

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

View File

@ -1,44 +0,0 @@
From: Jan Engelhardt <jengelh@medozas.de>
Date: 2012-08-22 01:01:11.243215671 +0200
automake 1.12 wants AM_PROG_AR.
Add -no-undefined, required for PE targets and not detrimental on ELF.
---
configure.in | 1 +
lib-src-gmp/Makefile.am | 2 +-
lib-src/Makefile.am | 2 +-
3 files changed, 3 insertions(+), 2 deletions(-)
Index: cddlib-094h/configure.in
===================================================================
--- cddlib-094h.orig/configure.in
+++ cddlib-094h/configure.in
@@ -8,6 +8,7 @@ dnl Checks for programs.
AC_PROG_CC
AM_PROG_CC_C_O
AC_PROG_INSTALL
+m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
LT_INIT
dnl Checks for libraries.
Index: cddlib-094h/lib-src-gmp/Makefile.am
===================================================================
--- cddlib-094h.orig/lib-src-gmp/Makefile.am
+++ cddlib-094h/lib-src-gmp/Makefile.am
@@ -25,4 +25,4 @@ cddtypes_f.h \
setoper.h
AM_CPPFLAGS = -I$(gmpincludedir) -DGMPRATIONAL
-AM_LDFLAGS = -version-info 0:0:0
+AM_LDFLAGS = -version-info 0:0:0 -no-undefined
Index: cddlib-094h/lib-src/Makefile.am
===================================================================
--- cddlib-094h.orig/lib-src/Makefile.am
+++ cddlib-094h/lib-src/Makefile.am
@@ -16,4 +16,4 @@ cddtypes.h \
setoper.h
AM_CPPFLAGS = -UGMPRATIONAL
-AM_LDFLAGS = -version-info 0:0:0
+AM_LDFLAGS = -version-info 0:0:0 -no-undefined

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Sat Oct 20 11:41:09 UTC 2018 - Jan Engelhardt <jengelh@inai.de>
- Update to new upstream release 0.94j
* Introduced cddexec as a replacement of cdd_both_reps that many
distributions packaged.
- Remove cddlib-flags.diff, cddlib-automake.diff
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Apr 30 22:12:36 UTC 2018 - jengelh@inai.de Mon Apr 30 22:12:36 UTC 2018 - jengelh@inai.de

View File

@ -12,25 +12,24 @@
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via https://bugs.opensuse.org/
# #
Name: cddlib Name: cddlib
%define lname libcdd0 %define lname libcdd0
Version: 0.94i Version: 0.94j
Release: 0 Release: 0
Summary: Library for finding vertices of convex polytopes Summary: Library for finding vertices of convex polytopes
License: GPL-2.0-or-later License: GPL-2.0-or-later
Group: Productivity/Scientific/Math Group: Productivity/Scientific/Math
Url: https://www.inf.ethz.ch/personal/fukudak/cdd_home/ Url: https://www.inf.ethz.ch/personal/fukudak/cdd_home/
Source: ftp://ftp.math.ethz.ch/users/fukudak/cdd/cddlib-094i.tar.gz Source: https://github.com/cddlib/cddlib/releases/download/0.94j/cddlib-0.94j.tar.gz
Patch1: cddlib-flags.diff
Patch2: cddlib-automake.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: autoconf BuildRequires: autoconf
BuildRequires: automake BuildRequires: automake
BuildRequires: fdupes
BuildRequires: gmp-devel >= 3 BuildRequires: gmp-devel >= 3
BuildRequires: libtool BuildRequires: libtool
@ -62,30 +61,42 @@ Motzkin et al. for generating all vertices (i.e. extreme points) and
extreme rays of a general convex polyhedron in R^d given by a system extreme rays of a general convex polyhedron in R^d given by a system
of linear inequalities. of linear inequalities.
%package doc
Summary: Documentation for the cddlib API
Group: Documentation/Other
BuildArch: noarch
%description doc
cddlib is an implementation of the Double Description Method of
Motzkin et al.
This package contains the documentation to cddlib.
%prep %prep
%setup -qn %name-094i %setup -q
%patch -P 1 -P 2 -p1
%build %build
autoreconf -fi autoreconf -fi
%configure --enable-shared --disable-static --includedir="%_includedir/cdd" %configure --enable-shared --disable-static --includedir="%_includedir/cdd" --docdir="%_docdir/%name"
make %{?_smp_mflags} V=1 make %{?_smp_mflags} V=1
%install %install
%make_install %make_install
rm -f "%buildroot/%_libdir"/*.la rm -f "%buildroot/%_libdir"/*.la
%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
%files -n %lname %files -n %lname
%defattr(-,root,root)
%_libdir/libcdd*.so.* %_libdir/libcdd*.so.*
%files devel %files devel
%defattr(-,root,root)
%_bindir/* %_bindir/*
%_libdir/libcdd*.so %_libdir/libcdd*.so
%_includedir/* %_includedir/*
%files doc
%_docdir/%name/
%changelog %changelog