From c343efbeec725fe64be3bf1e201644b2a1338d07 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 16:50:08 +0100 Subject: [PATCH] package created using the webbuild interface [release 1.18.1-1mamba;Fri Oct 28 2016] --- README.md | 2 ++ python-urllib3.spec | 47 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 python-urllib3.spec diff --git a/README.md b/README.md index 435bf1b..ac47209 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # python-urllib3 +HTTP library with thread-safe connection pooling, file post, and more. + diff --git a/python-urllib3.spec b/python-urllib3.spec new file mode 100644 index 0000000..b6352c8 --- /dev/null +++ b/python-urllib3.spec @@ -0,0 +1,47 @@ +Name: python-urllib3 +Version: 1.18.1 +Release: 1mamba +Summary: HTTP library with thread-safe connection pooling, file post, and more +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://pypi.python.org/pypi/urllib3 +Source: http://pypi.debian.net/urllib3/urllib3-%{version}.tar.gz +License: MIT +## AUTOBUILDREQ-BEGIN +BuildRequires: libpython-devel +## AUTOBUILDREQ-END +Requires: python >= %python_version +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +%{summary}. + +%if 0%{?with_pyver} +%pyver_package +%endif + +%prep +%setup -q -n urllib3-%{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) + +%changelog +* Fri Oct 28 2016 Silvan Calarco 1.18.1-1mamba +- package created using the webbuild interface