RPM package

Instructions for building the package and testing locally in a docker container (optionally):

  1. for docker container: sudo docker run -v path_to_repo:path_to_repo -it rockylinux:9

  2. run ./rpmbuild_setup.sh.sh to include all the needed configurations and dependencies (occasional press yes to continue ) or install them manually

  3. 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

  4. rpmdev-setuptree

  5. cp /drspine.spec ~/rpmbuild/SPECS/

  6. 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

  7. 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

  8. QA_RPATHS=$(( 0x0001|0x002|0x0010 )) rpmbuild -ba ~/rpmbuild/SPECS/drspine.spec

Test the following:

  1. rpm -qilRp ~/rpmbuild/RPMS/x86_64/drspine-*.rpm
  2. 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:

The version is set to 1.4.3

EWM: Package DrSpine as a system package (rpm)

Edited by Patrou, Maria

Merge request reports

Loading