3

I'd like to easily create RPM packages for some random projects that do not come bundled as RPM (or whose RPMs are severely outdated).

Take the Pop OS GTK theme as an example.

Installing the theme is just a matter of running this script:

wget https://github.com/pop-os/gtk-theme/archive/3.1.2.tar.gz
tar zxf gtk-theme-3.1.2.tar.gz
cd gtk-theme-3.1.2
make
sudo make install

Is there a tool that would just basically run this script in a chrooted environment, grab all the "installed" files, and bundle them as an RPM package?

  • checkinstall makes deb packages, I don't remember if it does rpms. – muru Sep 1 at 14:33
  • 1
    The "pop-gtk-theme" is available as an SRC-RPM for e.g. Fedora 29 : pop-gtk-theme-2.2.3.0-3.fc28.src.rpm . ... The 'src.rpm' includes the spec file pop-gtk-theme.spec : Edit 2.2.3.0 to 3.1.2 etc. etc. – Knud Larsen Sep 1 at 15:53
  • @KnudLarsen Thanks for the tip, altough I'm a bit reluctant to use the same spec file for another major release. I'd be much more comfortable finding a utility that does the above! This would be useful to me for other packages as well. – Benjamin Sep 1 at 16:32
  • The spec file is a reminder of the many packages required for the build : 94 packages, Fedora 29. ... Build scripts for RPM ( Google, rpm build tool ) : This thread suggests SCons, Togo stackoverflow.com/questions/13040087/… – Knud Larsen Sep 2 at 3:34
  • You can use this wizard xsuchy.github.io/rpm-spec-wizard which will guide you step by step to create the SPEC file. – msuchy Sep 2 at 7:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.