Text Blame History Raw

primesieve

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:

How to update the primesieve package to the latest version

These instructions explain how to update the primesieve Fedora package to the latest version after a new primesieve version has been released on GitHub. Note that the installation instructions use the walki username which is the username of the current maintainer.

# Install prerequisites
sudo dnf install fedora-packager gcc-c++ cmake doxygen asciidoc

# Save FAS user name
echo "walki" > ~/.fedora.upn

# Get tar with Fedora SSH keys from my Google Drive.
# Then extract them and copy to ~/.ssh
tar xvf Downloads/fedora-ssh-2019-04-24.tar.xz
cp -Rf .ssh ~

# koji authentification
KRB5_TRACE=/dev/stdout kinit walki@FEDORAPROJECT.ORG

# Clone primesieve Fedroa repo
fedpkg clone primesieve
cd primesieve

# Download latest primesieve source archive from GitHub.
# Replace * with latest version.
wget https://github.com/kimwalisch/primesieve/archive/v*.tar.gz
fedpkg new-sources v*.tar.gz
git status
git commit -m "Ignore v*.tar.gz"

# Finally do the build
fedpkg build

How to update the primesieve package on old Fedora versions

The update above will be included in the next Fedora version. If you want to update the primesieve Fedora package in the current (or old) Fedora version you need to do builds for each such version and create an update request in the Bodhi system (via command-line or using the Bodhi website).

# Update primesieve for Fedora 31
fedpkg switch-branch f31
git merge master
git push
fedpkg build
fedpkg update