RPM packages

Ideas for improvements and requests for new features in XnView MP

Moderators: helmut, XnTriq, xnview

Post Reply
djcj
Posts: 60
Joined: Wed Jan 08, 2014 3:37 pm

RPM packages

Post 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.
Last edited by djcj on Tue Aug 12, 2014 9:22 am, edited 2 times in total.
User avatar
bitzbox
Posts: 4
Joined: Mon Jul 30, 2012 11:53 am
Location: United Kingdom

Re: RPM packages

Post 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.
User avatar
bitzbox
Posts: 4
Joined: Mon Jul 30, 2012 11:53 am
Location: United Kingdom

Re: RPM packages

Post 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.
djcj
Posts: 60
Joined: Wed Jan 08, 2014 3:37 pm

Re: RPM packages

Post 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.
User avatar
bitzbox
Posts: 4
Joined: Mon Jul 30, 2012 11:53 am
Location: United Kingdom

Re: RPM packages

Post 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:
djcj
Posts: 60
Joined: Wed Jan 08, 2014 3:37 pm

Re: RPM packages

Post 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
Post Reply