forked from pool/python-murmurhash
- 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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user