1
0
forked from pool/gap-float

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
This commit is contained in:
Matthias Mailänder 2014-02-05 15:41:17 +00:00 committed by Git OBS Bridge
commit 9cce925f7e
5 changed files with 120 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

3
Float-0.5.12.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:04907aa08764fcc11ad2661c50ed1e78c9f0d847039af0ecedf2ef1526f8aef8
size 460080

12
gap-float.changes Normal file
View File

@ -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

81
gap-float.spec Normal file
View File

@ -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