JSS Fedora Packaging
Contents
Overview
JSS Fedora source package is located at https://src.fedoraproject.org/rpms/jss.
Prerequisites
$ dnf install git fedpkg rpm-build $ dnf builddep jss
Getting Source Package
To get the source package:
$ fedpkg clone jss Fedora/jss
The above command will create a new Fedora/jss folder.
Updating JSS Source Tarball
To update JSS source in Fedora, first generate a new JSS source archive (no need to build upstream binaries).
Go to jss folder, make sure all changes are committed.
To create a source tarball execute the following:
$ ./build.sh --source-tag=HEAD src
or
$ git archive --format=tar.gz --prefix jss-4.5.0/jss/ -o ../Fedora/jss/jss-4.5.0.tar.gz -v HEAD
Then go to Fedora/jss folder and follow the instructions below.
Update the source checksum, for example:
$ sha512sum --tag jss-4.5.0.tar.gz > sources
Building JSS Packages
Creating Local Build
To create a local build:
$ fedpkg local
Creating SRPM
To create an SRPM:
$ fedpkg srpm
Creating COPR Build
To create a COPR build for all platforms:
$ fedpkg copr-build <username>/<COPR repo>
To create a COPR build for certain platforms only, create an SRPM, then execute the following command:
$ copr build <username>/pki-10.6 <SRPM> \ -r fedora-27-x86_64 \ -r fedora-28-x86_64 \ -r fedora-rawhide-x86_64
Installing JSS Packages
To install JSS package for Fedora:
$ sudo dnf install x86_64/*.rpm
or reinstall the packages (if the same version/release number has already been installed):
$ sudo dnf reinstall x86_64/*.rpm