Last active
September 9, 2023 18:43
-
-
Save LorbusChris/4e51bc016b954d5451fa8eece70a0c14 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Prep | |
echo "lorbus" > ~/.fedora.upn | |
ssh-keygen | |
# Add the created public key on https://admin.fedoraproject.org/accounts (and pagure.io) | |
# Create src.fp.o API key on web interface and save locally (Valid 60 Days) | |
cat <<EOF > ~/.config/rpkg/fedpkg.conf | |
[fedpkg.pagure] | |
token = <token_here> | |
EOF | |
# Logging in | |
ssh-add ~/.ssh/fedora | |
kinit [email protected] | |
# Requesting a Repo | |
fedpkg request-repo <package-name> <bz-ticket-number> | |
fedpkg --name <package-name> request-branch <branch-name> | |
# or | |
#fedpkg --name <package-name> request-branch --all-releases | |
# Initial Creation | |
git clone ssh://[email protected]/rpms/<package-name>.git | |
# or | |
#fedpkg co <source_package_name> | |
cd <package-name> | |
fedpkg import <path-to-src-rpm>; git commit -m "Initial import (#<bz-ticket-number>)." | |
# Updating Existing Packages | |
fedpkg pull | |
# Download new source file to repo dir | |
fedpkg new-sources <source-file> | |
fedpkg diff | |
fedpkg lint | |
fedpkg commit -c | |
# Test build from local changes | |
fedpkg scratch-build --srpm | |
# Release build | |
fedpkg push | |
fedpkg build | |
fedpkg switch-branch <branch-name> | |
# on each branch | |
git merge master | |
fedpkg push | |
fedpkg build | |
# Adding Package to current and previous Releases (Bodhi) | |
fedpkg update |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment