https://bugzilla.redhat.com/show_bug.cgi?id=1540335
--- Comment #4 from Michael Schwendt bugs.michael@gmx.net ---
%check make test
%install
During rpmbuild, %check gets executed _after_ %install, so putting %check below %install in the spec file is common practice. Sometimes tests are run on buildroot contents, btw, which explains the order of those sections.
%package static Requires: %{name}-devel = %{version}-%{release}
Make it arch-specific as explained in the base package guidelines: https://fedoraproject.org/wiki/Packaging:Guidelines#Requiring_Base_Package
%{_includedir}/primesieve/PrimeSieve.hpp
If you list individual files like that (which may be beneficial because the build would abort for added/removed files), you need to specify also directories:
%dir %{_includedir}/primesieve
https://fedoraproject.org/wiki/Packaging:Guidelines#File_and_Directory_Owner... https://fedoraproject.org/wiki/Packaging:UnownedDirectories