RPM

= Fedora =

First, set a you build enviroment ( never, never, never build a rpm package how root ):

Now, create your macro definition to your build path:

To rebuild your own rpm for Fedora, download the last package version to src.rpm from: http://richzendy.org/repo/kiwix/

Also you must have installed the unac package (libunac) package, download and install:

now try this:

Your can find the rpm package built to you in ~/rpmbuild/RPMS

Rebuild from .spec file
If you know how to deal with .spec file and want to built a kiwix rpm with others options, you have to:

unpack a RMP package:

move the extracted files in your build enviroment like following:

edit and modify the .spec file, and rebuild the RPM: