Package primecount: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 | %define soname 7 Name: primecount Version: 7.12 Release: alt1 Summary: Count the number of primes License: BSD-2-Clause Group: Sciences/Mathematics Url: https://github.com/kimwalisch/primecount Source: https://github.com/kimwalisch/primecount/archive/v%version.tar.gz#/%name-%version.tar.gz BuildPreReq: rpm-build-ninja ctest BuildRequires: gcc-c++ libgomp-devel cmake asciidoc-a2x libprimesieve-devel %description primecount is a command-line program that counts the primes below an integer x less than or equal to 10^31 using highly optimized implementations of the combinatorial prime counting algorithms. %package -n lib%name%soname Summary: C/C++ library for counting prime numbers Group: System/Libraries %description -n lib%name%soname This package contains the shared runtime library for primecount. %package -n lib%name-devel Summary: Development files for the primecount library Group: Development/Other %description -n lib%name-devel This package contains the C/C++ header files and the configuration files for developing applications that use the primecount library. %prep %setup %build %cmake \ -GNinja \ %ifarch %e2k -DCMAKE_SHARED_LINKER_FLAGS="-fopenmp" \ -DCMAKE_EXE_LINKER_FLAGS="-fopenmp" \ %endif -DBUILD_LIBPRIMESIEVE=OFF \ -DBUILD_SHARED_LIBS=ON \ -DBUILD_STATIC_LIBS=OFF \ -DSTATICALLY_LINK_LIBPRIMECOUNT=OFF \ -DBUILD_MANPAGE=ON \ %ifnarch i586 -DBUILD_TESTS=ON \ %endif -DCMAKE_SKIP_RPATH:BOOL=OFF cmake --build "%_cmake__builddir" -j%__nprocs %install %cmake_install %ifnarch i586 %check cd %_cmake__builddir ctest %endif %files %doc README.md ChangeLog %_bindir/primecount %_man1dir/primecount.1* %files -n lib%name%soname %doc COPYING %_libdir/libprimecount.so.%{soname}* %files -n lib%name-devel %doc doc/libprimecount.md %_libdir/libprimecount.so %_includedir/primecount.h %_includedir/primecount.hpp %_pkgconfigdir/primecount.pc %changelog * Thu Apr 04 2024 Leontiy Volodin <lvol@altlinux.org> 7.12-alt1 - New version 7.12. * Fri Mar 15 2024 Leontiy Volodin <lvol@altlinux.org> 7.11-alt1 - New version 7.11. - Disabled tests on i586. * Thu Jan 11 2024 Leontiy Volodin <lvol@altlinux.org> 7.10-alt1 - New version 7.10. * Tue Jul 04 2023 Leontiy Volodin <lvol@altlinux.org> 7.9-alt1 - New version 7.9. * Wed Jun 07 2023 Leontiy Volodin <lvol@altlinux.org> 7.8-alt1 - New version 7.8. * Tue Dec 13 2022 Ilya Kurdyukov <ilyakurdyukov@altlinux.org> 7.6-alt1.1 - Fixed build for Elbrus. * Fri Dec 09 2022 Leontiy Volodin <lvol@altlinux.org> 7.6-alt1 - New version (7.6). * Mon Jul 11 2022 Leontiy Volodin <lvol@altlinux.org> 7.4-alt1 - New version (7.4). * Wed May 04 2022 Leontiy Volodin <lvol@altlinux.org> 7.3-alt1 - New version (7.3). * Wed Dec 08 2021 Leontiy Volodin <lvol@altlinux.org> 7.2-alt1 - New version (7.2). * Fri Nov 26 2021 Leontiy Volodin <lvol@altlinux.org> 7.1-alt1 - Initial build for ALT Sisyphus (thanks opensuse for the spec). - Built as require for sagemath. |