2011-09-26 15:22:45 +02:00
|
|
|
#
|
|
|
|
# spec file for package cddlib
|
|
|
|
#
|
2020-09-19 11:22:07 +02:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
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.
|
|
|
|
|
2018-10-20 13:49:23 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-09-26 15:22:45 +02:00
|
|
|
#
|
|
|
|
|
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
|
2020-09-20 09:12:23 +02:00
|
|
|
Version: 0.94l
|
2011-09-26 15:22:45 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Library for finding vertices of convex polytopes
|
2018-05-01 00:17:47 +02:00
|
|
|
License: GPL-2.0-or-later
|
2014-10-11 20:22:19 +02:00
|
|
|
Group: Productivity/Scientific/Math
|
2020-09-19 11:22:07 +02:00
|
|
|
URL: https://www.inf.ethz.ch/personal/fukudak/cdd_home/
|
2011-09-26 15:22:45 +02:00
|
|
|
|
2020-09-19 11:22:07 +02:00
|
|
|
Source: https://github.com/cddlib/cddlib/releases/download/%version/%name-%version.tar.gz
|
2018-10-20 13:49:23 +02:00
|
|
|
BuildRequires: fdupes
|
2012-02-26 13:12:08 +01:00
|
|
|
BuildRequires: gmp-devel >= 3
|
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
|
2020-09-20 10:00:15 +02:00
|
|
|
Summary: Header files for cddlib
|
2011-09-26 15:22:45 +02:00
|
|
|
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.
|
|
|
|
|
2020-09-20 10:00:15 +02:00
|
|
|
This package contains the headers for the C library.
|
|
|
|
|
2018-10-20 13:49:23 +02:00
|
|
|
%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.
|
|
|
|
|
2020-09-20 10:00:15 +02:00
|
|
|
%package tools
|
|
|
|
Summary: Programs for vertex generation using Double Description Method
|
|
|
|
Group: Productivity/Scientific/Math
|
|
|
|
Provides: cddlib-devel:/usr/bin/scdd
|
|
|
|
Conflicts: cddlib-devel < 0.94l
|
|
|
|
|
|
|
|
%description tools
|
|
|
|
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.
|
|
|
|
|
|
|
|
This package contains the command-line utilities of cddlib.
|
|
|
|
|
2011-09-26 15:22:45 +02:00
|
|
|
%prep
|
2020-09-19 15:06:40 +02:00
|
|
|
%autosetup -p1
|
2011-09-26 15:22:45 +02:00
|
|
|
|
|
|
|
%build
|
2020-09-19 11:22:07 +02:00
|
|
|
%configure --enable-shared --disable-static --docdir="%_docdir/%name"
|
|
|
|
%make_build
|
2011-09-26 15:22:45 +02:00
|
|
|
|
|
|
|
%install
|
2016-07-04 10:34:05 +02:00
|
|
|
%make_install
|
|
|
|
rm -f "%buildroot/%_libdir"/*.la
|
2018-10-20 13:49:23 +02:00
|
|
|
%fdupes %buildroot/%_prefix
|
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
|
|
|
|
%_libdir/libcdd*.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%_libdir/libcdd*.so
|
|
|
|
%_includedir/*
|
2020-09-19 11:22:07 +02:00
|
|
|
%_libdir/pkgconfig/*.pc
|
2011-09-26 15:22:45 +02:00
|
|
|
|
2018-10-20 13:49:23 +02:00
|
|
|
%files doc
|
|
|
|
%_docdir/%name/
|
|
|
|
|
2020-09-20 10:00:15 +02:00
|
|
|
%files tools
|
|
|
|
%_bindir/*
|
|
|
|
%license COPYING
|
|
|
|
|
2011-09-26 15:22:45 +02:00
|
|
|
%changelog
|