doc: Update Fedora packaging instructions
@@ -253,14 +253,35 @@ sudo apt-get -f install
#### Fedora
+For packaging Fedora has `rpmdevtools` as an additional dependency:
+
+```sh
+sudo yum install -y rpmdevtools
+```
+
+When configuring CMake it is also required to set the `CMAKE_BUILD_TYPE` to `Release`.
+For instance, a minimal configuration is
+
+```sh
+cmake .. -DCMAKE_BUILD_TYPE="Release"
+make package
+```
+
To install RPM packages we recommend using `yum localinstall` since installing with `rpm` doesn't resolve missing dependencies.
-Run following command in the `package` directory:
+Run following command in the `build/package` directory:
```sh
sudo yum localinstall *
```
+Depending on the system configuration one might also need to configure and run `ldconfig`, for instance
+
+```sh
+sudo echo "/usr/local/lib" >> /etc/ld.so.conf
+sudo ldconfig
+```
+
### make
```sh
