Creating an Eprints RPM

From EPrints Documentation
Revision as of 17:20, 19 February 2007 by Timbrody (talk | contribs)
Jump to: navigation, search

Download an appropriate EPrints Release


Creating the Eprints RPM requires root, because the process involves creating the eprints user and group.

Install rpm-build (depending on your package manager):

up2date rpm-build
yum install -y rpm-build

Download the Eprints source file (eprints-x.x.x.tar.gz, version 3.0.1 and above).

Create the RPM and source RPMs (will error if there are any missing dependencies):

rpmbuild -ta eprints-x.x.x.tar.gz

The RPMs should be written to /usr/src/redhat/RPMS/ and /usr/src/redhat/SRPMS/.

Building a Yum repository

Install createrepo from http://linux.duke.edu/projects/metadata/.

Create a directory structure containing RPMS and SRPMS directories:

.
./RPMS
./SRPMS

To create the repository metadata execute:

createrepo .

This should create a repodata directory.

Building an up2date repository

up2date uses an 'obsolete' repository structure and requires yum-arch (isn't in Yum version 3):

yum-arch .