commit 9cce925f7e2fa11e3d9ed516c0b0ad428dc79363447d16546114d2637d23f32c Author: Matthias Mailänder Date: Wed Feb 5 15:41:17 2014 +0000 Accepting request 221001 from home:jengelh:branches:science OBS-URL: https://build.opensuse.org/request/show/221001 OBS-URL: https://build.opensuse.org/package/show/science/gap-float?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/Float-0.5.12.tar.bz2 b/Float-0.5.12.tar.bz2 new file mode 100644 index 0000000..523e945 --- /dev/null +++ b/Float-0.5.12.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:04907aa08764fcc11ad2661c50ed1e78c9f0d847039af0ecedf2ef1526f8aef8 +size 460080 diff --git a/gap-float.changes b/gap-float.changes new file mode 100644 index 0000000..b64b963 --- /dev/null +++ b/gap-float.changes @@ -0,0 +1,12 @@ +------------------------------------------------------------------- +Wed Feb 5 14:05:36 UTC 2014 - jengelh@inai.de + +- Update to new upstream release 0.5.12 +* No changelog was provided +- Remove float-flags-order.diff, float-noversion.diff + (merged upstream) + +------------------------------------------------------------------- +Fri May 10 13:47:02 UTC 2013 - jengelh@inai.de + +- Initial package (version 0.5.9) for build.opensuse.org diff --git a/gap-float.spec b/gap-float.spec new file mode 100644 index 0000000..9a251a1 --- /dev/null +++ b/gap-float.spec @@ -0,0 +1,81 @@ +# +# spec file for package gap-float +# +# 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: gap-float +Summary: GAP: Integration of mpfr, mpfi, mpc, fplll and cxsc in GAP +Version: 0.5.12 +Release: 0 +License: GPL-2.0+ +Group: Productivity/Scientific/Math +Url: http://laurentbartholdi.github.com/float/ + +#Git-Clone: git://github.com/laurentbartholdi/float/ +Source: ftp://ftp.gap-system.org/pub/gap/gap4/tar.bz2/packages/Float-%version.tar.bz2 +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: cxsc-devel +BuildRequires: gap-devel >= 4.5.0 +BuildRequires: gap-rpm-devel +BuildRequires: gcc-c++ +BuildRequires: libfplll-devel +BuildRequires: libtool +BuildRequires: mpc-devel +BuildRequires: mpfi-devel +BuildRequires: mpfr-devel +Requires: gap-core >= 4.5.0 +Requires: gap-gapdoc >= 1.0 + +%description +The Float package allows GAP to manipulate floating-point numbers +with arbitrary precision. It is based on MPFR, MPFI, MPC, CXSC, +FPLLL. + +%prep +%setup -qn float-%version + +%build +# autoconf needs to be rerun, because upstream failed to do so after +# applying changes to configure.in +# +# configure:17420: checking for lllReduction in -lfplll +# configure:17433: g++ -o conftest -fomit-frame-pointer -fmessage-length=0 -grecord-gcc-switches -fstack-protector -O2 -Wall -D_FORTIFY_SOURCE=2 -funwind-tables -fasynchronous-unwind-tables -g -I/usr/include -L/usr/lib -lfplll -lgmp conftest.cpp >&5 +# /tmp/ccbQMiJi.o: In function `~Z_NR': +# /usr/include/fplll/nr.cpp:485: undefined reference to `__gmpz_clear' +# +# The correct line after autoconf is: +# configure:17464: g++ -o conftest -fomit-frame-pointer -fmessage-length=0 -grecord-gcc-switches -fstack-protector -O2 -Wall -D_FORTIFY_SOURCE=2 -funwind-tables -fasynchronous-unwind-tables -g -I/usr/include -L/usr/lib conftest.cpp -lfplll -lgmp >&5 + +pushd cnf/ +autoconf +cp configure .. +popd +%configure --with-gaproot="%gapdir" --with-cxsc-include="%_includedir/cxsc" \ + --with-fplll="%_prefix"; +make %{?_smp_mflags} + +%install +rm -Rf bin/*/.libs +find bin -type f ! -name float.so -delete +%gappkg_simple_install +rm -Rf "%buildroot/$moddir"/{cnf,configu*,src} + +%files -f %name.files +%defattr(-,root,root) + +%changelog