summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--python-unicodecsv.spec40
1 files changed, 40 insertions, 0 deletions
diff --git a/python-unicodecsv.spec b/python-unicodecsv.spec
new file mode 100644
index 0000000..29e0edb
--- /dev/null
+++ b/python-unicodecsv.spec
@@ -0,0 +1,40 @@
+%global srcname unicodecsv
+
+Name: python3-unicodecsv
+Version: 0.14.1
+Release: 1%{?dist}
+Summary: Python2's stdlib csv module is nice, but it doesn't support unicode. This module is a drop-in replacement which *does*.
+
+License: BSD License
+URL: https://github.com/jdunck/python-unicodecsv
+Source0: https://pypi.io/packages/source/%(c=%{srcname}; echo ${c:0:1})/%{srcname}/%{srcname}-%{version}.tar.gz
+
+BuildArch: noarch
+
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+
+
+%description
+Python2's stdlib csv module is nice, but it doesn't support unicode. This module is a drop-in replacement which *does*.
+
+%prep
+%autosetup -n unicodecsv-%{version} -p1
+
+%build
+rm -Rf requirements.txt test-requirements.txt *.egg-info
+PBR_VERSION=%{version} %{__python3} setup.py build
+
+%install
+PBR_VERSION=%{version} %{__python3} setup.py install -O1 --skip-build --root %{buildroot}
+
+%check
+%{__python3} -c "import unicodecsv"
+
+%files
+%defattr(644,root,root,755)
+%{python3_sitelib}/*
+
+%changelog
+* Fri Aug 25 2017 Tristan Cacqueray <tdecacqu@redhat.com> - 0.14.1-1
+- Initial packaging