Created attachment 1229111 [details] quick patch The %pre scriptlet creates and changes the ownership of /var/lib/znc, which is kind of an odd way to do it. This results in nothing owning that directory, which is probably not a good idea. It sort of looks like whoever wrote that scriptlet didn't realize that you can use %attr(-,znc,znc) in %files even though that user doesn't exist until %pre runs. But, like magic, it works fine. I've attached a quick patch.
This bug appears to have been reported against 'rawhide' during the Fedora 26 development cycle. Changing version to '26'.
The patch is applied in dist-git and building this package fails now with: Processing files: znc-1.6.5-4.fc27.x86_64 error: Directory not found: /builddir/build/BUILDROOT/znc-1.6.5-4.fc27.x86_64/var/lib/znc
The directory was not created in the %install section.
znc-1.6.5-4.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-f7edf76260
znc-1.6.5-3.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-9ac8209bf4
znc-1.6.5-3.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2017-5d1a7e81ca
znc-1.6.5-4.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-f7edf76260
znc-1.6.5-3.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-5d1a7e81ca
znc-1.6.5-3.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-9ac8209bf4
znc-1.6.5-4.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.
znc-1.6.5-3.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.
znc-1.6.5-3.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.