File libfplll.spec of Package libfplll
#
# spec file for package libfplll
#
# Copyright (c) 2015 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: libfplll
%define lname libfplll0
Version: 4.0.4
Release: 0
Summary: Lenstra-Lovász Lattice Basis Reduction Algorithm Library
License: LGPL-2.1+
Group: Productivity/Scientific/Math
Url: http://xpujol.net/fplll/
#Git-Clone: git://github.com/dstehle/fplll
#Git-Web: https://github.com/dstehle/fplll
Source: http://perso.ens-lyon.fr/damien.stehle/fplll/libfplll-%version.tar.gz
BuildRequires: gcc-c++
BuildRequires: gmp-devel
BuildRequires: mpfr-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
fplll contains several algorithms on lattices that rely on
floating-point computations. This includes implementations of the
floating-point LLL reduction algorithm, offering different
speed/guarantees ratios. It also includes a rigorous floating-point
implementation of the Kannan-Fincke-Pohst algorithm that finds a
shortest non-zero lattice vector.
%package -n fplll
Summary: Program for Lenstra-Lovász Lattice Basis Reduction Algorithm
Group: Productivity/Scientific/Math
%description -n fplll
fplll contains several algorithms on lattices that rely on
floating-point computations. This includes implementations of the
floating-point LLL reduction algorithm, offering different
speed/guarantees ratios. It also includes a rigorous floating-point
implementation of the Kannan-Fincke-Pohst algorithm that finds a
shortest non-zero lattice vector.
%package -n %lname
Summary: Lenstra-Lovász Lattice Basis Reduction Algorithm Library
Group: System/Libraries
%description -n %lname
fplll contains several algorithms on lattices that rely on
floating-point computations. This includes implementations of the
floating-point LLL reduction algorithm, offering different
speed/guarantees ratios. It also includes a rigorous floating-point
implementation of the Kannan-Fincke-Pohst algorithm that finds a
shortest non-zero lattice vector.
%package devel
Summary: Development files for Lattice Basis Reduction with libfplll
Group: Development/Libraries/C and C++
Requires: %lname = %version
%description devel
fplll contains several algorithms on lattices that rely on
floating-point computations. This includes implementations of the
floating-point LLL reduction algorithm, offering different
speed/guarantees ratios. It also includes a rigorous floating-point
implementation of the Kannan-Fincke-Pohst algorithm that finds a
shortest non-zero lattice vector.
This subpackage contains libraries and header files for developing
applications that want to make use of libfplll.
%prep
%setup -q
%build
%configure --disable-static
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 fplll
%defattr(-,root,root)
%_bindir/fplll
%_bindir/latticegen
%doc COPYING NEWS README.html
%files -n %lname
%defattr(-,root,root)
%_libdir/libfplll.so.0*
%files devel
%defattr(-,root,root)
%_includedir/fplll*
%_libdir/libfplll.so
%changelog