commit 26ba0acf950e3205414754eb8cc3e00fed3adaa22916a422bece11e34ff3163f Author: Matej Cepl Date: Sun Aug 13 19:40:59 2023 +0000 Accepting request 1103636 from home:gregfreemyer:Tools-for-forensic-boot-cd eliminated the macro %global pythons %{primary_python} dependency of python-preshed, which is a dependency of python-libratom. I am planning to submit python-libratom soon. OBS-URL: https://build.opensuse.org/request/show/1103636 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-murmurhash?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/murmurhash-1.0.9.tar.gz b/murmurhash-1.0.9.tar.gz new file mode 100644 index 0000000..73e9c0f --- /dev/null +++ b/murmurhash-1.0.9.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fe7a38cb0d3d87c14ec9dddc4932ffe2dbc77d75469ab80fd5014689b0e07b58 +size 12737 diff --git a/python-murmurhash.changes b/python-murmurhash.changes new file mode 100644 index 0000000..b5cb0c0 --- /dev/null +++ b/python-murmurhash.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Mon May 22 22:14:17 UTC 2023 - Greg Freemyer + +- initial version v1.0.9 diff --git a/python-murmurhash.spec b/python-murmurhash.spec new file mode 100644 index 0000000..329b6f9 --- /dev/null +++ b/python-murmurhash.spec @@ -0,0 +1,77 @@ +# +# spec file for package python-murmurhash +# +# Copyright (c) 2023 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + +%{?sle15_python_module_pythons} + +Name: python-murmurhash +Version: 1.0.9 +Release: 0 +Summary: Cython bindings for MurmurHash +License: MIT +URL: https://github.com/explosion/murmurhash +Source: https://files.pythonhosted.org/packages/source/m/murmurhash/murmurhash-%{version}.tar.gz +BuildRequires: python-rpm-macros +BuildRequires: %{python_module cython >= 0.25} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: %{python_module pytest} +BuildRequires: gcc-c++ +BuildRequires: fdupes +%python_subpackages + +%description +Cython bindings for MurmurHash + +%package devel +Summary: Development files for murmurhash +Group: Development/Libraries/C and C++ +Requires: %{name} = %{version} + +%description devel +This subpackage contains header files for developing +applications that want to make use of murmurhash. + +%prep +%autosetup -p1 -n murmurhash-%{version} + +%build +export CFLAGS="%{optflags}" +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{python_sitearch} +mkdir -p %{buildroot}/%{_includedir}/murmurhash +if [ ! -f %{buildroot}/%{_includedir}/murmurhash/] +then + cp -f %{buildroot}//usr/lib64/*/site-packages/murmurhash/include/murmurhash/* %{buildroot}/%{_includedir}/murmurhash/ +fi +rm %{buildroot}//usr/lib64/*/site-packages/murmurhash/include/murmurhash/* + +%check + +%files %{python_files} +%doc README.md +%license LICENSE +%{python_sitearch}/murmurhash +%{python_sitearch}/murmurhash-%{version}.dist-info + +%files -n python-murmurhash-devel +%{_includedir}/murmurhash/ + +%changelog