From a665a899cfe1c5ecfc957cbfacfd29cec6afb985 Mon Sep 17 00:00:00 2001 From: Luke Macken Date: Feb 18 2011 20:18:41 +0000 Subject: Initial import of python-translationstring into rawhide --- diff --git a/.gitignore b/.gitignore index e69de29..7fe20aa 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/translationstring-0.3.tar.gz diff --git a/python-translationstring.spec b/python-translationstring.spec new file mode 100644 index 0000000..88ada16 --- /dev/null +++ b/python-translationstring.spec @@ -0,0 +1,54 @@ +%global modname translationstring + +Name: python-translationstring +Version: 0.3 +Release: 1%{?dist} +Summary: Utility library for i18n relied on by various Repoze packages + +Group: Development/Libraries +License: BSD +URL: http://pypi.python.org/pypi/translationstring +Source0: http://pypi.python.org/packages/source/t/translationstring/%{modname}-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch + +BuildRequires: python-babel +BuildRequires: python2-devel +BuildRequires: python-setuptools-devel + +%description +A library used by various `Repoze `_ packages for +internationalization (i18n) duties related to translation. + +This package provides a *translation string* class, a *translation string +factory* class, translation and pluralization primitives, and a utility that +helps `Chameleon `_ templates use translation +facilities of this package. It does not depend on `Babel +`_, but its translation and pluralization services +are meant to work best when provided with an instance of the +``babel.support.Translations`` class. + +%prep +%setup -q -n %{modname}-%{version} + +%build +%{__python} setup.py build + +%install +rm -rf %{buildroot} +%{__python} setup.py install -O1 --skip-build --root %{buildroot} + +%check +%{__python} setup.py test + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%doc README.txt LICENSE.txt +%{python_sitelib}/* + +%changelog +* Wed Jan 2 2010 Luke Macken - 0.3-1 +- Initial package diff --git a/sources b/sources index e69de29..e7a5d3a 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +9cba042671c0cbf558faf2082b34658b translationstring-0.3.tar.gz