readme: clarify Fedora build instructions

Add more formatting (spoilers!), some details about terms and external links.
This commit is contained in:
Alex 2020-04-07 19:02:20 +03:00 committed by GitHub
parent 16190832c8
commit ee4888685c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 3 deletions

View File

@ -51,6 +51,11 @@ You most likely have to rebuild ffmpeg with `--enable-swresample --enable-swscal
After that, go to the [next section](#configuring-and-building).
#### Fedora:
For more convenient work with building on Fedora, it's recommended to build it from our [RPM spec file][RPM].
<details>
<summary>1. Installing and configuring RPM tools</summary>
```console
# dnf install rpm-build rpmdevtools mock mock-rpmfusion-free
```
@ -69,22 +74,24 @@ Create RPM build base directories:
```bash
rpmdev-setuptree
```
</details>
Download sources:
2. Download sources:
```bash
spectool -g -R kepka.spec
```
Generate SRPM:
3. Generate SRPM (Source RPM for building from sources):
```bash
rpmbuild -bs kepka.spec
```
Start mock build sequence:
4. 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.
@ -157,3 +164,4 @@ The Kepka logo is available by CC-BY-SA 4.0 License. (c) 2018 leha-bot. The full
[preview_image]: docs/assets/preview.png
[vcpkg]: https://github.com/Microsoft/vcpkg
[visual-studio]: https://www.visualstudio.com/
[RPM]: https://rpm.org/