summaryrefslogtreecommitdiffstats
path: root/mycroft/python-xxhash
diff options
context:
space:
mode:
authorLyes Saadi <mail@lyes.eu>2020-09-02 17:14:52 +0100
committerLyes Saadi <mail@lyes.eu>2020-09-02 17:14:52 +0100
commitc1e9ae65824febedb527381e457a4318a5f0f97e (patch)
treee4021776cc783c8248e2e7dd6cc0d082d0bbfe5b /mycroft/python-xxhash
parent4930ca0b4b592eb0894e82ac6f42ff71cbed714c (diff)
downloadspec-c1e9ae65824febedb527381e457a4318a5f0f97e.tar.gz
spec-c1e9ae65824febedb527381e457a4318a5f0f97e.tar.xz
spec-c1e9ae65824febedb527381e457a4318a5f0f97e.zip
Restructuring the mycroft directory
Diffstat (limited to 'mycroft/python-xxhash')
-rwxr-xr-xmycroft/python-xxhash/generate-xxhash-tarball.sh15
-rw-r--r--mycroft/python-xxhash/python-xxhash-1.4.3-no-bundling.tar.gzbin0 -> 12854 bytes
-rw-r--r--mycroft/python-xxhash/python-xxhash.spec54
3 files changed, 69 insertions, 0 deletions
diff --git a/mycroft/python-xxhash/generate-xxhash-tarball.sh b/mycroft/python-xxhash/generate-xxhash-tarball.sh
new file mode 100755
index 0000000..755d5c4
--- /dev/null
+++ b/mycroft/python-xxhash/generate-xxhash-tarball.sh
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+VERSION=$1
+
+wget https://github.com/ifduyue/python-xxhash/archive/v$VERSION/python-xxhash-$VERSION.tar.gz
+
+tar -xzvf python-xxhash-$VERSION.tar.gz
+
+rm -rf python-xxhash-$VERSION/deps
+
+tar -czvf python-xxhash-$VERSION-no-bundling.tar.gz python-xxhash-$VERSION
+
+# Cleaning
+rm -rf python-xxhash-$VERSION/
+rm -f python-xxhash-$VERSION.tar.gz
diff --git a/mycroft/python-xxhash/python-xxhash-1.4.3-no-bundling.tar.gz b/mycroft/python-xxhash/python-xxhash-1.4.3-no-bundling.tar.gz
new file mode 100644
index 0000000..2ab91de
--- /dev/null
+++ b/mycroft/python-xxhash/python-xxhash-1.4.3-no-bundling.tar.gz
Binary files differ
diff --git a/mycroft/python-xxhash/python-xxhash.spec b/mycroft/python-xxhash/python-xxhash.spec
new file mode 100644
index 0000000..ec08468
--- /dev/null
+++ b/mycroft/python-xxhash/python-xxhash.spec
@@ -0,0 +1,54 @@
+%global pypi_name xxhash
+
+Name: python-%{pypi_name}
+Version: 1.4.3
+Release: 1%{?dist}
+Summary: Python Binding for xxHash
+
+License: BSD
+URL: https://github.com/ifduyue/python-xxhash
+# python-xxhash bundle xxhash sources. To generate a clean tarball:
+# ./generate-xxhash-tarball.sh %{version}
+Source0: python-xxhash-%{version}-no-bundling.tar.gz
+Source1: generate-xxhash-tarball.sh
+
+%global _description %{expand:
+xxhash is a Python binding for the xxHash library by Yann Collet.
+}
+
+%description %_description
+
+%package -n python3-%{pypi_name}
+Summary: %{summary}
+Requires: xxhash-libs
+BuildRequires: gcc
+BuildRequires: python3-devel
+BuildRequires: xxhash-devel
+
+%{?python_provide:%python_provide python3-%{pypi_name}}
+
+%description -n python3-%{pypi_name} %_description
+
+%prep
+%forgeautosetup
+
+%build
+export XXHASH_LINK_SO=1
+%py3_build
+
+%install
+%py3_install
+
+%check
+export XXHASH_LINK_SO=1
+%{python3} setup.py test
+
+%files -n python3-%{pypi_name}
+%doc README.rst
+%license LICENSE
+%{python3_sitearch}/%{pypi_name}/
+%{python3_sitearch}/%{pypi_name}-*.egg-info/
+
+%changelog
+* Sun Jun 7 2020 Lyes Saadi <fedora@lyes.eu>
+- Initial Package