forked from pool/givaro
136 lines
4.5 KiB
RPMSpec
136 lines
4.5 KiB
RPMSpec
|
#
|
||
|
# spec file for package givaro
|
||
|
#
|
||
|
# Copyright (c) 2013 SUSE LINUX Products 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: givaro
|
||
|
%define lname libgivaro0
|
||
|
# Watch whether their ABI changes without notice and without SONAME again..
|
||
|
Version: 3.7.2
|
||
|
Release: 0
|
||
|
Summary: C++ library for arithmetic and algebraic computations
|
||
|
License: CECILL-B
|
||
|
Group: Productivity/Scientific/Math
|
||
|
Url: http://givaro.forge.imag.fr/
|
||
|
|
||
|
#DL-URL: http://forge.imag.fr/frs/download.php/370/givaro-3.7.2.tar.gz
|
||
|
Source: %name-%version.tar.xz
|
||
|
BuildRequires: doxygen
|
||
|
BuildRequires: gcc-c++
|
||
|
BuildRequires: gmp-devel >= 3.1.1
|
||
|
BuildRequires: graphviz
|
||
|
BuildRequires: xz
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||
|
|
||
|
%description
|
||
|
Givaro is a C++ library for arithmetic and algebraic computations.
|
||
|
|
||
|
Its main features are implementations of the basic arithmetic of many
|
||
|
mathematical entities: Primes fields, Extensions Fields, Finite
|
||
|
Fields, Finite Rings, Polynomials, Algebraic numbers, Arbitrary
|
||
|
precision integers and rationals (C++ wrappers over gmp) It also
|
||
|
provides data-structures and templated classes for the manipulation
|
||
|
of basic algebraic objects, such as vectors, matrices (dense, sparse,
|
||
|
structured), univariate polynomials (and therefore recursive
|
||
|
multivariate).
|
||
|
|
||
|
It contains different program modules and is fully compatible with
|
||
|
the LinBox linear algebra library and the KAAPI kernel for
|
||
|
Adaptative, Asynchronous Parallel and Interactive programming.
|
||
|
|
||
|
%package -n %lname
|
||
|
Summary: C++ library for arithmetic and algebraic computations
|
||
|
Group: System/Libraries
|
||
|
|
||
|
%description -n %lname
|
||
|
Givaro is a C++ library for arithmetic and algebraic computations.
|
||
|
|
||
|
Its main features are implementations of the basic arithmetic of many
|
||
|
mathematical entities: Primes fields, Extensions Fields, Finite
|
||
|
Fields, Finite Rings, Polynomials, Algebraic numbers, Arbitrary
|
||
|
precision integers and rationals. It also provides data-structures
|
||
|
and templated classes for the manipulation of basic algebraic
|
||
|
objects, such as vectors, matrices (dense, sparse, structured),
|
||
|
univariate polynomials (and therefore recursive multivariate).
|
||
|
|
||
|
%package devel
|
||
|
Summary: Development files for Givaro, an algorithmic-algebraic computation library
|
||
|
Group: Development/Libraries/C and C++
|
||
|
Requires: %lname = %version
|
||
|
|
||
|
%description devel
|
||
|
Givaro is a C++ library for arithmetic and algebraic computations.
|
||
|
|
||
|
Its main features are implementations of the basic arithmetic of many
|
||
|
mathematical entities: Primes fields, Extensions Fields, Finite
|
||
|
Fields, Finite Rings, Polynomials, Algebraic numbers, Arbitrary
|
||
|
precision integers and rationals.
|
||
|
|
||
|
This subpackage contains the include files and library links for
|
||
|
developing against the Givaro library.
|
||
|
|
||
|
%package doc
|
||
|
Summary: API documentation for the Givaro library, in HTML
|
||
|
Group: Documentation/HTML
|
||
|
BuildArch: noarch
|
||
|
|
||
|
%description doc
|
||
|
Givaro is a C++ library for arithmetic and algebraic computations.
|
||
|
|
||
|
Its main features are implementations of the basic arithmetic of many
|
||
|
mathematical entities: Primes fields, Extensions Fields, Finite
|
||
|
Fields, Finite Rings, Polynomials, Algebraic numbers, Arbitrary
|
||
|
precision integers and rationals.
|
||
|
|
||
|
This subpackage contains the Doxygen-generated HTML documentation for
|
||
|
the Givaro API.
|
||
|
|
||
|
%prep
|
||
|
%setup -q
|
||
|
|
||
|
%build
|
||
|
%configure --disable-static --enable-doc --with-docdir="%_docdir/%name"
|
||
|
make %{?_smp_mflags}
|
||
|
|
||
|
%install
|
||
|
b="%buildroot";
|
||
|
make install DESTDIR="$b";
|
||
|
rm -f "$b/%_libdir"/*.la;
|
||
|
|
||
|
%post -n %lname -p /sbin/ldconfig
|
||
|
%postun -n %lname -p /sbin/ldconfig
|
||
|
|
||
|
%files -n %lname
|
||
|
%defattr(-,root,root)
|
||
|
%_libdir/libgivaro.so.0*
|
||
|
|
||
|
%files devel
|
||
|
%defattr(-,root,root)
|
||
|
%_bindir/givaro-config
|
||
|
%_bindir/givaro-makefile
|
||
|
%_includedir/givaro-config.h
|
||
|
%_includedir/givaro/
|
||
|
%_includedir/gmp++/
|
||
|
%_libdir/libgivaro.so
|
||
|
|
||
|
%files doc
|
||
|
%defattr(-,root,root)
|
||
|
%dir %_docdir/%name/
|
||
|
%_docdir/%name/givaro.html
|
||
|
%_docdir/%name/givaro-html/
|
||
|
|
||
|
%changelog
|