15
0

- Fix installation of -devel package.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-murmurhash?expand=0&rev=5
This commit is contained in:
2023-08-30 12:31:11 +00:00
committed by Git OBS Bridge
parent a207617156
commit ceec7aa7a8
2 changed files with 10 additions and 8 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Aug 30 12:31:05 UTC 2023 - Matej Cepl <mcepl@suse.com>
- Fix installation of -devel package.
-------------------------------------------------------------------
Mon Aug 28 01:28:34 UTC 2023 - Greg Freemyer <Greg.Freemyer@gmail.com>

View File

@@ -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