|
Alan Pevec |
369fee2 |
%global pypi_name unicodecsv
|
|
Alan Pevec |
369fee2 |
|
|
Alan Pevec |
10d4571 |
%if 0%{?fedora}
|
|
Alan Pevec |
10d4571 |
%global with_python3 1
|
|
Alan Pevec |
10d4571 |
%endif
|
|
Alan Pevec |
10d4571 |
|
|
Alan Pevec |
b8ff9af |
%{!?upstream_version: %global upstream_version %{version}%{?milestone}}
|
|
Alan Pevec |
b8ff9af |
|
|
Alan Pevec |
369fee2 |
Name: python-%{pypi_name}
|
|
Alan Pevec |
cf68702 |
Version: 0.14.1
|
|
![](https://seccdn.libravatar.org/avatar/66cca4ddfe914918eb13788577f8ad64d709ccf9f83b384b49228bb9a83a1533?s=16&d=retro) |
2b62aeb |
Release: 4%{?dist}
|
|
Alan Pevec |
a6530a0 |
Summary: Drop-in replacement for Python 2.7's csv module which supports unicode strings
|
|
Alan Pevec |
369fee2 |
License: BSD
|
|
Alan Pevec |
369fee2 |
URL: https://github.com/jdunck/python-unicodecsv
|
|
Alan Pevec |
369fee2 |
Source0: https://pypi.python.org/packages/source/u/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
|
|
Alan Pevec |
369fee2 |
BuildArch: noarch
|
|
Alan Pevec |
369fee2 |
|
|
Alan Pevec |
cf68702 |
BuildRequires: python2-devel
|
|
Alan Pevec |
cf68702 |
BuildRequires: python-setuptools
|
|
Alan Pevec |
369fee2 |
BuildRequires: python-unittest2 >= 0.5.1
|
|
Alan Pevec |
369fee2 |
|
|
Alan Pevec |
74db0ae |
Provides: python2-%{pypi_name} = %{version}-%{release}
|
|
Alan Pevec |
369fee2 |
|
|
Alan Pevec |
369fee2 |
%description
|
|
Alan Pevec |
a6530a0 |
The unicodecsv is a drop-in replacement for Python 2.7's
|
|
Alan Pevec |
369fee2 |
csv module which supports unicode strings without a hassle.
|
|
Alan Pevec |
a6530a0 |
It is NOT a drop-in replacement for Python 3's csv module,
|
|
Alan Pevec |
a6530a0 |
see https://github.com/jdunck/python-unicodecsv/issues/65
|
|
Alan Pevec |
369fee2 |
|
|
Alan Pevec |
cf68702 |
%if 0%{?with_python3}
|
|
Alan Pevec |
cf68702 |
%package -n python3-%{pypi_name}
|
|
Alan Pevec |
a6530a0 |
Summary: Drop-in replacement for Python 2.7's csv module which supports unicode strings
|
|
Alan Pevec |
cf68702 |
BuildArch: noarch
|
|
Alan Pevec |
cf68702 |
|
|
Alan Pevec |
cf68702 |
BuildRequires: python3-devel
|
|
Alan Pevec |
cf68702 |
BuildRequires: python3-setuptools
|
|
Alan Pevec |
cf68702 |
BuildRequires: python3-unittest2 >= 0.5.1
|
|
Alan Pevec |
cf68702 |
|
|
Alan Pevec |
cf68702 |
%description -n python3-%{pypi_name}
|
|
Alan Pevec |
a6530a0 |
The unicodecsv is a drop-in replacement for Python 2.7's
|
|
Alan Pevec |
cf68702 |
csv module which supports unicode strings without a hassle.
|
|
Alan Pevec |
a6530a0 |
|
|
Alan Pevec |
a6530a0 |
It is NOT a drop-in replacement for Python 3's csv module,
|
|
Alan Pevec |
a6530a0 |
see https://github.com/jdunck/python-unicodecsv/issues/65
|
|
Alan Pevec |
cf68702 |
%endif
|
|
Alan Pevec |
cf68702 |
|
|
Alan Pevec |
369fee2 |
|
|
Alan Pevec |
369fee2 |
%prep
|
|
Alan Pevec |
cf68702 |
%setup -qc -n %{pypi_name}-%{upstream_version}
|
|
Alan Pevec |
cf68702 |
mv %{pypi_name}-%{upstream_version} python2
|
|
Alan Pevec |
cf68702 |
|
|
Alan Pevec |
cf68702 |
pushd python2
|
|
Alan Pevec |
cf68702 |
#TODO ask upstream to add LICENSE file
|
|
Alan Pevec |
cf68702 |
cp -p README.rst ..
|
|
Alan Pevec |
cf68702 |
popd
|
|
Alan Pevec |
cf68702 |
|
|
Alan Pevec |
cf68702 |
%if 0%{?with_python3}
|
|
Alan Pevec |
cf68702 |
cp -a python2 python3
|
|
Alan Pevec |
cf68702 |
%endif
|
|
Alan Pevec |
369fee2 |
|
|
Alan Pevec |
369fee2 |
|
|
Alan Pevec |
369fee2 |
%build
|
|
Alan Pevec |
cf68702 |
pushd python2
|
|
Alan Pevec |
369fee2 |
%{__python2} setup.py build
|
|
Alan Pevec |
cf68702 |
popd
|
|
Alan Pevec |
cf68702 |
%if 0%{?with_python3}
|
|
Alan Pevec |
cf68702 |
pushd python3
|
|
Alan Pevec |
cf68702 |
%{__python3} setup.py build
|
|
Alan Pevec |
cf68702 |
popd
|
|
Alan Pevec |
cf68702 |
%endif
|
|
Alan Pevec |
369fee2 |
|
|
Alan Pevec |
369fee2 |
%install
|
|
Alan Pevec |
cf68702 |
%if 0%{?with_python3}
|
|
Alan Pevec |
cf68702 |
pushd python3
|
|
Alan Pevec |
cf68702 |
%{__python3} setup.py install --skip-build --root %{buildroot}
|
|
Alan Pevec |
cf68702 |
popd
|
|
Alan Pevec |
cf68702 |
%endif
|
|
Alan Pevec |
369fee2 |
|
|
Alan Pevec |
cf68702 |
pushd python2
|
|
Alan Pevec |
cf68702 |
%{__python2} setup.py install --skip-build --root %{buildroot}
|
|
Alan Pevec |
cf68702 |
popd
|
|
Alan Pevec |
369fee2 |
|
|
Alan Pevec |
369fee2 |
%check
|
|
Alan Pevec |
10d4571 |
pushd python2
|
|
Alan Pevec |
957ed3b |
unit2 discover
|
|
Alan Pevec |
10d4571 |
popd
|
|
Alan Pevec |
cf68702 |
%if 0%{?with_python3}
|
|
Alan Pevec |
10d4571 |
pushd python3
|
|
Alan Pevec |
cf68702 |
python3-unit2 discover
|
|
Alan Pevec |
10d4571 |
popd
|
|
Alan Pevec |
cf68702 |
%endif
|
|
Alan Pevec |
369fee2 |
|
|
Alan Pevec |
369fee2 |
|
|
Alan Pevec |
369fee2 |
%files
|
|
Alan Pevec |
369fee2 |
%doc README.rst
|
|
Alan Pevec |
369fee2 |
%{python2_sitelib}/%{pypi_name}
|
|
Alan Pevec |
369fee2 |
%{python2_sitelib}/%{pypi_name}-*.egg-info
|
|
Alan Pevec |
369fee2 |
|
|
Alan Pevec |
cf68702 |
%if 0%{?with_python3}
|
|
Alan Pevec |
cf68702 |
%files -n python3-%{pypi_name}
|
|
Alan Pevec |
cf68702 |
%doc README.rst
|
|
Alan Pevec |
cf68702 |
%{python3_sitelib}/%{pypi_name}
|
|
Alan Pevec |
cf68702 |
%{python3_sitelib}/%{pypi_name}-*.egg-info
|
|
Alan Pevec |
cf68702 |
%endif
|
|
Alan Pevec |
cf68702 |
|
|
Alan Pevec |
369fee2 |
%changelog
|
|
![](https://seccdn.libravatar.org/avatar/66cca4ddfe914918eb13788577f8ad64d709ccf9f83b384b49228bb9a83a1533?s=16&d=retro) |
2b62aeb |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.1-4
|
|
![](https://seccdn.libravatar.org/avatar/66cca4ddfe914918eb13788577f8ad64d709ccf9f83b384b49228bb9a83a1533?s=16&d=retro) |
2b62aeb |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
![](https://seccdn.libravatar.org/avatar/66cca4ddfe914918eb13788577f8ad64d709ccf9f83b384b49228bb9a83a1533?s=16&d=retro) |
2b62aeb |
|
|
![](https://seccdn.libravatar.org/avatar/4e8d68fe76de63043f2c89e9e363e4dc5af5775e488004cc7a8398c86381b072?s=16&d=retro) |
55da780 |
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.14.1-3
|
|
![](https://seccdn.libravatar.org/avatar/4e8d68fe76de63043f2c89e9e363e4dc5af5775e488004cc7a8398c86381b072?s=16&d=retro) |
55da780 |
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
|
![](https://seccdn.libravatar.org/avatar/4e8d68fe76de63043f2c89e9e363e4dc5af5775e488004cc7a8398c86381b072?s=16&d=retro) |
55da780 |
|
|
Alan Pevec |
a6530a0 |
* Wed Oct 07 2015 Alan Pevec <alan.pevec@redhat.com> - 0.14.1-2
|
|
Alan Pevec |
a6530a0 |
- clarify csv module API compatibility
|
|
Alan Pevec |
a6530a0 |
|
|
Alan Pevec |
cf68702 |
* Thu Sep 24 2015 Alan Pevec <alan.pevec@redhat.com> - 0.14.1-1
|
|
Alan Pevec |
cf68702 |
- Update to upstream 0.14.1
|
|
Alan Pevec |
cf68702 |
|
|
Alan Pevec |
cf68702 |
* Fri Jul 31 2015 Alan Pevec <apevec@redhat.com> - 0.13.0-1
|
|
Alan Pevec |
cf68702 |
- Initial package.
|