From 5f0bad9a439f079f14184310133d9c481aae1fee Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sun, 28 Jan 2024 11:07:16 +0100 Subject: [PATCH] package created using the webbuild interface [release 1.0.8-1mamba;Thu Oct 19 2023] --- README.md | 2 ++ python-mongo_tooling_metrics.spec | 57 +++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 python-mongo_tooling_metrics.spec diff --git a/README.md b/README.md index 79c4c9c..86b5cc8 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # python-mongo_tooling_metrics +A slim library which leverages Pydantic to reliably collect type enforced metrics and store them to MongoDB. + diff --git a/python-mongo_tooling_metrics.spec b/python-mongo_tooling_metrics.spec new file mode 100644 index 0000000..baf32bc --- /dev/null +++ b/python-mongo_tooling_metrics.spec @@ -0,0 +1,57 @@ +%define pkgname %(echo %name | cut -d- -f2- | tr - _) +Name: python-mongo_tooling_metrics +Version: 1.0.8 +Release: 1mamba +Summary: A slim library which leverages Pydantic to reliably collect type enforced metrics and store them to MongoDB +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://www.mongodb.com +Source: http://pypi.debian.net/mongo-tooling-metrics/mongo_tooling_metrics-%{version}.tar.gz +License: Affero GNU Public License, Apache License 2.0 +## AUTOBUILDREQ-BEGIN +BuildRequires: libpython311-devel +BuildRequires: python3.11dist(distro) +BuildRequires: python3.11dist(gitpython) +BuildRequires: python3.11dist(pydantic) +BuildRequires: python3.11dist(pymongo) +BuildRequires: python3.11dist(setuptools) +## AUTOBUILDREQ-END + +%description +%{summary}. + +%if 0%{?with_pyver} +%pyver_package +%endif + +%prep +%setup -q -n mongo_tooling_metrics-%{version} +sed -i "s|pydantic =.*|pydantic = \">=1.8.2\"|" pyproject.toml +sed -i "s|setuptools =.*|setuptools = \">=58.1.0\"|" pyproject.toml + +%build +CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%{__python} -m installer --destdir=%{buildroot} dist/*.whl + +#%if "%{?with_pyver}" != "3" +## Rename any conflicting file outside of python site packages tree +#for f in %{_bindir}/pdm; do +# mv %{buildroot}${f}{,-%{?pyappend}} +#done +#%endif + +%files %{?pyappend} +%defattr(-,root,root) +%dir %{python_sitelib}/%{pkgname}-%{version}.dist-info +%{python_sitelib}/%{pkgname}-%{version}.dist-info/* +%dir %{python_sitelib}/%{pkgname} +%{python_sitelib}/%{pkgname}/* + +%changelog +* Thu Oct 19 2023 Silvan Calarco 1.0.8-1mamba +- package created using the webbuild interface