Alan Pevec 369fee2
%global pypi_name unicodecsv
Alan Pevec 369fee2
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
b2d31c9
Release:        25%{?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
ffd9fdd
Patch0001:      0001-Remove-unittest2-dependency-for-Python-3.x.patch
Alan Pevec 369fee2
BuildArch:      noarch
Alan Pevec 369fee2
2e36053
%global _description\
2e36053
The unicodecsv is a drop-in replacement for Python 2.7's\
2e36053
csv module which supports unicode strings without a hassle.\
2e36053
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
2e36053
%description %_description
2e36053
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
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
Alan Pevec 369fee2
Alan Pevec 369fee2
%prep
ffd9fdd
%autosetup -p1 -n %{pypi_name}-%{upstream_version}
Alan Pevec 369fee2
Alan Pevec 369fee2
%build
15243e9
%py3_build
Alan Pevec 369fee2
Alan Pevec 369fee2
%install
15243e9
%py3_install
Alan Pevec 369fee2
Alan Pevec 369fee2
%check
ffd9fdd
python3 -m unittest
Alan Pevec 369fee2
Alan Pevec cf68702
%files -n python3-%{pypi_name}
Alan Pevec cf68702
%doc README.rst
15243e9
#TODO ask upstream to add LICENSE file
15243e9
%{python3_sitelib}/%{pypi_name}/
15243e9
%{python3_sitelib}/%{pypi_name}-*.egg-info/
Alan Pevec cf68702
Alan Pevec 369fee2
%changelog
b2d31c9
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.1-25
b2d31c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
b2d31c9
75cd396
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.14.1-24
75cd396
- Rebuilt for Python 3.10
75cd396
2e28c6b
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.1-23
2e28c6b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
2e28c6b
84b5347
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.1-22
84b5347
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
84b5347
f913b4e
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.14.1-21
f913b4e
- Rebuilt for Python 3.9
f913b4e
92e6b56
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.1-20
92e6b56
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
92e6b56
ffd9fdd
* Thu Oct 03 2019 Javier Peña <jpena@redhat.com> - 0.14.1-19
ffd9fdd
- Remove unittest2 dependency from python3, it is not needed
ffd9fdd
c9ad31c
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.14.1-18
c9ad31c
- Rebuilt for Python 3.8.0rc1 (#1748018)
c9ad31c
7b98b36
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.14.1-17
7b98b36
- Rebuilt for Python 3.8
7b98b36
7c3d7e5
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.1-16
7c3d7e5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
7c3d7e5
15243e9
* Mon Feb 25 2019 Miro Hrončok <mhroncok@redhat.com> - 0.14.1-15
15243e9
- Subpackage python2-unicodecsv has been removed
15243e9
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
15243e9
d861964
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.1-14
d861964
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
d861964
58a1c9e
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.1-13
58a1c9e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
58a1c9e
795430a
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.14.1-12
795430a
- Rebuilt for Python 3.7
795430a
1053e7f
* Fri Feb 09 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.14.1-11
1053e7f
- Update Python 2 dependency declarations to new packaging standards
1053e7f
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
1053e7f
43cd422
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.1-10
43cd422
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
43cd422
2e36053
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.14.1-9
2e36053
- Python 2 binary package renamed to python2-unicodecsv
2e36053
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
2e36053
5275352
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.1-8
5275352
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
5275352
0b201c8
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.1-7
0b201c8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
0b201c8
870945a
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.14.1-6
870945a
- Rebuild for Python 3.6
870945a
58fa580
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.14.1-5
58fa580
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
58fa580
2b62aeb
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.1-4
2b62aeb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
2b62aeb
55da780
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.14.1-3
55da780
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
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.