From 12797b1b5e1973d58b2515a03003809e5dcc0796 Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Thu, 23 Nov 2017 22:32:06 +0100 Subject: DISTS/FEDORA: Update README --- dists/redhat/README | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) (limited to 'dists/redhat') diff --git a/dists/redhat/README b/dists/redhat/README index d1cef06632..04a9ab3bc1 100644 --- a/dists/redhat/README +++ b/dists/redhat/README @@ -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 . + +This assumes that the RPM topdir is ~/rpmbuild/ . If you have set a different +topdir, adapt appropriately. -Place scummvm.spec in /usr/src/redhat/SPECS . +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 rpm: -Change directory to /usr/src/redhat/SPECS . +2) Build the rpms: + 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. -- cgit v1.2.3