RPM package
Instructions for building the package and testing locally in a docker container (optionally):
-
for docker container: sudo docker run -v path_to_repo:path_to_repo -it rockylinux:9
-
run ./rpmbuild_setup.sh.sh to include all the needed configurations and dependencies (occasional press yes to continue ) or install them manually
-
download from opensuse: gr-0.73.17-106.2.x86_64.rpm, python3-gr-1.27.0-105.17.x86_64.rpm and install them manually
-
rpmdev-setuptree
-
cp /drspine.spec ~/rpmbuild/SPECS/
-
Create a drspine-1.4.3 directory, compress the code and (tar -zcvf drspine-1.4.3.tar.gz drspine-1.4.3) and cp drspine-1.4.3.tar.gz ~/rpmbuild/SOURCES
-
Copy the ctan latex files to Source directory too:
cp appendix.zip ~/rpmbuild/SOURCES
cp draftwatermark.zip ~/rpmbuild/SOURCES
cp cprotect.zip ~/rpmbuild/SOURCES
cp relsize.zip ~/rpmbuild/SOURCES
-
QA_RPATHS=$(( 0x0001|0x002|0x0010 )) rpmbuild -ba ~/rpmbuild/SPECS/drspine.spec
Test the following:
- rpm -qilRp ~/rpmbuild/RPMS/x86_64/drspine-*.rpm
- dnf install ~/rpmbuild/RPMS/x86_64/drspine-1.5-1.el9.x86_64.rpm
the artifacts are installed in:
- /usr/bin/
- /usr/lib/
- /share/
- /usr/share/texmf/tex/latex/contrib/
Might need this again:
- dnf config-manager --set-enabled crb && dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm before installing the package or some dependencies
The version is set to 1.4.3