diff --git a/python-murmurhash.changes b/python-murmurhash.changes index 79ab9eb..dc79f7d 100644 --- a/python-murmurhash.changes +++ b/python-murmurhash.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Aug 30 12:31:05 UTC 2023 - Matej Cepl + +- Fix installation of -devel package. + ------------------------------------------------------------------- Mon Aug 28 01:28:34 UTC 2023 - Greg Freemyer diff --git a/python-murmurhash.spec b/python-murmurhash.spec index e278341..912c239 100644 --- a/python-murmurhash.spec +++ b/python-murmurhash.spec @@ -42,6 +42,7 @@ Cython bindings for MurmurHash Summary: Development files for murmurhash Group: Development/Libraries/C and C++ Requires: %{name} = %{version} +BuildArch: noarch %description devel This subpackage contains header files for developing @@ -57,14 +58,10 @@ export CFLAGS="%{optflags}" %install %pyproject_install %{python_expand %fdupes %{buildroot}%{$python_sitearch} -mkdir -p %{buildroot}%{_includedir}/murmurhash -if [ ! -d "%{buildroot}%{_includedir}/murmurhash" ] -then - cp -f %{buildroot}%{$python_sitearch}/murmurhash/include/murmurhash/* \ - %{buildroot}/%{_includedir}/murmurhash/ -fi -rm %{buildroot}%{$python_sitearch}/murmurhash/include/murmurhash/* +rm -rv %{buildroot}%{$python_sitearch}/murmurhash/include/murmurhash/* } +mkdir -p %{buildroot}%{_includedir} +cp -r -p murmurhash/include/murmurhash %{buildroot}%{_includedir}/ %check @@ -75,6 +72,6 @@ rm %{buildroot}%{$python_sitearch}/murmurhash/include/murmurhash/* %{python_sitearch}/murmurhash-%{version}*-info %files -n python-murmurhash-devel -%{_includedir}/murmurhash/ +%{_includedir}/murmurhash %changelog