Page 1 of 1

RPM packages

Posted: Sun Aug 03, 2014 11:41 am
by djcj
There are no RPM packages provided for XnViewMP, so I made a quick lookup on how to build RPMs and created a spec file and scripts to do that:
https://github.com/darealshinji/xnviewmp-rpm

However, I'm running Ubuntu, so I can't really check how good those packages work. Maybe someone who's experienced in RPM building might want to give some input.

Re: RPM packages

Posted: Sun Aug 10, 2014 10:42 am
by bitzbox
There's an RPM package in the official PCLinuxOS repository here: ftp://ftp.nluug.nl/pub/os/Linux/distr/p ... 4.i586.rpm
Naturally, this is built for PCLinuxOS but it may work with other RPM-based distributions.

There's also a source RPM (SRPM) in the official PCLinuxOS repository here: ftp://ftp.nluug.nl/pub/os/Linux/distr/p ... 14.src.rpm
This obviously contains a SPECFILE which could be adapted to build the package for other RPM-based distributions.

Hope this helps.

Re: RPM packages

Posted: Sun Aug 10, 2014 11:05 am
by bitzbox
Further to my previous post, I've just grabbed a copy of the source RPM (SRPM) and had a look at the SPECFILE. Although it's a source RPM, it doesn't actually contain the XNViewMP sources. What the SPECFILE does is to grab a copy of the XNViewMP tarball, extract the contents to the relevant directories and then write a Desktop Entry in the KDE menu structure. I'm assuming that this should build an RPM package which should work on any RPM-based distribution.

Re: RPM packages

Posted: Tue Aug 12, 2014 9:21 am
by djcj
bitzbox wrote:I'm assuming that this should build an RPM package which should work on any RPM-based distribution.
Probably, as XnView includes exiftools and Qt. I reworked my script a little so that it asks for the right path to the system exiftools libraries, which differs on RPM distros.

Re: RPM packages

Posted: Wed Aug 13, 2014 8:15 am
by bitzbox
I've tweaked the PCLOS specfile and built what you might call a "generic" RPM package but it needs testing. If you (or anyone else) would like to try it out, everything's here: http://openxp.org.uk/pub/xnviewmp

Use at your own risk! :wink:

Re: RPM packages

Posted: Fri Aug 15, 2014 4:34 pm
by djcj
Maybe you want to add the usage of chrpath to delete the pointless runpaths from the ELF files, like I did: https://github.com/darealshinji/xnviewm ... pec.in#L21