2012-12-07 09:02:53 +01:00
|
|
|
#
|
|
|
|
# spec file for package 4ti2
|
|
|
|
#
|
2013-04-16 05:43:24 +02:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2012-12-07 09:02:53 +01: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-04-16 05:43:24 +02:00
|
|
|
|
|
|
|
|
2012-12-07 09:02:53 +01:00
|
|
|
Name: 4ti2
|
2014-04-18 11:37:26 +02:00
|
|
|
Version: 1.6.2
|
2012-12-07 09:02:53 +01:00
|
|
|
Release: 0
|
2013-04-16 05:43:24 +02:00
|
|
|
Summary: Package for algebraic, geometric and combinatorial problems on linear spaces
|
2012-12-07 09:02:53 +01:00
|
|
|
License: GPL-2.0+
|
2013-04-16 05:43:24 +02:00
|
|
|
Group: Productivity/Scientific/Math
|
|
|
|
Url: http://4ti2.de/
|
|
|
|
|
2014-04-18 11:37:26 +02:00
|
|
|
Source: http://4ti2.de/version_%version/%name-%version.tar.gz
|
2014-02-05 01:11:41 +01:00
|
|
|
Patch1: 4ti2-missing-libs.diff
|
|
|
|
Patch3: 4ti2-docdir.diff
|
2012-12-07 09:02:53 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2013-04-16 05:43:24 +02:00
|
|
|
BuildRequires: autoconf >= 2.59
|
|
|
|
BuildRequires: automake
|
2014-02-05 01:11:41 +01:00
|
|
|
BuildRequires: gcc-c++ >= 4.3
|
|
|
|
BuildRequires: glpk-devel >= 4.52
|
2013-04-16 05:43:24 +02:00
|
|
|
BuildRequires: gmp-devel >= 4.1.4
|
|
|
|
BuildRequires: libtool
|
2012-12-07 09:02:53 +01:00
|
|
|
|
|
|
|
%description
|
2013-04-16 05:43:24 +02:00
|
|
|
4ti2 is a collection of programs that compute and solve algebraic,
|
|
|
|
geometric and combinational problems on linear spaces.
|
2012-12-07 09:02:53 +01:00
|
|
|
|
2013-04-17 10:09:05 +02:00
|
|
|
%package -n lib4ti2-0
|
|
|
|
Summary: Library for computation of Gröbner bases with 4ti2
|
2013-04-16 05:43:24 +02:00
|
|
|
Group: System/Libraries
|
2012-12-07 09:02:53 +01:00
|
|
|
|
2013-04-17 10:09:05 +02:00
|
|
|
%description -n lib4ti2-0
|
|
|
|
This package contains the 4ti2 program library, which comes in three
|
|
|
|
flavors:
|
|
|
|
- 32-bit precision integers
|
|
|
|
- 64-bit precision integers
|
|
|
|
- arbitrary precision integer support through use of GNU MP
|
2012-12-07 09:02:53 +01:00
|
|
|
|
|
|
|
%package -n libzsolve0
|
2013-04-16 05:43:24 +02:00
|
|
|
Summary: Library for solving linear systems over integers for 4ti2
|
|
|
|
Group: System/Libraries
|
2012-12-07 09:02:53 +01:00
|
|
|
|
|
|
|
%description -n libzsolve0
|
2013-04-16 05:43:24 +02:00
|
|
|
This package contains the 4ti2 library for solving systems linear systems over
|
|
|
|
integers (\mathbb{Z}).
|
2012-12-07 09:02:53 +01:00
|
|
|
|
|
|
|
%package devel
|
2013-04-16 05:43:24 +02:00
|
|
|
Summary: Development files for 4ti2
|
|
|
|
Group: Development/Libraries/C and C++
|
2013-04-17 10:09:05 +02:00
|
|
|
Requires: lib4ti2-0 = %version
|
2013-04-16 05:43:24 +02:00
|
|
|
Requires: libzsolve0 = %version
|
2012-12-07 09:02:53 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
This subpackage contains the include files and library links for
|
|
|
|
developing against 4ti2's libraries.
|
|
|
|
|
|
|
|
%prep
|
2014-02-05 01:11:41 +01:00
|
|
|
%setup -q
|
2014-04-18 11:37:26 +02:00
|
|
|
%patch -P 1 -P 3 -p1
|
2012-12-07 09:02:53 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
autoreconf -fi;
|
2013-04-17 10:09:05 +02:00
|
|
|
%configure --enable-shared --disable-static \
|
2014-02-05 01:11:41 +01:00
|
|
|
--includedir="%_includedir/pkg/%name" --docdir="%_docdir/%name"
|
2012-12-07 09:02:53 +01:00
|
|
|
make %{?_smp_mflags};
|
|
|
|
|
|
|
|
%install
|
|
|
|
b="%buildroot";
|
|
|
|
make install DESTDIR="$b";
|
2014-02-05 01:11:41 +01:00
|
|
|
cp doc/* "$b/%_docdir/%name/"
|
2012-12-07 09:02:53 +01:00
|
|
|
rm -f "$b/%_libdir"/*.la;
|
|
|
|
mkdir -p "$b/%_bindir" "$b/%_libexecdir/%name";
|
|
|
|
mv "$b/%_bindir"/* "$b/%_libexecdir/%name/";
|
|
|
|
pushd "$b/%_libexecdir/%name";
|
2014-02-05 01:11:41 +01:00
|
|
|
for i in *; do
|
|
|
|
ln -s "%_libexecdir/%name/$i" "$b/%_bindir/4ti2_$i";
|
2012-12-07 09:02:53 +01:00
|
|
|
done;
|
|
|
|
|
2013-04-17 10:09:05 +02:00
|
|
|
%post -n lib4ti2-0 -p /sbin/ldconfig
|
|
|
|
%postun -n lib4ti2-0 -p /sbin/ldconfig
|
2012-12-07 09:02:53 +01:00
|
|
|
%post -n libzsolve0 -p /sbin/ldconfig
|
|
|
|
%postun -n libzsolve0 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_bindir/4ti2*
|
2014-02-05 01:11:41 +01:00
|
|
|
%_libexecdir/%name/
|
|
|
|
%_docdir/%name/
|
2012-12-07 09:02:53 +01:00
|
|
|
|
2013-04-17 10:09:05 +02:00
|
|
|
%files -n lib4ti2-0
|
2012-12-07 09:02:53 +01:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%_libdir/lib4ti2gmp.so.0*
|
|
|
|
%_libdir/lib4ti2int32.so.0*
|
|
|
|
%_libdir/lib4ti2int64.so.0*
|
2014-02-05 01:11:41 +01:00
|
|
|
%_libdir/lib4ti2common.so.0*
|
|
|
|
%_libdir/lib4ti2util.so.0*
|
2012-12-07 09:02:53 +01:00
|
|
|
|
|
|
|
%files -n libzsolve0
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_libdir/libzsolve.so.0*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2013-04-17 10:09:05 +02:00
|
|
|
%_includedir/pkg/
|
2012-12-07 09:02:53 +01:00
|
|
|
%_libdir/lib*.so
|
|
|
|
|
|
|
|
%changelog
|