packages: python-unidecode/python-unidecode.spec (NEW) - initial PLD release
patrys
patrys at pld-linux.org
Tue Jan 12 12:59:01 CET 2010
Author: patrys Date: Tue Jan 12 11:59:01 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- initial PLD release
---- Files affected:
packages/python-unidecode:
python-unidecode.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/python-unidecode/python-unidecode.spec
diff -u /dev/null packages/python-unidecode/python-unidecode.spec:1.1
--- /dev/null Tue Jan 12 12:59:01 2010
+++ packages/python-unidecode/python-unidecode.spec Tue Jan 12 12:58:55 2010
@@ -0,0 +1,62 @@
+# $Revision$, $Date$
+%define module Unidecode
+Summary: ASCII transliterations of Unicode text
+Name: python-%{module}
+Version: 0.04.1
+Release: 1
+License: GPL v1+ or Artistic
+Group: Libraries/Python
+Source0: http://pypi.python.org/packages/source/U/Unidecode/%{module}-%{version}.tar.gz
+# Source0-md5: c4c9ed8d40cff25c390ff5d5112b9308
+URL: http://pypi.python.org/pypi/Unidecode/
+BuildRequires: python-devel >= 1:2.5
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.219
+BuildRequires: sed >= 4.0
+%pyrequires_eq python
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Unidecode provides a function, 'unidecode(...)' that takes Unicode
+data and tries to represent it in ASCII characters (i.e., the
+universally displayable characters between 0x00 and 0x7F). The
+representation is almost always an attempt at transliteration -- i.e.,
+conveying, in Roman letters, the pronunciation expressed by the text
+in some other writing system.
+
+This is a Python port of Text::Unidecode Perl module by Sean M. Burke
+<sburke at cpan.org>.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%build
+python setup.py build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+python setup.py install \
+ --root=$RPM_BUILD_ROOT \
+ --optimize=2
+
+%py_postclean
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README
+%{py_sitescriptdir}/%{module}-%{version}-py*.egg-info
+%{py_sitescriptdir}/unidecode
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2010/01/12 11:58:55 patrys
+- initial PLD release
+
================================================================
More information about the pld-cvs-commit
mailing list