2019-11-06 19:50:16 +08:00
|
|
|
%global _name requests-file
|
|
|
|
|
|
|
|
|
|
Name: python-%{_name}
|
2020-07-28 20:05:19 +08:00
|
|
|
Version: 1.5.1
|
2020-09-08 16:39:24 +08:00
|
|
|
Release: 2
|
2019-11-06 19:50:16 +08:00
|
|
|
Summary: A transport adapter for use with the Requests Python library
|
|
|
|
|
License: ASL 2.0
|
|
|
|
|
URL: https://github.com/dashea/requests-file
|
2020-09-08 16:39:24 +08:00
|
|
|
Source0: https://github.com/dashea/%{_name}/archive/%{version}.tar.gz
|
2019-11-06 19:50:16 +08:00
|
|
|
|
|
|
|
|
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}
|
2020-07-28 20:05:19 +08:00
|
|
|
BuildRequires: python2-devel python2-setuptools python2-pytest
|
2019-11-06 19:50:16 +08:00
|
|
|
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}
|
2020-07-28 20:05:19 +08:00
|
|
|
BuildRequires: python3-devel python3-setuptools python3-pytest
|
2019-11-06 19:50:16 +08:00
|
|
|
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
|
2020-07-28 20:05:19 +08:00
|
|
|
export PYTHONPATH=%{buildroot}%{python3_sitelib}
|
|
|
|
|
%{__python2} tests/test_requests_file.py
|
|
|
|
|
%{__python3} tests/test_requests_file.py
|
2019-11-06 19:50:16 +08:00
|
|
|
|
|
|
|
|
%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
|
2020-09-08 16:39:24 +08:00
|
|
|
* Tue Sep 8 2020 shixuantong <shixuantong@huawei.com> - 1.5.1-2
|
|
|
|
|
- update Source0
|
|
|
|
|
|
2020-07-28 20:05:19 +08:00
|
|
|
* Thu Jul 28 2020 tianwei <tianwei12@huawei.com> - 1.5.1-1
|
|
|
|
|
- Package update to 1.5.1
|
|
|
|
|
|
2019-11-06 19:50:16 +08:00
|
|
|
* Fri Oct 18 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.4.3-9
|
|
|
|
|
- Package init
|