Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

README.md: add Fedora build info #122

Merged
merged 4 commits into from
Mar 12, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down