File python-country.spec of Package python-country
%define modname pycountry
Name: python-country
Version: 0.10
Release: 2
Summary: ISO Definitions and Translations
URL: http://pypi.python.org/pypi/pycountry
License: LGPL 2.1
Group: Development/Libraries/Python
Source: %{modname}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-buildroot
%{py_requires}
BuildRequires: python-devel python-lxml python-setuptools
Requires: python-lxml python-setuptools
%description
pycountry provides the ISO databases for the standards:
- 639: Languages
- 3166: Countries
- 3166-2: Subdivisions of countries
- 4217: Currencies
- 15924: Scripts
The databases are imported from Debian's `pkg-isocodes`, packaged into
pycountry and made accessible through a Python API.
Translation files for the various strings are included as well.
Authors:
--------
Christian Theune <ct@gocept.com>
%prep
%setup -q -n %{modname}-%{version}
%build
export CFLAGS="$RPM_OPT_FLAGS"
python setup.py build
%install
python setup.py install --single-version-externally-managed --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES
%clean
rm -rf %{buildroot}
%files -f INSTALLED_FILES
%defattr(-,root,root)
%doc CHANGES.txt LICENSE.txt TODO.txt
%changelog
* Wed Dec 10 2008 - James Oakley <jfunk@funktronics.ca> - 0.10-1
- Initial release