File python-imposm-parser.spec of Package python-imposm-parser
#
# spec file for package python-imposm-parser
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# See also http://en.opensuse.org/openSUSE:Packaging_Python
Name: python-imposm-parser
Version: 1.0.3
Release: 0
Summary: Python parser for OpenStreetMap data
License: Apache-2.0
Group: Development/Languages/Python
Url: https://github.com/omniscale/imposm-parser
Source0: imposm-parser-%{version}.tar.gz
BuildRequires: python-devel python-distribute protobuf-devel fdupes
# BuildArch: noarch
%if 0%{?suse_version}
%py_requires
%endif
%description
A Python library that parses OpenStreetMap data in XML and PBF format.
It has a simple API and it is fast and easy to use. It also works
across multiple CPU/cores for extra speed.
%prep
%setup -q -n imposm-parser-%{version}
%build
# Remove CFLAGS=... for noarch packages (unneeded)
CFLAGS="%{optflags}" python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root %{buildroot} --record-rpm=INSTALLED_FILES
%fdupes $RPM_BUILD_ROOT%{py_sitedir}
%files -f INSTALLED_FILES
%defattr(-,root,root,-)
%changelog