- Use getprerredencoding instead of nl_langinfo

- Handle files with a drive component
- Switch to the new Fedora packaging guidelines, which renames python-requests-file to python2-requests-file
This commit is contained in:
David Shea 2015-09-14 10:46:53 -04:00
parent 816f466640
commit b77872bba1
3 changed files with 30 additions and 38 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
/requests-file-1.2.tar.gz /requests-file-1.2.tar.gz
/requests-file-1.3.1.tar.gz /requests-file-1.3.1.tar.gz
/requests-file-1.4.tar.gz

View File

@ -1,14 +1,26 @@
Name: python-requests-file %global srcname requests-file
Version: 1.3.1
Release: 2%{?dist} Name: python-%{srcname}
Version: 1.4
Release: 1%{?dist}
Summary: Transport adapter for using file:// URLs with python-requests Summary: Transport adapter for using file:// URLs with python-requests
License: ASL 2.0 License: ASL 2.0
URL: https://github.com/dashea/requests-file URL: https://github.com/dashea/requests-file
Source0: https://pypi.python.org/packages/source/r/requests-file/requests-file-%{version}.tar.gz Source0: https://pypi.python.org/packages/source/r/%{srcname}/%{srcname}-%{version}.tar.gz
BuildArch: noarch BuildArch: noarch
%description
Requests-File is a transport adapter for use with the Requests Python
library to allow local file system access via file:// URLs.
This is the Python 2 version of the requests_file module
%package -n python2-%{srcname}
Summary: Transport adapter for using file:// URLs with python-requests
%{?python_provide:%python_provide python2-%{srcname}}
BuildRequires: python2-devel BuildRequires: python2-devel
BuildRequires: python-setuptools BuildRequires: python-setuptools
BuildRequires: python-requests BuildRequires: python-requests
@ -17,7 +29,7 @@ BuildRequires: python-six
Requires: python-requests Requires: python-requests
Requires: python-six Requires: python-six
%description %description -n python2-%{srcname}
Requests-File is a transport adapter for use with the Requests Python Requests-File is a transport adapter for use with the Requests Python
library to allow local file system access via file:// URLs. library to allow local file system access via file:// URLs.
@ -25,6 +37,7 @@ This is the Python 2 version of the requests_file module
%package -n python3-requests-file %package -n python3-requests-file
Summary: Transport adapter for using file:// URLs with python3-requests Summary: Transport adapter for using file:// URLs with python3-requests
%{?python_provide:%python_provide python3-%{srcname}}
BuildRequires: python3-devel BuildRequires: python3-devel
BuildRequires: python3-setuptools BuildRequires: python3-setuptools
@ -41,46 +54,22 @@ library to allow local file system access via file:// URLs.
This is the Python 3 version of the requests_file module This is the Python 3 version of the requests_file module
%prep %prep
%setup -qc %autosetup -n %{srcname}-%{version}
mv requests-file-%{version} python2
pushd python2
rm -rf requests_file.egg-info rm -rf requests_file.egg-info
# Copy common doc files to top dir
cp -pr LICENSE README.rst ../
popd
cp -a python2 python3
%build %build
pushd python2 %py2_build
%{__python2} setup.py build %py3_build
popd
pushd python3
%{__python3} setup.py build
popd
%install %install
pushd python2 %py2_install
%{__python2} setup.py install --skip-build --root %{buildroot} %py3_install
popd
pushd python3
%{__python3} setup.py install --skip-build --root %{buildroot}
popd
%check %check
pushd python2
%{__python2} setup.py test %{__python2} setup.py test
popd
pushd python3
%{__python3} setup.py test %{__python3} setup.py test
popd
%files %files -n python2-%{srcname}
%license LICENSE %license LICENSE
%doc README.rst %doc README.rst
%{python2_sitelib}/requests_file.py* %{python2_sitelib}/requests_file.py*
@ -94,8 +83,10 @@ popd
%{python3_sitelib}/requests_file*.egg-info* %{python3_sitelib}/requests_file*.egg-info*
%changelog %changelog
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.1-2 * Mon Sep 14 2015 David Shea <dshea@redhat.com> - 1.4-1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild - Use getprerredencoding instead of nl_langinfo
- Handle files with a drive component
- Switch to the new Fedora packaging guidelines, which renames python-requests-file to python2-requests-file
* Mon May 18 2015 David Shea <dshea@redhat.com> - 1.3.1-1 * Mon May 18 2015 David Shea <dshea@redhat.com> - 1.3.1-1
- Add python version classifiers to the package info - Add python version classifiers to the package info

View File

@ -1 +1 @@
35c06e4bbd64556adc102680d1ffb007 requests-file-1.3.1.tar.gz fe475905d26986ee5fe77d9bcae3efcb requests-file-1.4.tar.gz