%global gdalcpp_version 1.1.1-3.20160601git225b97c %global protozero_version 1.6.3 %global testcommit 8df8fe5758bc386d95649aa8a8f27d46fe76ec29 %define debug_package %{nil} Name: libosmium Version: 2.14.2 Release: 1%{?dist} Summary: Fast and flexible C++ library for working with OpenStreetMap data License: Boost URL: http://osmcode.org/libosmium/ Source0: https://github.com/osmcode/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz Source1: https://github.com/osmcode/osm-testdata/archive/%{testcommit}/osm-testdata-%{testcommit}.tar.gz BuildRequires: cmake gcc-c++ BuildRequires: doxygen graphviz xmlstarlet BuildRequires: ruby rubygems spatialite-tools BuildRequires: boost-devel BuildRequires: protozero-devel >= %{protozero_version} BuildRequires: gdalcpp-devel >= %{gdalcpp_version} BuildRequires: utf8cpp-devel BuildRequires: expat-devel BuildRequires: zlib-ng-devel BuildRequires: bzip2-devel BuildRequires: sparsehash-devel BuildRequires: gdal-devel BuildRequires: geos-devel BuildRequires: proj-devel proj-epsg BuildRequires: protozero-static BuildRequires: gdalcpp-static BuildRequires: utf8cpp-static %description A fast and flexible C++ library for working with OpenStreetMap data. %package devel Summary: Development files for %{name} Provides: %{name}-static = %{version}-%{release} Requires: boost-devel Requires: protozero-devel >= %{protozero_version} Requires: gdalcpp-devel >= %{gdalcpp_version} Requires: utf8cpp-devel Requires: expat-devel Requires: zlib-ng-devel Requires: bzip2-devel Requires: sparsehash-devel Requires: gdal-devel Requires: geos-devel Requires: proj-devel %description devel This package contains libraries and header files for developing applications that use %{name}. %package doc Summary: Documentation for %{name} BuildArch: noarch %description doc This package contains documentation for developing applications that use %{name}. %prep %setup -q -c -T -a 0 -a 1 mv %{name}-%{version} %{name} mv osm-testdata-%{testcommit} osm-testdata rm -rf libosmium/include/protozero rm -rf libosmium/include/gdalcpp.h rm -rf libosmium/include/utf8.h libosmium/include/utf8 sed -i -e 's/-O3 -g//' libosmium/CMakeLists.txt mkdir libosmium/build %build cd libosmium/build %cmake .. -DBUILD_HEADERS=ON -DBUILD_DATA_TESTS=ON %make_build %make_build doc %install cd libosmium/build %make_install rm -rf %{buildroot}%{_docdir} %check cd libosmium/build ctest -V %files devel %doc libosmium/README.md libosmium/CHANGELOG.md %license libosmium/LICENSE %{_includedir}/osmium %files doc %doc libosmium/build/doc/html/* %license libosmium/LICENSE %changelog * Tue Jul 24 2018 Tom Hughes - 2.14.2-1 - Update to 2.14.2 upstream release * Fri Jul 13 2018 Fedora Release Engineering - 2.14.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Sun Apr 1 2018 Tom Hughes - 2.14.0-1 - Update to 2.14.0 upstream release * Wed Feb 07 2018 Fedora Release Engineering - 2.13.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Tue Jan 23 2018 Tom Hughes - 2.13.1-3 - Add patch for protozero 1.6.x support - Ensure we build with Fedora optimisation options * Thu Oct 26 2017 Vít Ondruch - 2.13.1-2 - Drop the explicit dependnecy on rubypick. * Fri Aug 25 2017 Tom Hughes - 2.13.1-1 - Update to 2.13.1 upstream release * Wed Aug 16 2017 Tom Hughes - 2.13.0-2 - Re-enable test with upstream patch * Tue Aug 15 2017 Tom Hughes - 2.13.0-1 - Update to 2.13.0 upstream release * Thu Aug 03 2017 Fedora Release Engineering - 2.12.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 2.12.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri May 5 2017 Tom Hughes - 2.12.2-1 - Update to 2.12.2 upstream release * Mon Apr 10 2017 Tom Hughes - 2.12.1-1 - Update to 2.12.1 upstream release * Tue Mar 7 2017 Tom Hughes - 2.12.0-1 - Update to 2.12.0 upstream release * Fri Feb 10 2017 Fedora Release Engineering - 2.11.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Sat Jan 14 2017 Tom Hughes - 2.11.0-1 - Update to 2.11.0 upstream release * Wed Nov 16 2016 Tom Hughes - 2.10.2-1 - Update to 2.10.2 upstream release - Exclude ppc64le as the tests fail * Thu Sep 15 2016 Tom Hughes - 2.9.0-1 - Update to 2.9.0 upstream release - Exclude aarch64 as the tests fail * Thu Aug 4 2016 Tom Hughes - 2.8.0-1 - Update to 2.8.0 upstream release * Sat Jun 11 2016 Tom Hughes - 2.7.2-1 - Update to 2.7.2 upstream release * Wed Jun 1 2016 Tom Hughes - 2.7.1-1 - Update to 2.7.1 upstream release * Mon Feb 22 2016 Tom Hughes - 2.6.1-1 - Update to 2.6.1 upstream release * Fri Feb 19 2016 Tom Hughes - 2.6.0-3 - Add patch for newer protozero * Thu Feb 18 2016 Peter Robinson 2.6.0-2 - Add ruby deps * Sat Feb 6 2016 Tom Hughes - 2.6.0-1 - Update to 2.6.0 upstream release * Thu Feb 04 2016 Fedora Release Engineering - 2.5.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Jan 21 2016 Jonathan Wakely - 2.5.4-2 - Rebuilt for Boost 1.60 * Fri Dec 4 2015 Tom Hughes - 2.5.4-1 - Update to 2.5.4 upstream release * Sun Nov 29 2015 Tom Hughes - 2.5.3-2 - Add patches for test failures * Wed Nov 18 2015 Tom Hughes - 2.5.3-1 - Update to 2.5.3 upstream release * Mon Nov 9 2015 Tom Hughes - 2.5.2-1 - Update to 2.5.2 upstream release * Fri Sep 18 2015 Tom Hughes - 2.2.0-11 - Revert unathorised bundling of gdalcpp * Fri Sep 18 2015 Marcin Juszkiewicz - 2.2.0-10 - added few backports to fix ftbfs * Sat Jul 25 2015 Tom Hughes - 2.2.0-9 - Rebuild for boost 1.58.0 * Sat Jul 25 2015 Tom Hughes - 2.2.0-8 - Disable empty debuginfo package * Tue Jul 21 2015 Tom Hughes - 2.2.0-7 - Rebuild for boost 1.58.0 * Tue Jul 21 2015 Tom Hughes - 2.2.0-6 - Enable data tests * Sat Jul 18 2015 Tom Hughes - 2.2.0-5 - Add license to doc subpackage * Thu Jul 16 2015 Tom Hughes - 2.2.0-4 - Remove bundled header * Thu Jul 16 2015 Tom Hughes - 2.2.0-3 - Use %%cmake * Wed Jul 15 2015 Tom Hughes - 2.2.0-2 - Make devel subpackage an arched package - Move documentation to doc subpackage * Sun Jul 12 2015 Tom Hughes - 2.2.0-1 - Update to 2.2.0 upstream release * Mon Jun 8 2015 Tom Hughes - 2.1.0-1 - Initial build