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.
			
			
													RPM packages
RPM packages
					Last edited by djcj on Tue Aug 12, 2014 9:22 am, edited 2 times in total.
									
			
						
										
						Re: RPM packages
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.
			
			
									
						
										
						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
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
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.bitzbox wrote:I'm assuming that this should build an RPM package which should work on any RPM-based distribution.
Re: RPM packages
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!
			
			
									
						
										
						Use at your own risk!
Re: RPM packages
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