2011-09-26 15:22:45 +02:00
|
|
|
#
|
|
|
|
# spec file for package cddlib
|
|
|
|
#
|
2016-03-12 22:07:21 +01:00
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
2011-09-26 15:22:45 +02:00
|
|
|
#
|
|
|
|
# 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 http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2014-10-11 20:22:19 +02:00
|
|
|
|
2011-09-26 15:22:45 +02:00
|
|
|
Name: cddlib
|
2012-08-22 00:55:18 +02:00
|
|
|
%define lname libcdd0
|
2016-03-12 22:07:21 +01:00
|
|
|
Version: 0.94h
|
2011-09-26 15:22:45 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Library for finding vertices of convex polytopes
|
|
|
|
License: GPL-2.0+
|
2014-10-11 20:22:19 +02:00
|
|
|
Group: Productivity/Scientific/Math
|
|
|
|
Url: http://www.ifor.math.ethz.ch/~fukuda/cdd_home/
|
2011-09-26 15:22:45 +02:00
|
|
|
|
2016-03-12 22:07:21 +01:00
|
|
|
Source: ftp://ftp.ifor.math.ethz.ch/pub/fukuda/cdd/%name-094h.tar.gz
|
2014-10-11 20:22:19 +02:00
|
|
|
Patch1: cddlib-flags.diff
|
|
|
|
Patch2: cddlib-automake.diff
|
2011-09-26 15:22:45 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2014-10-11 20:22:19 +02:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
2012-02-26 13:12:08 +01:00
|
|
|
BuildRequires: gmp-devel >= 3
|
2014-10-11 20:22:19 +02:00
|
|
|
BuildRequires: libtool
|
2011-09-26 15:22:45 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
cddlib is a C implementation of the Double Description Method of
|
|
|
|
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
|
|
|
|
of linear inequalities.
|
|
|
|
|
|
|
|
%package -n %lname
|
|
|
|
Summary: Library for finding vertices of convex polytopes
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n %lname
|
|
|
|
cddlib is a C implementation of the Double Description Method of
|
|
|
|
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
|
|
|
|
of linear inequalities.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for cddlib
|
|
|
|
Group: Development/Libraries/C and C++
|
2014-10-11 20:22:19 +02:00
|
|
|
Requires: %lname = %version
|
|
|
|
Requires: gmp-devel
|
2011-09-26 15:22:45 +02:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
cddlib is a C implementation of the Double Description Method of
|
|
|
|
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
|
|
|
|
of linear inequalities.
|
|
|
|
|
|
|
|
%prep
|
2016-03-12 22:07:21 +01:00
|
|
|
%setup -qn %name-094h
|
2012-08-22 01:04:40 +02:00
|
|
|
%patch -P 1 -P 2 -p1
|
2011-09-26 15:22:45 +02:00
|
|
|
|
|
|
|
%build
|
2012-08-22 01:04:40 +02:00
|
|
|
autoreconf -fi;
|
2011-09-26 15:22:45 +02:00
|
|
|
%configure --enable-shared --disable-static
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
2012-08-22 01:04:40 +02:00
|
|
|
make install DESTDIR="%buildroot";
|
|
|
|
rm -f "%buildroot/%_libdir"/*.la;
|
2011-09-26 15:22:45 +02:00
|
|
|
|
2014-10-11 20:22:19 +02:00
|
|
|
%post -n %lname -p /sbin/ldconfig
|
2011-09-26 15:22:45 +02:00
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n %lname
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_libdir/libcdd*.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_bindir/*
|
|
|
|
%_libdir/libcdd*.so
|
|
|
|
%_includedir/*
|
|
|
|
|
|
|
|
%changelog
|