Name: alglib Version: 3.10.0 Release: 3%{?dist} Summary: A numerical analysis and data processing library License: GPLv2+ URL: http://www.alglib.net/ Source0: http://www.alglib.net/translator/re/%{name}-%{version}.cpp.gpl.tgz Source1: CMakeLists.txt # Extracted from manual.cpp.html Source2: bsd.txt BuildRequires: cmake %description ALGLIB is a cross-platform numerical analysis and data processing library. ALGLIB features include: - Data analysis (classification/regression, including neural networks) - Optimization and nonlinear solvers - Interpolation and linear/nonlinear least-squares fitting - Linear algebra (direct algorithms, EVD/SVD), direct and iterative linear solvers, Fast Fourier Transform and many other algorithms (numerical integration, ODEs, statistics, special functions) %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %package doc Summary: API documentation for %{name} License: BSD BuildArch: noarch %description doc The %{name}-doc package contains the %{name} API documentation. %prep %setup -q -n cpp cp %{SOURCE1} . cp %{SOURCE2} . # Fix permissions and line endings chmod 644 gpl2.txt chmod 644 manual.cpp.html sed -i 's|\r||g' manual.cpp.html %build mkdir build ( cd build # disable FMA support to get it pass all tests %ifarch aarch64 %{power64} s390 s390x export CXXFLAGS="$RPM_OPT_FLAGS -ffp-contract=off" export CFLAGS="$RPM_OPT_FLAGS -ffp-contract=off" %endif %cmake -DALGLIB_VERSION=%{version} .. make %{?_smp_mflags} ) %install %make_install -C build ln -s libalglib-%{version}.so %{buildroot}%{_libdir}/libalglib.so %check pushd build LD_LIBRARY_PATH=$PWD ./test_c || exit 1 LD_LIBRARY_PATH=$PWD ./test_i || exit 1 popd %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %license gpl2.txt %{_libdir}/libalglib-%{version}.so %files devel %{_includedir}/%{name}/ %{_libdir}/libalglib.so %files doc %license bsd.txt %doc manual.cpp.html %changelog * Wed Feb 03 2016 Fedora Release Engineering - 3.10.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Fri Sep 18 2015 Marcin Juszkiewicz - 3.10.0-2 - disable FMA support to get it pass all tests on secondary architectures * Sat Aug 22 2015 Sandro Mani - 3.10.0-1 - Update to 3.10.0 * Tue Jun 16 2015 Fedora Release Engineering - 3.9.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat May 02 2015 Kalev Lember - 3.9.0-2 - Rebuilt for GCC 5 C++11 ABI change * Sat Dec 13 2014 Sandro Mani - 3.9.0-1 - Update to 3.9.0 - Use version as library name suffix, not as soname * Fri Aug 15 2014 Fedora Release Engineering - 3.8.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Wed Jul 9 2014 Jakub Čajka - 3.8.2-5 - Made exlusive for primary archs * Wed Jun 18 2014 Sandro Mani - 3.8.2-4 - Add missing license tag * Wed Jun 18 2014 Sandro Mani - 3.8.2-3 - Add bsd.txt to doc subpackage (license text extracted from manual.cpp.html) * Wed Jun 18 2014 Sandro Mani - 3.8.2-2 - Add doc subpackage with correct license - Run tests - Fix unversioned so included in main package - Fix manual.cpp.html permissions, line endings * Sat Jun 14 2014 Sandro Mani - 3.8.2-1 - Initial package