[python-listquote] Import python-listquote from review (#917329)

konradm konradm at fedoraproject.org
Mon Apr 29 14:45:09 UTC 2013


commit 333f330769688fc67153e84e92270011cb044674
Author: Conrad Meyer <cse.cem at gmail.com>
Date:   Mon Apr 29 07:44:56 2013 -0700

    Import python-listquote from review (#917329)

 .gitignore            |    1 +
 python-listquote.spec |   73 +++++++++++++++++++++++++++++++++++++++++++++++++
 sources               |    1 +
 3 files changed, 75 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..534a85e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/python-listquote-1.4.0.tar.gz
diff --git a/python-listquote.spec b/python-listquote.spec
new file mode 100644
index 0000000..22bc719
--- /dev/null
+++ b/python-listquote.spec
@@ -0,0 +1,73 @@
+Name:           python-listquote
+Version:        1.4.0
+Release:        4%{?dist}
+Summary:        Functions for Lists, Quotes and CSVs
+License:        BSD
+URL:            http://www.voidspace.org.uk/python/listquote.html
+# Listquote has a stupid download redirector, you can get listquote.py from:
+# http://www.voidspace.org.uk/cgi-bin/voidspace/downman.py?file=listquote.py
+#
+# Then use:
+#   mkdir python-listquote-1.4.0
+#   cp listquote.py python-listquote-1.4.0
+#   tar -czf python-listquote-1.4.0.tar.gz python-listquote-1.4.0
+#
+# to recreate the tarball.
+Source0:        python-listquote-1.4.0.tar.gz
+BuildArch:      noarch
+BuildRequires:  python2-devel
+
+
+%description
+This module provides functions for turning lists into strings - and back again.
+It properly handles quoting and unquoting of elements and can even parse
+recursive lists.
+
+Because a CSV (comma separated value) file is basically a list - the module
+includes functions for easily reading and writing CSVs.
+
+
+%prep
+%setup -q
+cat >setup.py <<EOS
+#!/usr/bin/env python
+
+from distutils.core import setup
+
+setup(name='listquote',
+      version='1.4.0',
+      description='%{summary}',
+      author='Michael Foord',
+      author_email='fuzzyman at voidspace.org.uk',
+      url='http://www.voidspace.org.uk/python/listquote.html',
+      py_modules=['listquote'],
+     )
+EOS
+
+
+%build
+python setup.py build
+
+
+%install
+python setup.py install -O1 --skip-build --root %{buildroot}
+
+
+%files
+%{python_sitelib}/listquote*
+
+
+%changelog
+* Sat Apr 27 2013 Conrad Meyer <cemeyer at uw.edu> - 1.4.0-4
+- Create tarball for single source file (#917329)
+
+* Fri Apr 26 2013 Conrad Meyer <cemeyer at uw.edu> - 1.4.0-3
+- Nuke python_sitelib, we get that for free now
+- Don't nuke buildroot in %%install
+- Be more specific about 'listquote' package in %%files
+
+* Thu Apr 25 2013 Conrad Meyer <cemeyer at uw.edu> - 1.4.0-2
+- BR python2-devel
+
+* Sat Mar 2 2013 Conrad Meyer <cemeyer at uw.edu> - 1.4.0-1
+- Initial package
diff --git a/sources b/sources
index e69de29..0aca087 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+cb9e5db03a54fd189168f95b9e53dfbd  python-listquote-1.4.0.tar.gz


More information about the scm-commits mailing list