[python-requests-toolbelt] Initial import (#1188178)
Parag Nemade
pnemade at fedoraproject.org
Sat Feb 14 02:37:35 UTC 2015
commit 6910b280e40fb2ace423943612fe8636ec573460
Author: Parag Nemade <pnemade at redhat.com>
Date: Sat Feb 14 08:07:20 2015 +0530
Initial import (#1188178)
.gitignore | 1 +
python-requests-toolbelt.spec | 87 +++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 89 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..d256efe 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/requests-toolbelt-0.3.1.tar.gz
diff --git a/python-requests-toolbelt.spec b/python-requests-toolbelt.spec
new file mode 100644
index 0000000..7577e24
--- /dev/null
+++ b/python-requests-toolbelt.spec
@@ -0,0 +1,87 @@
+%global with_python3 1
+%global module_name requests-toolbelt
+
+Name: python-%{module_name}
+Version: 0.3.1
+Release: 2%{?dist}
+Summary: A utility belt for advanced users of python-requests
+
+License: ASL 2.0
+URL: https://toolbelt.readthedocs.org/
+Source0: https://pypi.python.org/packages/source/r/%{module_name}/%{module_name}-%{version}.tar.gz
+
+BuildArch: noarch
+BuildRequires: python2-devel
+BuildRequires: python-setuptools
+
+%description
+This is just a collection of utilities for python-requests, but don’t really
+belong in requests proper.
+
+%if 0%{?with_python3}
+%package -n python3-%{module_name}
+Summary: A utility belt for advanced users of python-requests
+License: ASL 2.0
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+%endif
+
+%if 0%{?with_python3}
+%description -n python3-%{module_name}
+This is just a collection of utilities for python-requests, but don’t really
+belong in requests proper.
+
+%endif
+
+%prep
+%setup -q -n %{module_name}-%{version}
+rm -rf *.egg-info
+
+%if 0%{?with_python3}
+rm -rf %{py3dir}
+cp -a . %{py3dir}
+find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
+%endif
+
+find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python2}|'
+
+%build
+%{__python2} setup.py build
+
+%if 0%{?with_python3}
+pushd %{py3dir}
+%{__python3} setup.py build
+popd
+%endif
+
+%install
+%if 0%{?with_python3}
+pushd %{py3dir}
+%{__python3} setup.py install --skip-build --root=%{buildroot}
+popd
+%endif
+
+%{__python2} setup.py install --skip-build --root=%{buildroot}
+
+%files -n python-%{module_name}
+%doc PKG-INFO
+%license LICENSE
+%{python2_sitelib}/requests_toolbelt
+%{python2_sitelib}/requests_toolbelt-%{version}-py2.*.egg-info
+
+%if 0%{?with_python3}
+%files -n python3-%{module_name}
+%doc PKG-INFO
+%license LICENSE
+%{python3_sitelib}/requests_toolbelt
+%{python3_sitelib}/requests_toolbelt-%{version}-py3.*.egg-info
+%endif
+
+
+%changelog
+* Fri Feb 13 2015 Parag Nemade <pnemade AT redhat DOT com> - 0.3.1-2
+- Add missing LICENSE file
+
+* Mon Feb 02 2015 Parag Nemade <pnemade AT redhat DOT com> - 0.3.1-1
+- Initial packaging
+
diff --git a/sources b/sources
index e69de29..ffed99a 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+e563377e46cd0be8c7b3ac144a65844c requests-toolbelt-0.3.1.tar.gz
More information about the scm-commits
mailing list