2020-09-22 22:32:12 +02:00
|
|
|
#
|
|
|
|
# spec file for package cm
|
|
|
|
#
|
2024-04-11 20:01:45 +02:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2020-09-22 22:32:12 +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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: cm
|
2024-04-11 20:01:45 +02:00
|
|
|
Version: 0.4.3
|
2020-09-22 22:32:12 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Class polynomial computation via floating point approximations
|
|
|
|
License: GPL-3.0-or-later
|
|
|
|
Group: Productivity/Scientific/Math
|
2022-08-27 08:52:41 +02:00
|
|
|
URL: https://www.multiprecision.org/cm/
|
2020-09-28 22:34:53 +02:00
|
|
|
#Git-Clone: https://gitlab.inria.fr/enge/cm
|
2023-06-24 16:49:09 +02:00
|
|
|
Source: http://www.multiprecision.org/downloads/%name-%version.tar.gz
|
|
|
|
Source2: http://www.multiprecision.org/downloads/%name-%version.tar.gz.asc
|
2020-09-22 22:32:12 +02:00
|
|
|
Source3: %name.keyring
|
2023-10-22 06:21:04 +02:00
|
|
|
BuildRequires: flint-devel >= 3
|
2020-09-22 22:32:12 +02:00
|
|
|
BuildRequires: gmp-devel >= 4.3.2
|
2022-08-27 08:52:41 +02:00
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: makeinfo
|
2020-09-22 22:32:12 +02:00
|
|
|
BuildRequires: mpc-devel >= 1
|
|
|
|
BuildRequires: mpfr-devel >= 3
|
2022-06-17 01:42:18 +02:00
|
|
|
BuildRequires: mpfrcx-devel >= 0.6.3
|
|
|
|
BuildRequires: pari-devel >= 2.11
|
2020-09-22 22:32:12 +02:00
|
|
|
BuildRequires: zlib-devel
|
|
|
|
|
|
|
|
%description
|
|
|
|
The CM software implements the construction of ring class fields of
|
|
|
|
imaginary quadratic number fields and of elliptic curves with complex
|
|
|
|
multiplication via floating point approximations.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for the CM computation software
|
|
|
|
Group: Development/Libraries/C and C++
|
2023-06-24 16:49:09 +02:00
|
|
|
Requires: libcm1 = %version-%release
|
2020-09-22 22:32:12 +02:00
|
|
|
Requires: mpc-devel
|
|
|
|
Requires: mpfrcx-devel
|
|
|
|
Requires: zlib-devel
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
The CM software implements the construction of ring class fields of
|
|
|
|
imaginary quadratic number fields and of elliptic curves with complex
|
|
|
|
multiplication via floating point approximations.
|
|
|
|
|
|
|
|
This subpackage provides the development headers for it.
|
|
|
|
|
2023-06-24 16:49:09 +02:00
|
|
|
%package -n libcm1
|
2020-09-22 22:32:12 +02:00
|
|
|
Summary: Multi-precision floating-point interval arithmetic computation library
|
|
|
|
Group: System/Libraries
|
|
|
|
|
2023-06-24 16:49:09 +02:00
|
|
|
%description -n libcm1
|
2020-09-22 22:32:12 +02:00
|
|
|
The CM software implements the construction of ring class fields of
|
|
|
|
imaginary quadratic number fields and of elliptic curves with complex
|
|
|
|
multiplication via floating point approximations.
|
|
|
|
|
|
|
|
It includes libraries that can be called from within a C program.
|
|
|
|
|
|
|
|
%prep
|
2023-06-24 16:49:09 +02:00
|
|
|
%autosetup -p1
|
2020-09-22 22:32:12 +02:00
|
|
|
|
|
|
|
%build
|
2022-08-27 08:52:41 +02:00
|
|
|
autoreconf -fi
|
2020-09-22 22:32:12 +02:00
|
|
|
%configure --disable-static
|
|
|
|
%make_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
|
|
|
rm -f "%buildroot/%_libdir"/*.la
|
|
|
|
|
|
|
|
%check
|
2020-09-23 14:27:45 +02:00
|
|
|
if ! %make_build check; then
|
|
|
|
cat tests/test-suite.log
|
|
|
|
exit 1
|
|
|
|
fi
|
2020-09-22 22:32:12 +02:00
|
|
|
|
2023-06-24 16:49:09 +02:00
|
|
|
%post -n libcm1 -p /sbin/ldconfig
|
|
|
|
%postun -n libcm1 -p /sbin/ldconfig
|
2020-09-22 22:32:12 +02:00
|
|
|
|
|
|
|
%post
|
|
|
|
%install_info --info-dir="%_infodir" "%_infodir/cm.info.gz"
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%install_info_delete --info-dir="%_infodir" "%_infodir/cm.info.gz"
|
|
|
|
|
|
|
|
%files
|
|
|
|
%_bindir/classpol
|
|
|
|
%_bindir/cm
|
2024-04-11 20:01:45 +02:00
|
|
|
%_bindir/ecpp*
|
2020-09-22 22:32:12 +02:00
|
|
|
%_datadir/cm/
|
|
|
|
%_infodir/cm.info*
|
|
|
|
|
|
|
|
%files devel
|
2022-06-17 01:42:18 +02:00
|
|
|
%_includedir/cm*.h
|
2020-09-22 22:32:12 +02:00
|
|
|
%_libdir/libcm*.so
|
|
|
|
|
2023-06-24 16:49:09 +02:00
|
|
|
%files -n libcm1
|
|
|
|
%_libdir/libcm.so.1*
|
2020-09-22 22:32:12 +02:00
|
|
|
|
|
|
|
%changelog
|