Name: givaro Version: 4.0.2 Release: 4%{?dist} Summary: C++ library for arithmetic and algebraic computations License: CeCILL-B URL: http://givaro.forge.imag.fr/ Source0: https://github.com/linbox-team/%{name}/archive/v%{version}.tar.gz # Fix breakage caused by new ANSI C iszero macro Patch0: %{name}-iszero.patch BuildRequires: doxygen-latex BuildRequires: gcc-c++ BuildRequires: ghostscript-core BuildRequires: gmp-devel BuildRequires: libtool BuildRequires: tex(stmaryrd.sty) %description Givaro is a C++ library for arithmetic and algebraic computations. Its main features are implementations of the basic arithmetic of many mathematical entities: Primes fields, Extensions Fields, Finite Fields, Finite Rings, Polynomials, Algebraic numbers, Arbitrary precision integers and rationals (C++ wrappers over gmp) It also provides data-structures and templated classes for the manipulation of basic algebraic objects, such as vectors, matrices (dense, sparse, structured), univariate polynomials (and therefore recursive multivariate). %package devel Summary: Files useful for %{name} development Requires: %{name}%{?_isa} = %{version}-%{release} Provides: bundled(jquery) %description devel The libraries and header files for using %{name} for development. %prep %setup -q %patch0 # Remove parts of the configure script that select non-default architectures # and ABIs. sed -i '/SIMD instructions/,/fabi-version/d' configure.ac # Upstream no longer ships the configure script autoreconf -fi %build %ifarch %{ix86} # Excess precision leads to test failures export CFLAGS="%{optflags} -ffloat-store" export CXXFLAGS="%{optflags} -ffloat-store" %endif %ifarch s390x %global optflags %optflags -ffp-contract=off %endif %configure --disable-static --enable-doc --docdir=%{_docdir}/%{name}-devel chmod a+x givaro-config # Get rid of undesirable hardcoded rpaths, and workaround libtool reordering # -Wl,--as-needed after all the libraries. sed -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \ -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \ -e 's|CC="\(g..\)"|CC="\1 -Wl,--as-needed"|' \ -i libtool make %{?_smp_mflags} # We don't want these files with the doxygen-generated files rm -f docs/givaro-html/{AUTHORS,COPYING,INSTALL} %install make install DESTDIR=%{buildroot} # We don't want libtool archives rm -f %{buildroot}%{_libdir}/lib%{name}.la # Documentation is installed in the wrong place mkdir -p %{buildroot}%{_docdir} mv %{buildroot}%{_prefix}/docs %{buildroot}%{_docdir}/%{name}-devel %check export LD_LIBRARY_PATH=$PWD/src/.libs make check %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %doc AUTHORS %license COPYRIGHT Licence_CeCILL-B_V1-en.txt Licence_CeCILL-B_V1-fr.txt %{_libdir}/lib%{name}.so.* %files devel %{_docdir}/%{name}-devel/ %{_bindir}/%{name}-config %{_bindir}/%{name}-makefile %{_includedir}/%{name}/ %{_includedir}/gmp++/ %{_includedir}/recint/ %{_includedir}/%{name}-config.h %{_libdir}/lib%{name}.so %{_libdir}/pkgconfig/%{name}.pc %changelog * Fri Feb 10 2017 Fedora Release Engineering - 4.0.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Oct 20 2016 Jerry James - 4.0.2-3 - Fix breakage due to new iszero macro in glibc * Tue Aug 23 2016 Dan Horák - 4.0.2-2 - Fix test-ringarith failure on s390x * Fri Aug 12 2016 Jerry James - 4.0.2-1 - New upstream release * Fri Feb 26 2016 Jerry James - 4.0.1-1 - New upstream release * Wed Feb 03 2016 Fedora Release Engineering - 3.8.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Jun 17 2015 Fedora Release Engineering - 3.8.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat May 02 2015 Kalev Lember - 3.8.0-3 - Rebuilt for GCC 5 C++11 ABI change * Mon Feb 16 2015 Jerry James - 3.8.0-2 - Note bundled jquery * Tue Oct 28 2014 Jerry James - 3.8.0-1 - New upstream release - Fix license handling * Sat Aug 16 2014 Fedora Release Engineering - 3.7.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 3.7.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sat Aug 03 2013 Fedora Release Engineering - 3.7.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Fri Feb 8 2013 Jerry James - 3.7.2-1 - New upstream release - Add BRs for TeXLive 2012 - Make sure the library doesn't have an rpath - Link with --as-needed - Add AUTHORS and COPYING to doc * Wed Sep 26 2012 Jerry James - 3.7.1-1 - New upstream release * Thu Jul 19 2012 Fedora Release Engineering - 3.7.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Tue Jul 3 2012 pcpa - 3.7.0-1 - Update to latest upstream release. - Remove gcc 4.7 patch already applied to upstream tarball. * Tue Feb 28 2012 Fedora Release Engineering - 3.5.0-3 - Rebuilt for c++ ABI breakage * Mon Jan 9 2012 Jerry James - 3.5.0-2 - Rebuild for GCC 4.7 * Tue Nov 1 2011 Jerry James - 3.5.0-1 - Update to 3.5.0 * Fri Oct 21 2011 Marcela Mašláňová - 3.4.2-1.2 - rebuild with new gmp without compat lib * Tue Oct 11 2011 Peter Schiffer - 3.4.2-1.1 - rebuild with new gmp * Tue Jul 5 2011 Jerry James - 3.4.2-1 - Update to 3.4.2 - Add doxygen documentation and examples to docs * Tue Feb 08 2011 Fedora Release Engineering - 3.3.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Sat Jan 02 2010 D Haley - 3.3.1-1 - Update to 3.3.1 * Fri Oct 09 2009 D Haley - 3.3.0-1 - Update to 3.3.0 - Relicence per CeCILL-B * Sat Sep 12 2009 D Haley - 3.2.15-0.2.rc1 - Change to GPL+ from GPL2 per bugzilla comment * Sun Aug 23 2009 D Haley - 3.2.15-0.1.rc1 - Upgrade to 3.2.15rc1 - Modify givaro-config.in to allow multiple flags simultaneously * Sat Dec 6 2008 Conrad Meyer - 3.2.13-2 - Fix endian header to be non-endian. * Sat Dec 6 2008 Conrad Meyer - 3.2.13-1 - Initial package.