From a95a849ffd199c584f60da2df8c66b512f18b9d0 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 16:49:25 +0100 Subject: [PATCH] package created using the webbuild interface [release 2021.5-1mamba;Tue Jan 25 2022] --- README.md | 2 ++ python-tzdata.spec | 47 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 python-tzdata.spec diff --git a/README.md b/README.md index 9b74345..fbff699 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # python-tzdata +Provider of IANA time zone data. + diff --git a/python-tzdata.spec b/python-tzdata.spec new file mode 100644 index 0000000..8f33dba --- /dev/null +++ b/python-tzdata.spec @@ -0,0 +1,47 @@ +%define pkgname %(echo %name | cut -d- -f2-) +Name: python-tzdata +Version: 2021.5 +Release: 1mamba +Summary: Provider of IANA time zone data +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/python/tzdata +Source: https://pypi.debian.net/tzdata/tzdata-%{version}.tar.gz +License: Apache License 2.0 +## AUTOBUILDREQ-BEGIN +BuildRequires: libpython3-devel +## AUTOBUILDREQ-END +BuildRequires: python-build-py3 +BuildRequires: python-python_install-py3 + +%description +%{summary}. + +%if 0%{?with_pyver} +%pyver_package +%endif + +%prep +%setup -q -n tzdata-%{version} + +%build +%{__python} -m build --wheel --skip-dependency-check --no-isolation + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%{__python} -m venv --system-site-packages test-env +%{__python} -m install --optimize=1 --destdir="%{buildroot}" dist/*.whl + +%files %{?pyappend} +%defattr(-,root,root) +%dir %{python_sitelib}/%{pkgname} +%{python_sitelib}/%{pkgname}/* +%dir %{python_sitelib}/%{pkgname}-%{version}.dist-info +%{python_sitelib}/%{pkgname}-%{version}.dist-info/* +%doc LICENSE + +%changelog +* Tue Jan 25 2022 Silvan Calarco 2021.5-1mamba +- package created using the webbuild interface