scummvm/dists/redhat
Max Horn 77b25966a0 Add dists/redhat/scummvm-tools.spec.in, and add it to tools/update-version.pl
This is not quite perfect because in principle the ScummVM Tools version
might differ from the ScummVM version. But this way we are at least
reminded during a release that we may have to adjust this.

A potentially better approach would be to move scummvm-tools.spec to the tools
SVN module, and adding a similar update-version.pl script there.

svn-id: r48454
2010-04-01 08:31:19 +00:00
..
README Removed trailing spaces. 2008-01-27 19:47:41 +00:00
scummvm-tools.spec Add dists/redhat/scummvm-tools.spec.in, and add it to tools/update-version.pl 2010-04-01 08:31:19 +00:00
scummvm-tools.spec.in Add dists/redhat/scummvm-tools.spec.in, and add it to tools/update-version.pl 2010-04-01 08:31:19 +00:00
scummvm.spec And this is 1.2.0svn now 2010-03-07 23:07:32 +00:00
scummvm.spec.in Change BS 1 & 2 to I & II (see discussion on -devel) 2010-01-03 21:20:05 +00:00

How to build an RPM:


Note: the following assumes that the RPM topdir is /usr/src/redhat .
If you have set a different topdir in /usr/lib/rpm/macros or ~/.rpmmacros,
adapt the below instructions where necessary.


1) Collect sources:

Place scummvm-%{version}.tar.bz2, libmad-0.15.1b.tar.bz2 and
mpeg2dec-0.4.0b.tar.bz2 in /usr/src/redhat/SOURCES .
If you have different versions of mpeg2dec or libmad, put the correct version
numbers in the .spec file.

Place scummvm.spec in /usr/src/redhat/SPECS .

2) Build the rpm:

Change directory to /usr/src/redhat/SPECS .
Run:

rpmbuild -ba scummvm.spec

The RPM should now be built and placed in /usr/src/redhat/RPMS/i386 and
the source RPM in /usr/src/redhat/SRPMS




Note: libmad and mpeg2dec are statically linked into the scummvm binary
because Fedora does not carry libmad and mpeg2dec packages, so I did not
want to make the scummvm package depend on them.
You can get libmad from http://www.underbit.com/products/mad/
and mpeg2dec from http://libmpeg2.sourceforge.net/ .