[python-unidecode] initial spec
Rahul Sundaram
sundaram at fedoraproject.org
Sat Jul 16 07:05:30 UTC 2011
commit 1d534eed878496ce5b7a805a8461d94fce52e632
Author: Rahul Sundaram <sundaram at fedoraproject.org>
Date: Sat Jul 16 12:31:30 2011 +0530
initial spec
python-unidecode.spec | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
2 files changed, 50 insertions(+), 0 deletions(-)
---
diff --git a/python-unidecode.spec b/python-unidecode.spec
new file mode 100644
index 0000000..90e5b21
--- /dev/null
+++ b/python-unidecode.spec
@@ -0,0 +1,49 @@
+%global srcname Unidecode
+
+Name: python-unidecode
+Version: 0.04.7
+Release: 3%{?dist}
+Summary: US-ASCII transliterations of Unicode text
+
+Group: Development/Libraries
+License: GPL+ or Artistic
+URL: http://pypi.python.org/pypi/%{srcname}/%{version}
+Source0: http://pypi.python.org/packages/source/U/%{srcname}/%{srcname}-%{version}.tar.gz
+
+BuildRequires: python-devel
+BuildRequires: python-setuptools
+
+%description
+This is a python port of Text::Unidecode Perl module. It provides a function,
+'unidecode(...)' that takes Unicode data and tries to represent it in ASCII
+characters.
+
+For ex. unidecode(u'\U0001d5c4\U0001d5c6/\U0001d5c1') returns 'km/h'.
+
+%prep
+%setup -q -n %{srcname}-%{version}
+
+
+%build
+CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
+
+
+%install
+%{__python} setup.py install --skip-build --root="$RPM_BUILD_ROOT"
+
+
+%files
+%doc README ChangeLog
+%{python_sitelib}/unidecode/
+%{python_sitelib}/*.egg-info/
+
+
+%changelog
+* Fri Jul 15 2011 P J P <pj.pandit at yahoo.co.in> - 0.04.7-3
+- changed to use srcname and version macros in URL & Source0 variables.
+
+* Tue Jul 12 2011 P J P <pj.pandit at yahoo.co.in> - 0.04.7-2
+- added BuildRequires, and changed description to be more concise.
+
+* Mon Jul 11 2011 P J P <pj.pandit at yahoo.co.in> - 0.04.7-1
+- Initial RPM for python-unidecode.
diff --git a/sources b/sources
index e69de29..282dcb2 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+c67bc90041ffc45a1d0f5cba5feb0e14 Unidecode-0.04.7.tar.gz
More information about the scm-commits
mailing list