Help needed: How to create a rpm?
To make it short, this is my directory structure (on my linux desktop) :
$ find . . ./usr ./usr/share ./usr/share/icons ./usr/share/icons/hicolor ./usr/share/icons/hicolor/86x86 ./usr/share/icons/hicolor/86x86/apps ./usr/share/icons/hicolor/86x86/apps/V10wlan.png ./usr/share/icons/hicolor/86x86/apps/V103g.png ./usr/share/applications ./usr/share/applications/V10wlan-switch.desktop ./usr/share/applications/V103g-switch.desktop ./usr/bin ./usr/bin/V10networkswitch.sh
Now to my questions:
- Do the directories need the correct rights (right now my desktop user is the owner, have to change to root? )
- How would I go about creating a rpm? I know there are tutorials for fedora ( https://fedoraproject.org/wiki/How_to_create_an_RPM_package ) but they seem overcomplicated for my needs.
Sadly the only way you can create an rpm is following that guide, and how a package can be built from its spec file. It takes a bit, but not too much.
magullo ( 2015-06-21 16:38:43 +0200 )edit@magullo - sadly, you're not quite correct, it's not the only way. An RPM can be built on the Jolla, I know, as I followed a guide by Schturman found on TMO; @V10lator - http://talk.maemo.org/showthread.php?t=92963 - this guide is for building an Ambience.rpm for SailfishOS, but the principles remain pretty much the same and shows how to get started by creating a .spec file to work with, I'm not saying it is easy, but it's not particularly hard either and don't be afraid to ask questions within TMO (become a member, it's worth it!)
I actually enjoyed learning and building the RPM on the device, as I couldn't (but still struggling) to wrap my head around using the Sailfish SDK for building RPM's.
Spam Hunter ( 2015-06-21 16:59:22 +0200 )editIf you have alien installed (https://en.wikipedia.org/wiki/Alien_%28software%29) you can run
$ tar cvf ../pkg.tar .
$ cd ..
$ alien --to-rpm pkg.tar
That will generate a noarch rpm containing the files.
Eierkopp ( 2015-06-21 20:20:14 +0200 )edit@Markkyboy thanks for pointing out.
magullo ( 2015-06-23 14:11:44 +0200 )edit