commit 883562446620132126addf38ab7e59ff754215f134eed138ed8f56be2bf966b7 Author: Atri Bhattacharya Date: Tue Sep 22 20:32:12 2020 +0000 Accepting request 836157 from home:jengelh:branches:science +extra requires on -devel OBS-URL: https://build.opensuse.org/request/show/836157 OBS-URL: https://build.opensuse.org/package/show/science/cm?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/cm-0.3.tar.gz b/cm-0.3.tar.gz new file mode 100644 index 0000000..2a8f106 --- /dev/null +++ b/cm-0.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:acbaec975b0438899eff28b3b2aabe12be083e0a7eda9875fe0b566c419ec5d9 +size 2483746 diff --git a/cm-0.3.tar.gz.asc b/cm-0.3.tar.gz.asc new file mode 100644 index 0000000..b026ed4 --- /dev/null +++ b/cm-0.3.tar.gz.asc @@ -0,0 +1,7 @@ +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1 + +iF4EABEIAAYFAlbpW2EACgkQ99XJv3ZcYeMXSwD9HZB0RQzODTT0f/+TIwInuIFl +y99fi+Z/F9o1l7nOV5wA/Al2McXIFAKUszqvvQhaNqJh7p3hf97EWV5IIDZNJnyq +=1FT+ +-----END PGP SIGNATURE----- diff --git a/cm.changes b/cm.changes new file mode 100644 index 0000000..18899cf --- /dev/null +++ b/cm.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Thu Sep 17 09:52:38 UTC 2020 - Jan Engelhardt + +- Initial package (version 0.3) for build.opensuse.org diff --git a/cm.keyring b/cm.keyring new file mode 100644 index 0000000..75f8617 --- /dev/null +++ b/cm.keyring @@ -0,0 +1,43 @@ +-----BEGIN PGP PUBLIC KEY BLOCK----- + +mQMuBEvtHBoRCACUnk4CbRKM5SsykvTko30oeZqmzDF4bS/usOEcZBjtpudsZBC4 +Po7zfIQAvRyCyEsXtBHCM9KhUNgIbfToDfb9quXvH0KR5D/lcHL3eOHfFPX+Yr34 +ouHj/+2yFQNNrsmEmteOFJVM+zX1KBx2I8XQWDNbnMbEbPj/DdCvsk7+3uoQCepG +bFD07pk7iFb1ny6DXgvM4fItJbY5z7+IQSJCv9blRNy55oCkOdGm1FE4Q/SPgbT4 +quZoec2IxGlFGt9ThUDpuYPcdejyjaC5eFDozhqXwMDh17yBDS53XF6lV02Djs7L +e6QbUJv4B3rqvOGV+eLfRxFuy6X6XEOh8FgrAQCzj7dNslwWI9nTwp5GCr7IO7jz +Ynmw+keMcaOUu0Gd2wf/f/uonF/RVy+Gp+PGHnPhi20xaKZ9unf3l3KWELTpizI9 +Of4R+N9AOpVR4Bf1MgkCV4VH8cpOUQOxQQUE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pCkC0stHD +t9cWEPVPeQD+JefGR5icHC2ieWEyCkKIujRIQBcLis9XfxUVT1TaZeW5Ag0ES+0c +GhAIAI7fBR4UWKVQ8t5A0hPXbOhQkxytztcIRo8rpGGMq//STIa4gBZjuyomkOGs +s8bElWFYeco09+OqGimD4fDEHXVpD/evIYiLq9U2sAUHZaKQAM3vE5LBfWa6zeuQ +wQj0/t9+cDyNCLTEjPsFQ5AdWyXxxO2cXetgOHbKwtyjEEsjbJNms6ysjsmXzQGk +DRCarGpWrqhAE+jweykpJLoCpCI8AmTv1/dA5AOcDfsNlTDJnKwWsIaEnvscE4YM +wcbCxwHUbhlzzEs8uS7Bk1LaQKQFUcvQBt1nFiHD3uTHZLX5RjL2VTRArQFWN3Pe +fAW1T5Ws+Fs+JwBy/VeKbuBud5sAAwYH/167fa00yFiCtloWPJ/Xv7Marh/CIpAG +0GOuPIJ4IqdEl/ZZ76A0KalUbrSL+fj1Eq/0auiNi9CbtlKI8lebn0AkKRYZe9j6 +JwIHJGomn1hgFhPGMKUToE4iUXmv+ZWNBbH4iJz87xcrmtV9mLHiVZHGMwMBv5VV +SnBoGcxcHHYnC3iAP8h+yaFt4pVIxQXRNNfbXsUFvZaW2Tgat8knupmxOZfJfdes +If+n1X36OvhsZgFw6rHTSf2mAfkiBl47uYbB8v8BR2nDXbtpNlg2ssPbmPIfOE0F +t7pZ5VN1YiNY60w+Sbh5wD0A4mr7OZ/t2NP0yxDMCLYN3jY5R+P/e4OIfgQYEQgA +JgIbDBYhBK0Xoh74rtjxzALb2ffVyb92XGHjBQJbAudaBQkQ9v7AAAoJEPfVyb92 +XGHjT5EBAJtGZkwzTgFD99j681mvnh/oNUsVm6AokXin3XwkWizgAQCO8sSp25gB +PD3cMj16yXix2WJlhIWW5gKCN6D/Sxa4eQ== +=8YWF +-----END PGP PUBLIC KEY BLOCK----- diff --git a/cm.spec b/cm.spec new file mode 100644 index 0000000..54fe599 --- /dev/null +++ b/cm.spec @@ -0,0 +1,130 @@ +# +# spec file for package cm +# +# Copyright (c) 2020 SUSE LLC +# +# 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 +Version: 0.3 +Release: 0 +Summary: Class polynomial computation via floating point approximations +License: GPL-3.0-or-later +Group: Productivity/Scientific/Math +URL: http://www.multiprecision.org/cm/ +Source: http://www.multiprecision.org/downloads/%name-%version.tar.gz +Source2: http://www.multiprecision.org/downloads/%name-%version.tar.gz.asc +Source3: %name.keyring +BuildRequires: gmp-devel >= 4.3.2 +BuildRequires: mpc-devel >= 1 +BuildRequires: mpfr-devel >= 3 +BuildRequires: mpfrcx-devel >= 0.4 +BuildRequires: pari-devel >= 2.7 +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++ +Requires: libcm1 = %version +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. + +%package -n libcm1 +Summary: Multi-precision floating-point interval arithmetic computation library +Group: System/Libraries + +%description -n libcm1 +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. + +%package -n libmpfpx0 +Summary: Multi-precision floating-point polynomial library +Group: System/Libraries + +%description -n libmpfpx0 +MPFPX is a GMP-based library for working with polynomials. + +%package -n mpfpx-devel +Summary: Header files for the multi-precision floating-point polynomial library +Group: System/Libraries +Requires: libmpfpx0 = %version +Requires: gmp-devel + +%description -n mpfpx-devel +MPFPX is a GMP-based library for working with polynomials. + +This subpackage provides the development headers for it. + +%prep +%autosetup -p1 + +%build +%configure --disable-static +%make_build + +%install +%make_install +rm -f "%buildroot/%_libdir"/*.la + +%check +%make_build check + +%post -n libcm1 -p /sbin/ldconfig +%postun -n libcm1 -p /sbin/ldconfig +%post -n libmpfpx0 -p /sbin/ldconfig +%postun -n libmpfpx0 -p /sbin/ldconfig + +%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 +%_datadir/cm/ +%_infodir/cm.info* + +%files devel +%_includedir/cm_*.h +%_libdir/libcm*.so + +%files -n libcm1 +%_libdir/libcm_*.so.1* + +%files -n libmpfpx0 +%_libdir/libmpfpx.so.0* + +%files -n mpfpx-devel +%_includedir/mpfpx.h +%_libdir/libmpfpx.so + +%changelog