From c1c96e4edbfb57c422e530fea386ae4bbe98258f Mon Sep 17 00:00:00 2001 From: Kim Walisch Date: Apr 24 2019 18:35:16 +0000 Subject: Initial import (#1540335). --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a0fef3b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/v7.4.tar.gz diff --git a/README.md b/README.md index b2a1fec..b9a732c 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,9 @@ # primesieve -The primesieve package \ No newline at end of file +primesieve is a program and C/C++ library that generates primes +using a highly optimized sieve of Eratosthenes implementation. +primesieve can generate primes and prime k-tuplets up to 2^64. + +For more information about primesieve visit: + +* https://github.com/kimwalisch/primesieve diff --git a/primesieve.spec b/primesieve.spec new file mode 100644 index 0000000..c6e0818 --- /dev/null +++ b/primesieve.spec @@ -0,0 +1,106 @@ +Name: primesieve +Version: 7.4 +Release: 2%{?dist} +Summary: Fast prime number generator +License: BSD +URL: https://github.com/kimwalisch/primesieve +Source0: https://github.com/kimwalisch/primesieve/archive/v%{version}.tar.gz +Requires: primesieve-libs%{?_isa} = %{version}-%{release} + +BuildRequires: gcc-c++ +BuildRequires: cmake >= 3.7 +BuildRequires: doxygen +BuildRequires: graphviz +BuildRequires: help2man + +%description +primesieve is a program that generates primes using a highly optimized +sieve of Eratosthenes implementation. primesieve can generate primes +and prime k-tuplets up to 2^64. + +%package -n primesieve-libs +Summary: C/C++ library for generating prime numbers + +%description -n primesieve-libs +This package contains the shared runtime library for primesieve. + +%package -n primesieve-devel +Summary: Development files for the primesieve library +Requires: primesieve-libs%{?_isa} = %{version}-%{release} + +%description -n primesieve-devel +This package contains the C/C++ header files and the configuration +files for developing applications that use the primesieve library. +It also contains the API documentation of the library. + +%prep +%setup -q -n %{name}-%{version} + +%build +%cmake . -DBUILD_STATIC_LIBS=OFF -DBUILD_TESTS=ON -DBUILD_DOC=ON +%make_build +%make_build doc +find doc/html -name '*.md5' -exec rm {} + + +%install +%make_install + +%ldconfig_scriptlets -n primesieve-libs + +%check +make test + +%files -n primesieve +%doc README.md ChangeLog +%{_bindir}/primesieve +%{_mandir}/man1/primesieve.1* + +%files -n primesieve-libs +%license COPYING +%{_libdir}/libprimesieve.so.* + +%files -n primesieve-devel +%doc doc/html examples +%{_libdir}/libprimesieve.so +%{_includedir}/primesieve.h +%{_includedir}/primesieve.hpp +%dir %{_includedir}/primesieve +%{_includedir}/primesieve/StorePrimes.hpp +%{_includedir}/primesieve/iterator.h +%{_includedir}/primesieve/iterator.hpp +%{_includedir}/primesieve/primesieve_error.hpp +%dir %{_libdir}/cmake/primesieve +%{_libdir}/cmake/primesieve/*.cmake +%{_libdir}/pkgconfig/primesieve.pc + +%changelog +* Tue Apr 23 2019 Kim Walisch - 7.4-2 +- Rename libprimesieve to primesieve-libs +- Rename libprimesieve-devel to primesieve-devel +- Increase CMake version to >= 3.7 + +* Mon Apr 08 2019 Kim Walisch - 7.4-1 +- Update to primesieve-7.4 +- Move Requires before description +- Drop libprimesieve-static package + +* Sun Jul 08 2018 Kim Walisch - 7.0-1 +- Update to primesieve-7.0 +- Fix erroneous date in changelog + +* Sat Mar 24 2018 Kim Walisch - 6.4-5 +- Update to primesieve-6.4 + +* Fri Feb 16 2018 Kim Walisch - 6.4-4 +- Add libprimesieve package +- Improve summaries and descriptions +- Update to primesieve-6.4-rc2 + +* Tue Feb 06 2018 Kim Walisch - 6.4-3 +- Fix new issues from package review + +* Wed Jan 31 2018 Kim Walisch - 6.4-2 +- Fix issues from package review + +* Tue Jan 30 2018 Kim Walisch - 6.4-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..a0a3021 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (v7.4.tar.gz) = 14d658d3129686ead12d52f43ba537d3276e306207cb2f9c094000b9903229c3f5f7b981d0e0a0e2ffba395344a3dbdea1b3c3110978188b89b64e83084be5b0