%global libosmium_version 2.12.2
Name: pyosmium
Version: 2.12.4
Release: 1%{?dist}
Summary: Python bindings for libosmium
License: BSD
URL: http://osmcode.org/pyosmium/
Source0: https://github.com/osmcode/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires: gcc-c++
BuildRequires: python2-devel python3-devel
BuildRequires: python3-sphinx python3-sphinxcontrib-autoprogram
BuildRequires: python2-nose python3-nose
BuildRequires: boost-devel boost-python3-devel
BuildRequires: libosmium-devel >= %{libosmium_version}
BuildRequires: libosmium-static >= %{libosmium_version}
%description
Provides Python bindings for the Libosmium C++ library, a library
for working with OpenStreetMap data in a fast and flexible manner.
%package -n python2-osmium
Summary: %{summary}
%{?python_provide:%python_provide python2-osmium}
%description -n python2-osmium
Provides Python bindings for the Libosmium C++ library, a library
for working with OpenStreetMap data in a fast and flexible manner.
%package -n python3-osmium
Summary: %{summary}
%{?python_provide:%python_provide python3-osmium}
%description -n python3-osmium
Provides Python bindings for the Libosmium C++ library, a library
for working with OpenStreetMap data in a fast and flexible manner.
%prep
%autosetup
%build
%py2_build
%py3_build
cd doc
make html SPHINXBUILD=sphinx-build-3
%install
%py2_install
%py3_install
%check
cd test
%{__python2} run_tests.py
%{__python3} run_tests.py
%files -n python2-osmium
%doc README.md README.rst CHANGELOG.md doc/_build/html
%license LICENSE.TXT
%{python2_sitearch}/*
%files -n python3-osmium
%doc README.md README.rst CHANGELOG.md doc/_build/html
%license LICENSE.TXT
%{python3_sitearch}/*
%{_bindir}/*
%changelog
* Sun Aug 20 2017 Tom Hughes <tom@compton.nu> - 2.12.4-1
- Update to 2.12.4 upstream release
* Thu Aug 10 2017 Tom Hughes <tom@compton.nu> - 2.12.3-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.12.3-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.12.3-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Wed Jul 19 2017 Jonathan Wakely <jwakely@redhat.com> - 2.12.3-3
- Rebuilt for s390x binutils bug
* Tue Jul 18 2017 Jonathan Wakely <jwakely@redhat.com> - 2.12.3-2
- Rebuilt for Boost 1.64
* Thu May 25 2017 Tom Hughes <tom@compton.nu> - 2.12.3-1
- Update to 2.12.3 upstream release
* Fri May 5 2017 Tom Hughes <tom@compton.nu> - 2.12.2-1
- Update to 2.12.2 upstream release
* Tue Apr 11 2017 Tom Hughes <tom@compton.nu> - 2.12.0-2
- Rebuild against libosmium 2.12.1
* Sun Mar 19 2017 Tom Hughes <tom@compton.nu> - 2.12.0-1
- Update to 2.12.0 upstream release
* Tue Mar 7 2017 Tom Hughes <tom@compton.nu> - 2.11.0-2
- Rebuild against libosmium 2.12.0
* Fri Mar 3 2017 Tom Hughes <tom@compton.nu> - 2.11.0-1
- Initial build of 2.11.0