2017-09-11 20:29:57 +02:00
|
|
|
#
|
|
|
|
# spec file for package fplll
|
|
|
|
#
|
2018-10-20 13:51:29 +02:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2017-09-11 20:29:57 +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.
|
|
|
|
|
2018-10-20 13:51:29 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-09-11 20:29:57 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: fplll
|
2018-10-20 13:51:29 +02:00
|
|
|
%define lname libfplll5
|
|
|
|
Version: 5.2.1
|
2017-09-11 20:29:57 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Lenstra-Lovász Lattice Basis Reduction Algorithm Library
|
2018-10-20 13:51:29 +02:00
|
|
|
License: LGPL-2.1-or-later
|
2017-09-11 20:29:57 +02:00
|
|
|
Group: Productivity/Scientific/Math
|
|
|
|
Url: https://github.com/dstehle/fplll
|
|
|
|
|
|
|
|
#Git-Clone: https://github.com/fplll/fplll
|
|
|
|
Source: https://github.com/fplll/fplll/releases/download/%version/fplll-%version.tar.gz
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: gmp-devel
|
|
|
|
BuildRequires: mpfr-devel
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
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 %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
|
|
|
|
Obsoletes: libfplll-devel < %version-%release
|
|
|
|
Provides: libfplll-devel = %version-%release
|
|
|
|
|
|
|
|
%description -n fplll-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
|
2017-12-25 20:13:21 +01:00
|
|
|
%make_install
|
|
|
|
rm -f "%buildroot/%_libdir"/*.la
|
2017-09-11 20:29:57 +02:00
|
|
|
|
|
|
|
%post -n %lname -p /sbin/ldconfig
|
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_bindir/fplll
|
|
|
|
%_bindir/latticegen
|
|
|
|
%_bindir/latsieve
|
|
|
|
%_datadir/fplll/
|
|
|
|
%doc COPYING NEWS README.md
|
|
|
|
|
|
|
|
%files -n %lname
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_libdir/libfplll.so.*
|
|
|
|
|
|
|
|
%files -n fplll-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_includedir/fplll*
|
|
|
|
%_libdir/libfplll.so
|
|
|
|
%_libdir/pkgconfig/*.pc
|
|
|
|
|
|
|
|
%changelog
|