2011-09-27 16:28:37 +02:00
|
|
|
#
|
|
|
|
# spec file for package gfan
|
|
|
|
#
|
2016-06-16 23:49:35 +02:00
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
2011-09-27 16:28:37 +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/
|
|
|
|
#
|
2013-09-12 10:45:56 +02:00
|
|
|
|
|
|
|
|
2011-09-27 16:28:37 +02:00
|
|
|
Name: gfan
|
|
|
|
%define lname libgfan-0_5
|
|
|
|
Version: 0.5
|
|
|
|
Release: 0
|
2013-09-12 10:45:56 +02:00
|
|
|
Summary: Calculation of Gröbner fans
|
2012-12-05 14:34:31 +01:00
|
|
|
License: GPL-2.0
|
2013-09-12 10:45:56 +02:00
|
|
|
Group: Productivity/Scientific/Math
|
|
|
|
Url: http://home.imf.au.dk/jensen/software/gfan/gfan.html
|
2011-09-27 16:28:37 +02:00
|
|
|
|
2014-10-11 22:40:53 +02:00
|
|
|
Source: http://home.imf.au.dk/jensen/software/gfan/%name%version.tar.gz
|
2013-09-12 10:45:56 +02:00
|
|
|
Patch1: gfan-automake.diff
|
|
|
|
Patch2: gfan-format.diff
|
|
|
|
Patch3: gfan-returns.diff
|
|
|
|
Patch4: gfan-remove-debug-code.diff
|
2011-09-27 16:28:37 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2013-09-12 10:45:56 +02:00
|
|
|
BuildRequires: cddlib-devel
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: gmp-devel
|
|
|
|
BuildRequires: libtool >= 2
|
2011-09-27 16:28:37 +02:00
|
|
|
%define with_pdf 1
|
|
|
|
%if 0%{?with_pdf}
|
2013-09-12 10:45:56 +02:00
|
|
|
BuildRequires: texlive-latex
|
2012-11-29 21:32:22 +01:00
|
|
|
%if 0%{?suse_version} >= 1230
|
2013-09-12 10:45:56 +02:00
|
|
|
BuildRequires: texlive-amsfonts
|
|
|
|
BuildRequires: texlive-bibtex
|
|
|
|
BuildRequires: texlive-cm-super
|
|
|
|
BuildRequires: texlive-dvips
|
|
|
|
BuildRequires: texlive-ntgclass
|
|
|
|
BuildRequires: texlive-ulem
|
|
|
|
%if 0%{?suse_version} > 1230
|
|
|
|
BuildRequires: tex(english.ldf)
|
|
|
|
%endif
|
2012-11-29 21:32:22 +01:00
|
|
|
%endif
|
2011-09-27 16:28:37 +02:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%description
|
|
|
|
Gfan is a software package for computing Gröbner fans and tropical
|
|
|
|
varieties. These are polyhedral fans associated to polynomial ideals.
|
|
|
|
|
|
|
|
%package -n %lname
|
2013-09-12 10:45:56 +02:00
|
|
|
Summary: Library for calculation of Gröbner fans
|
|
|
|
Group: System/Libraries
|
2011-09-27 16:28:37 +02:00
|
|
|
|
|
|
|
%description -n %lname
|
|
|
|
Gfan is a software package for computing Gröbner fans and tropical
|
|
|
|
varieties. These are polyhedral fans associated to polynomial ideals.
|
|
|
|
|
2011-09-27 18:38:30 +02:00
|
|
|
%package -n libgfan-devel
|
2013-09-12 10:45:56 +02:00
|
|
|
Summary: Development files for libgfan
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %lname = %version
|
2011-09-27 16:28:37 +02:00
|
|
|
|
2011-09-27 18:38:30 +02:00
|
|
|
%description -n libgfan-devel
|
2011-09-27 16:28:37 +02:00
|
|
|
Gfan is a software package for computing Gröbner fans and tropical
|
|
|
|
varieties. These are polyhedral fans associated to polynomial ideals.
|
|
|
|
|
|
|
|
%prep
|
2012-12-05 14:34:31 +01:00
|
|
|
%setup -qn %name%version
|
|
|
|
%patch -P 1 -P 2 -P 3 -P 4 -p1
|
2011-09-27 16:28:37 +02:00
|
|
|
|
|
|
|
%build
|
2016-06-16 23:49:35 +02:00
|
|
|
autoreconf -fi
|
|
|
|
export CXXFLAGS="%optflags -Wno-sign-compare -Wno-reorder -Wno-unused -std=gnu++98"
|
|
|
|
%if 0%{?suse_version} > 1110
|
|
|
|
# -Wno-unused-result not known in old SUSE
|
|
|
|
export CXXFLAGS="$CXXFLAGS -Wno-unused-result"
|
2012-03-18 22:50:04 +01:00
|
|
|
%endif
|
2014-10-11 22:40:53 +02:00
|
|
|
%configure --disable-static --enable-silent-rules
|
2016-06-16 23:49:35 +02:00
|
|
|
make %{?_smp_mflags}
|
2011-09-27 16:28:37 +02:00
|
|
|
%if 0%{?with_pdf}
|
2016-06-16 23:49:35 +02:00
|
|
|
make -C doc %{?_smp_mflags}
|
2011-09-27 16:28:37 +02:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%install
|
2016-06-16 23:49:35 +02:00
|
|
|
b="%buildroot"
|
|
|
|
make install DESTDIR="$b"
|
2012-12-06 11:05:38 +01:00
|
|
|
for i in $(./gfan _list | grep ^gfan_); do
|
2016-06-16 23:49:35 +02:00
|
|
|
ln -s gfan "$b/%_bindir/$i"
|
2012-12-06 11:05:38 +01:00
|
|
|
done;
|
2016-06-16 23:49:35 +02:00
|
|
|
rm -fv "$b/%_libdir"/*.la
|
|
|
|
|
|
|
|
%post -n %lname -p /sbin/ldconfig
|
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
2011-09-27 16:28:37 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2012-12-06 11:05:38 +01:00
|
|
|
%_bindir/gfan*
|
2011-09-27 16:28:37 +02:00
|
|
|
%doc examples
|
|
|
|
%if 0%{?with_pdf}
|
|
|
|
%doc doc/manual.pdf
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%files -n %lname
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_libdir/libgfan-%version.so
|
|
|
|
|
2011-09-27 18:38:30 +02:00
|
|
|
%files -n libgfan-devel
|
2011-09-27 16:28:37 +02:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%_libdir/libgfan.so
|
|
|
|
%_includedir/*
|
|
|
|
|
|
|
|
%changelog
|