Description of problem: rpmbuild -ba SPECS/kig.spec produces File not found: /home/paolini/rpmbuild/BUILDROOT/kig-17.08.1-1.fc27.i386/usr/share/appdata/org.kde.kig.appdata.xml Version-Release number of selected component (if applicable): kig-17.08.1-1.fc27.src.rpm How reproducible: by downloading kig-17.08.1-1.fc27.src.rpm, installing it and making rpms from it Steps to Reproduce: 1. get kig-17.08.1-1.fc27.src.rpm 2. rpm -i kig-17.08.1-1.fc27.src.rpm 3. cd ~/rpmbuild 4. rpmbuild -ba SPECS/kig.spec Actual results: RPM build errors: Macro expanded in comment on line 106: %{name}.knsrc Macro expanded in comment on line 112: %{name}* Macro expanded in comment on line 113: %{name}.notifyrc Macro expanded in comment on line 116: %{name}* File not found: /home/paolini/rpmbuild/BUILDROOT/kig-17.08.1-1.fc27.i386/usr/share/appdata/org.kde.kig.appdata.xml and no rpm produced Additional info: It seems that the kig.spec file should now contain: appstream-util validate-relax --nonet %{buildroot}%{_kf5_datadir}/metainfo/org.kde.%{name}.appdata.xml ||: instead of appstream-util validate-relax --nonet %{buildroot}%{_kf5_datadir}/appdata/org.kde.%{name}.appdata.xml ||: in the %check section and similarly in the %files section
Sorry, that's a bug in kf5-rpm-macros, the definition of %_kf5_metainfodir for < f28 should be %{_kf5_datadir}/appdata to match expectations here. The intention was to switch to using %{_kf5_datadir}/metainfo only for f28+
This makes sense... I hope it will be quickly fixed in kf5, then.
Fix will land with kf5-5.42.0 coming soon.