From 1febdd193cd353293ed5826253180346a80f4d25 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 16:54:55 +0100 Subject: [PATCH] package created using the webbuild interface [release 2.0.0-1mamba;Sun Jan 31 2021] --- README.md | 2 ++ python-xxhash.spec | 49 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 python-xxhash.spec diff --git a/README.md b/README.md index ad58e04..d7d6ae6 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # python-xxhash +A Python binding for the xxHash library. + diff --git a/python-xxhash.spec b/python-xxhash.spec new file mode 100644 index 0000000..028f5a8 --- /dev/null +++ b/python-xxhash.spec @@ -0,0 +1,49 @@ +Name: python-xxhash +Version: 2.0.0 +Release: 1mamba +Summary: A Python binding for the xxHash library +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://pypi.org/project/xxhash/ +Source: https://pypi.debian.net/xxhash/xxhash-%{version}.tar.gz +License: BSD +## AUTOBUILDREQ-BEGIN +## note: run 'autospec -u -a6 python-xxhash' to get the list of build requirements. +## AUTOBUILDREQ-END +BuildRequires: libpython-devel +Requires: python >= %python_version +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +%{summary}. + +%if 0%{?with_pyver} +%pyver_package +%endif + +%prep +%setup -q -n xxhash-%{version} + +%build +CFLAGS="%{optflags}" %{__python} setup.py build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%{__python} setup.py install \ + -O1 --skip-build \ + --root="%{buildroot}" \ + --install-headers=%{python_inc} \ + --install-lib=%{python_sitearch} \ + --record=%{name}.filelist + +sed -i "s,.*/man/.*,&.gz," %{name}.filelist + +%files %{?pyappend} -f %{name}.filelist +%defattr(-,root,root) +%doc LICENSE + +%changelog +* Sun Jan 31 2021 Silvan Calarco 2.0.0-1mamba +- package created using the webbuild interface