File mingw32-cddlib.spec of Package mingw32-cddlib
#
# spec file for package mingw32-cddlib
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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/
#
Name: mingw32-cddlib
%define lname mingw32-libcdd0
Version: 0.94h
Release: 0
Summary: Library for finding vertices of convex polytopes
License: GPL-2.0-or-later
Group: Productivity/Scientific/Math
Url: http://www.ifor.math.ethz.ch/~fukuda/cdd_home/
Source: ftp://ftp.ifor.math.ethz.ch/pub/fukuda/cdd/cddlib-094h.tar.gz
Patch1: cddlib-flags.diff
Patch2: cddlib-automake.diff
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
BuildRequires: mingw32-cross-gcc
BuildRequires: mingw32-gmp-devel >= 3
BuildArch: noarch
#!BuildIgnore: post-build-checks
%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++
Requires: mingw32-gmp-devel
%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
%setup -qn cddlib-094h
%patch -P 1 -P 2 -p1
%build
autoreconf -fi
%_mingw32_configure --enable-shared --disable-static
make %{?_smp_mflags} V=1
%install
%make_install
find "%buildroot/%_mingw32_libdir" -type f -name "*.la" -delete
%files -n %lname
%defattr(-,root,root)
%_mingw32_bindir/libcdd*.dll
%files devel
%defattr(-,root,root)
%_mingw32_bindir/*.exe
%_mingw32_libdir/*.dll.a
%_mingw32_includedir/*
%changelog