From d436fbdec9af5cba3ce4f9f010ba765d242ead88 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 16:49:46 +0100 Subject: [PATCH] package created using the webbuild interface [release 4.0.2-1mamba;Mon Apr 12 2021] --- README.md | 2 ++ python-ujson.spec | 52 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 python-ujson.spec diff --git a/README.md b/README.md index ebf570d..c9fd756 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # python-ujson +Ultra fast JSON encoder and decoder for Python. + diff --git a/python-ujson.spec b/python-ujson.spec new file mode 100644 index 0000000..e76130a --- /dev/null +++ b/python-ujson.spec @@ -0,0 +1,52 @@ +Name: python-ujson +Version: 4.0.2 +Release: 1mamba +Summary: Ultra fast JSON encoder and decoder for Python +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/ultrajson/ultrajson +Source: https://pypi.debian.net/ujson/ujson-%{version}.tar.gz +License: BSD +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libgcc +BuildRequires: libpython3-devel +BuildRequires: libstdc++6-devel +## AUTOBUILDREQ-END +BuildRequires: libpython-devel +Requires: python >= %python_version + +%description +%{summary}. + +%if 0%{?with_pyver} +%pyver_package +%endif + +%prep +%setup -q -n ujson-%{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 "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist + +%files %{?pyappend} -f %{name}.filelist +%defattr(-,root,root) +%dir %{python_sitearch}/ujson-%{version}-py*.egg-info +%{python_sitearch}/ujson-%{version}-py*.egg-info/* + +%changelog +* Mon Apr 12 2021 Silvan Calarco 4.0.2-1mamba +- package created using the webbuild interface