File python-pycountry.spec of Package python-pycountry
#norootforbuild
#
%define real_name pycountry
#
#
Name: python-pycountry
Group: Development/Libraries/Python
Version: 0.10
Release: 1
License: LGPL v2.1
Summary: Databases for iso standards 639 3166 3166-2 4217 15924
Autoreqprov: on
Source: %{real_name}-%{version}.tar.gz
BuildRoot:%{_tmppath}/%{name}-%{version}-build
Requires: python, python-lxml
BuildRequires: python-setuptools
Url: http://pypi.python.org/pypi/pycountry/
Packager: Ciaran Farrell <cfarrell1980@googlemail.com>
%{py_requires}
%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.
%prep
%setup -n %{real_name}-%{version}
%build
export CFLAGS="$RPM_OPT_FLAGS"
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES
%clean
rm -rf $RPM_BUILD_ROOT
%files -f INSTALLED_FILES
%defattr(-,root,root)
%changelog
* Wed Oct 08 2008 - cfarrell
- Initial import and build