4

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?

Jeff Schaller
  • 66,199
  • 35
  • 114
  • 250
BenMorel
  • 4,447
  • 8
  • 36
  • 46
  • checkinstall makes deb packages, I don't remember if it does rpms. – muru Sep 01 '19 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 01 '19 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. – BenMorel Sep 01 '19 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 https://stackoverflow.com/questions/13040087/what-is-a-good-rpm-building-tool – Knud Larsen Sep 02 '19 at 03:34
  • You can use this wizard https://xsuchy.github.io/rpm-spec-wizard/ which will guide you step by step to create the SPEC file. – msuchy Sep 02 '19 at 07:39

0 Answers0