DISTS/FEDORA: Update README

This commit is contained in:
Willem Jan Palenstijn 2017-11-23 22:32:06 +01:00
parent 74958f4c1d
commit 12797b1b5e

View File

@ -1,34 +1,35 @@
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.
0) Install dependencies:
This assumes Fedora 24 or higher.
dnf install gcc-c++ make git libmad-devel desktop-file-utils libogg-devel libvorbis-devel flac-devel zlib-devel nasm SDL2-devel freetype-devel fluidsynth-devel libtheora-devel libpng-devel libjpeg-turbo-devel alsa-lib-devel wxGTK3-devel boost-devel rpm-build
1) Collect sources:
Place scummvm-%{version}.tar.bz2 and libmad-0.15.1b.tar.bz2
in /usr/src/redhat/SOURCES .
If you have a different version of libmad, put the correct version
numbers in the .spec file.
Place scummvm-%{version}.tar.bz2, scummvm-tools-%{version}.tar.bz2,
faad2-2.8.6.tar.gz, libmpeg2-0.5.1.tar.gz in ~/rpmbuild/SOURCES .
Place scummvm.spec in /usr/src/redhat/SPECS .
This assumes that the RPM topdir is ~/rpmbuild/ . If you have set a different
topdir, adapt appropriately.
2) Build the rpm:
faad2 is available at https://sourceforge.net/projects/faac/files/faad2-src/faad2-2.8.0/faad2-2.8.6.tar.gz/download
libmpeg2 at http://libmpeg2.sourceforge.net/files/libmpeg2-0.5.1.tar.gz
2) Build the rpms:
Change directory to /usr/src/redhat/SPECS .
Run:
rpmbuild -ba scummvm.spec
rpmbuild -ba scummvm-tools.spec
The RPM should now be built and placed in /usr/src/redhat/RPMS/i386 and
the source RPM in /usr/src/redhat/SRPMS
The RPMs should now be built and placed in ~/rpmbuild/RPMS/x86_64 and
the source RPMs in ~/rpmbuild/SRPMS
Note: libmad is statically linked into the scummvm binary
because Fedora does not carry a libmad package, so I did not
want to make the scummvm package depend on them.
You can get libmad from http://www.underbit.com/products/mad/ .
Note: faad2 and libmpeg2 are statically linked into the scummvm binary
because Fedora do not carry the corresponding packages.