commit 61c2eb469a4462db1f8997430332f6da2de7ae42 Author: zhuchunyi Date: Wed Nov 6 19:50:16 2019 +0800 update code diff --git a/python-requests-file.spec b/python-requests-file.spec new file mode 100644 index 0000000..fa1b477 --- /dev/null +++ b/python-requests-file.spec @@ -0,0 +1,67 @@ +%global _name requests-file + +Name: python-%{_name} +Version: 1.4.3 +Release: 9 +Summary: A transport adapter for use with the Requests Python library +License: ASL 2.0 +URL: https://github.com/dashea/requests-file +Source0: https://github.com/dashea/%{_name}/archive/%{version}.tar.gz#/%{_name}-%{version}.tar.gz + +BuildArch: noarch + +%description +Requests-File is a transport adapter for use with the Requests Python library +to allow local filesystem access via file:// URLs. + +%package -n python2-%{_name} +Summary: python2 version of %{summary} +BuildRequires: python2-devel python2-setuptools +BuildRequires: python2-requests python2-six +Requires: python2-requests python2-six +%{?python_provide:%python_provide python2-%{_name}} + +%description -n python2-%{_name} +python2 binds of python-%{_name}. + +%package -n python3-%{_name} +Summary: python3 version of %{summary} +BuildRequires: python3-devel python3-setuptools +BuildRequires: python3-requests python3-six +Requires: python3-requests python3-six +%{?python_provide:%python_provide python3-%{_name}} + +%description -n python3-%{_name} +python3 binds of python-%{_name}. + +%prep +%autosetup -n %{_name}-%{version} -p1 + +%build +%py2_build +%py3_build + +%install +%py2_install +%py3_install + +%check +%{__python2} setup.py test +%{__python3} setup.py test + +%files -n python2-%{_name} +%doc README.rst +%license LICENSE +%{python2_sitelib}/*.py* +%{python2_sitelib}/*info* + +%files -n python3-%{_name} +%doc README.rst +%license LICENSE +%{python3_sitelib}/*.py* +%{python3_sitelib}/__pycache__/* +%{python3_sitelib}/*info* + +%changelog +* Fri Oct 18 2019 openEuler Buildteam - 1.4.3-9 +- Package init diff --git a/requests-file-1.4.3.tar.gz b/requests-file-1.4.3.tar.gz new file mode 100644 index 0000000..698a305 Binary files /dev/null and b/requests-file-1.4.3.tar.gz differ