From 19e8c86e4b3420f65c2be48190d5636d2c3e9f0c Mon Sep 17 00:00:00 2001 From: Alex Date: Mon, 12 Mar 2018 12:56:05 +0300 Subject: [PATCH] README.md: add Fedora buid info (#122) Also move out the distro-agnostic part to another subsection Related to #45 [skip ci] --- README.md | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/README.md b/README.md index e1594158a..34f7baff4 100644 --- a/README.md +++ b/README.md @@ -25,8 +25,48 @@ Debian/Ubuntu: ```console # apt-get install qtbase5-private-dev zlib1g-dev libopenal-dev libavcodec-dev libavresample-dev libswscale-dev libopenal-data libopenal1 libavutil-dev ``` + You most likely have to rebuild ffmpeg with `--enable-swresample --enable-swscale` +After that, go to the [next section](#configuring-and-building). + +Fedora: +```console +# dnf install rpm-build rpmdevtools mock mock-rpmfusion-free +``` + +Add yourself to `mock` group (you must run this only for the first time after installing mock): +```bash +sudo usermod -a -G mock $(whoami) +``` + +You need to relogin to your system or run: +```bash +newgrp mock +``` + +Create RPM build base directories: +```bash +rpmdev-setuptree +``` + +Download sources: +```bash +spectool -g -R kepka.spec +``` + +Generate SRPM: +```bash +rpmbuild -bs kepka.spec +``` + +Start mock build sequence: +```bash +mock -r fedora-$(rpm -E %fedora)-$(uname -m)-rpmfusion_free --rebuild ~/rpmbuild/SRPMS/kepka*.src.rpm +``` + +#### Configuring and building + Provide paths to OpenAL-soft and Qt5 in CMAKE_PREFIX_PATH variable when configuring. ccache -o sloppiness=pch_defines,time_macros