- add libtool in build requirement for 12.2
- import patches from fedora to fix build with gcc 4.7 OBS-URL: https://build.opensuse.org/package/show/science/gfan?expand=0&rev=5
This commit is contained in:
parent
634b023d8b
commit
064d365c33
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Aug 31 16:51:31 UTC 2012 - scorot@free.fr
|
||||||
|
|
||||||
|
- add libtool in build requirement for 12.2
|
||||||
|
- import patches from fedora to fix build with gcc 4.7
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Mar 18 21:47:55 UTC 2012 - scorot@free.fr
|
Sun Mar 18 21:47:55 UTC 2012 - scorot@free.fr
|
||||||
|
|
||||||
|
54
gfan.spec
54
gfan.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package gfan
|
# spec file for package gfan
|
||||||
#
|
#
|
||||||
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -15,24 +15,37 @@
|
|||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
Name: gfan
|
Name: gfan
|
||||||
%define lname libgfan-0_5
|
%define lname libgfan-0_5
|
||||||
Version: 0.5
|
Version: 0.5
|
||||||
Release: 0
|
Release: 0
|
||||||
Group: Productivity/Scientific/Math
|
Summary: Calculation of Gröbner fans
|
||||||
Summary: Calculation of Gröbner fans
|
|
||||||
License: GPL-2.0
|
License: GPL-2.0
|
||||||
URL: http://home.imf.au.dk/jensen/software/gfan/gfan.html
|
Group: Productivity/Scientific/Math
|
||||||
|
Url: http://home.imf.au.dk/jensen/software/gfan/gfan.html
|
||||||
|
|
||||||
Source: %name%version.tar.bz2
|
Source: %name%version.tar.bz2
|
||||||
Patch1: gfan-automake.diff
|
Patch0: gfan-automake.diff
|
||||||
Patch2: gfan-format.diff
|
# Sent upstream 2011 Apr 27. Respect DESTDIR
|
||||||
Patch3: gfan-returns.diff
|
Patch1: gfan-respect-destdir.patch
|
||||||
|
# Sent upstream 2011 Apr 27. Fix 64-bit issues in printf statements by
|
||||||
|
# using %%zu instead of %%i for printing size_t values.
|
||||||
|
Patch2: gfan-format.patch
|
||||||
|
# Sent upstream 2011 Apr 27. Fix warnings that could indicate runtime
|
||||||
|
# problems.
|
||||||
|
Patch3: gfan-warning.patch
|
||||||
|
# Treate plain "gfan" call as "gfan_bases" call (as done in previous versions)
|
||||||
|
# instead of priting warning telling to call it as "gfan_bases" and exiting
|
||||||
|
Patch4: gfan-permissive.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: cddlib-devel, gcc-c++, gmp-devel
|
BuildRequires: cddlib-devel
|
||||||
|
BuildRequires: gcc-c++
|
||||||
|
BuildRequires: gmp-devel
|
||||||
|
BuildRequires: libtool
|
||||||
%define with_pdf 1
|
%define with_pdf 1
|
||||||
%if 0%{?with_pdf}
|
%if 0%{?with_pdf}
|
||||||
BuildRequires: texlive-latex
|
BuildRequires: texlive-latex
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -40,25 +53,34 @@ Gfan is a software package for computing Gröbner fans and tropical
|
|||||||
varieties. These are polyhedral fans associated to polynomial ideals.
|
varieties. These are polyhedral fans associated to polynomial ideals.
|
||||||
|
|
||||||
%package -n %lname
|
%package -n %lname
|
||||||
Summary: Library for calculation of Gröbner fans
|
Summary: Library for calculation of Gröbner fans
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
|
|
||||||
%description -n %lname
|
%description -n %lname
|
||||||
Gfan is a software package for computing Gröbner fans and tropical
|
Gfan is a software package for computing Gröbner fans and tropical
|
||||||
varieties. These are polyhedral fans associated to polynomial ideals.
|
varieties. These are polyhedral fans associated to polynomial ideals.
|
||||||
|
|
||||||
%package -n libgfan-devel
|
%package -n libgfan-devel
|
||||||
Summary: Development files for libgfan
|
Summary: Development files for libgfan
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Requires: %lname = %version
|
Requires: %lname = %version
|
||||||
|
|
||||||
%description -n libgfan-devel
|
%description -n libgfan-devel
|
||||||
Gfan is a software package for computing Gröbner fans and tropical
|
Gfan is a software package for computing Gröbner fans and tropical
|
||||||
varieties. These are polyhedral fans associated to polynomial ideals.
|
varieties. These are polyhedral fans associated to polynomial ideals.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -qn %name%version
|
%setup -q -n %{name}%{version}
|
||||||
%patch -P 1 -P 2 -P 3 -p1
|
%patch0 -p1
|
||||||
|
%patch1
|
||||||
|
%patch2
|
||||||
|
%patch3
|
||||||
|
%patch4 -p1
|
||||||
|
|
||||||
|
# Point to where the TOPCOM binaries will be installed
|
||||||
|
sed -i \
|
||||||
|
"s|^#define MINKOWSKIPROG.*|#define MINKOWSKIPROGRAM \"%{_bindir}/essai\"|" \
|
||||||
|
minkowskisum.cpp
|
||||||
|
|
||||||
%build
|
%build
|
||||||
autoreconf -fi;
|
autoreconf -fi;
|
||||||
|
Loading…
Reference in New Issue
Block a user