$ rpm -ivh https://github.com/samber/criterion-rpm-package/releases/download/2.3.3/libcriterion-devel-2.3.3-2.el7.x86_64.rpm
docker-compose run --rm rpm
or:
# tools
dnf install -y 'dnf-command(builddep)' rpm-build rpm-sign rpmlint gpg pinentry
# build
dnf builddep -y SPECS/libcriterion.spec
rpmbuild -ba --clean --target=x86_64 SPECS/libcriterion.spec
# sign
gpg --export -a '[email protected]' > /tmp/RPM-GPG-KEY-samber
rpm --import /tmp/RPM-GPG-KEY-samber
rpm --addsign RPMS/x86_64/libcriterion-devel-*
rpm --addsign SRPMS/libcriterion-devel-v2.3.3-2.src.rpm
rpm --checksig RPMS/x86_64/libcriterion-devel-*
rpm --checksig SRPMS/libcriterion-devel-v2.3.3-2.src.rpm
cd rpmbuild/
rpm -ivh RPMS/x86_64/libcriterion-devel-v2.3.3-2.x86_64.rpm
cd test/
gcc hello_world.c test_hello_world.c -o test_suite -lcriterion
./test_suite
- Update rpmbuild/SPECS/libcriterion.spec:
- Set
version
attribute - Increment
release
attribute - Comment the changelogs
- Set
- Update README.md with new version
cd ./rpmbuild/SOURCES
wget 'https://github.com/Snaipe/Criterion/releases/download/v2.3.3/criterion-v2.3.3.tar.bz2'
rpmlint libcriterion.spec
or for more comments:
rpm -ivh <file>.rpm
rpmlint libcriterion