77e4812
%global libosmium_version 2.14.0
43e9bc7
%global protozero_version 1.5.1
6e6a225
%global rapidjson_version 1.1.0
6e6a225
e4f8792
Name:           osmium-tool
77e4812
Version:        1.8.0
77e4812
Release:        1%{?dist}
e4f8792
Summary:        Command line tool for working with OpenStreetMap data
e4f8792
e4f8792
License:        GPLv3
e4f8792
URL:            http://osmcode.org/osmium/
e4f8792
Source0:        https://github.com/osmcode/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
e4f8792
6e6a225
BuildRequires:  cmake gcc-c++ pandoc man-db
e4f8792
6e6a225
BuildRequires:  libosmium-devel >= %{libosmium_version}
6e6a225
BuildRequires:  libosmium-static >= %{libosmium_version}
78f1ecb
BuildRequires:  protozero-devel >= %{protozero_version}
78f1ecb
BuildRequires:  protozero-static >= %{protozero_version}
6e6a225
BuildRequires:  rapidjson-devel >= %{rapidjson_version}
6e6a225
BuildRequires:  rapidjson-static >= %{rapidjson_version}
e4f8792
e4f8792
%description
e4f8792
Command line tool for working with OpenStreetMap data
e4f8792
based on the Osmium library
e4f8792
e4f8792
e4f8792
%prep
8fb72b7
%autosetup -p 1 -n %{name}-%{version}
6e6a225
rm -rf include/rapidjson
e4f8792
e4f8792
e4f8792
%build
e4f8792
mkdir build
e4f8792
cd build
e4f8792
%cmake ..
e4f8792
%make_build
e4f8792
e4f8792
e4f8792
%install
e4f8792
%make_install -C build
e4f8792
mkdir -p %{buildroot}%{_datadir}/zsh/site-functions
e4f8792
install -p -m644 zsh_completion/* %{buildroot}%{_datadir}/zsh/site-functions
e4f8792
e4f8792
e4f8792
%check
e4f8792
cd build
e4f8792
ctest -V
e4f8792
e4f8792
e4f8792
%files
e4f8792
%doc README.md CHANGELOG.md
e4f8792
%license LICENSE.txt
e4f8792
%{_bindir}/osmium
e4f8792
%{_mandir}/man1/osmium*.1.gz
e4f8792
%{_mandir}/man5/osmium*.5.gz
e4f8792
%dir %{_datadir}/zsh
e4f8792
%dir %{_datadir}/zsh/site-functions
e4f8792
%{_datadir}/zsh/site-functions/_osmium
e4f8792
e4f8792
e4f8792
%changelog
77e4812
* Sun Apr  1 2018 Tom Hughes <tom@compton.nu> - 1.8.0-1
77e4812
- Update to 1.8.0 upstream release
77e4812
b49e263
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.1-3
b49e263
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
b49e263
72c716e
* Tue Jan 23 2018 Jonathan Wakely <jwakely@redhat.com> - 1.7.1-2
72c716e
- Rebuilt for Boost 1.66
72c716e
96925ce
* Sat Aug 26 2017 Tom Hughes <tom@compton.nu> - 1.7.1-1
96925ce
- Update to 1.7.1 upstream release
96925ce
43e9bc7
* Tue Aug 15 2017 Tom Hughes <tom@compton.nu> - 1.7.0-1
43e9bc7
- Update to 1.7.0 upstream release
43e9bc7
d615e39
* Thu Aug 10 2017 Tom Hughes <tom@compton.nu> - 1.6.1-8
d615e39
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
d615e39
e678bfa
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.1-7
e678bfa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
e678bfa
e1b4988
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.1-6
e1b4988
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
e1b4988
a8c7e46
* Wed Jul 19 2017 Jonathan Wakely <jwakely@redhat.com> - 1.6.1-5
a8c7e46
- Rebuilt for s390x binutils bug
a8c7e46
5879b5d
* Tue Jul 18 2017 Jonathan Wakely <jwakely@redhat.com> - 1.6.1-4
5879b5d
- Rebuilt for Boost 1.64
5879b5d
53d9d15
* Mon May 15 2017 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.1-3
53d9d15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild
53d9d15
b160c01
* Fri May  5 2017 Tom Hughes <tom@compton.nu> - 1.6.1-2
b160c01
- Rebuild against libosmium 2.12.2
b160c01
78f1ecb
* Mon Apr 10 2017 Tom Hughes <tom@compton.nu> - 1.6.1-1
78f1ecb
- Update to 1.6.1 upstream release
78f1ecb
a8927fe
* Tue Mar  7 2017 Tom Hughes <tom@compton.nu> - 1.6.0-1
a8927fe
- Update to 1.6.0 upstream release
a8927fe
6e6a225
* Tue Feb 14 2017 Tom Hughes <tom@compton.nu> - 1.5.1-1
6e6a225
- Update to 1.5.1 upstream release
6e6a225
46b16f9
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.1-3
46b16f9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
46b16f9
8bd39e4
* Tue Jan 17 2017 Tom Hughes <tom@compton.nu> - 1.4.1-2
8bd39e4
- Rebuild against libosmium 2.11.0
8bd39e4
bed2e20
* Mon Nov 21 2016 Tom Hughes <tom@compton.nu> - 1.4.1-1
bed2e20
- Update to 1.4.1 upstream release
bed2e20
- Exclude ppc64le as libosmium tests fail
bed2e20
2afb392
* Fri Sep 16 2016 Tom Hughes <tom@compton.nu> - 1.4.0-1
2afb392
- Update to 1.4.0 upstream release
2afb392
3d11066
* Thu Sep 15 2016 Tom Hughes <tom@compton.nu> - 1.3.1-3
3d11066
- Rebuild against libosmium 2.9.0
3d11066
- Exclude aarch64 as libosmium tests fail
3d11066
e5c73f9
* Thu Aug  4 2016 Tom Hughes <tom@compton.nu> - 1.3.1-2
e5c73f9
- Rebuild against libosmium 2.8.0
e5c73f9
bf6334a
* Sat Jun 11 2016 Tom Hughes <tom@compton.nu> - 1.3.1-1
bf6334a
- Update to 1.3.1 upstream release
bf6334a
9cb7b5d
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-4
9cb7b5d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
9cb7b5d
f3c02fa
* Sun Jan 24 2016 Tom Hughes <tom@compton.nu> - 1.3.0-3
f3c02fa
- Rebuild for boost 1.60.0
f3c02fa
e4f8792
* Sun Nov 29 2015 Tom Hughes <tom@compton.nu> - 1.3.0-2
e4f8792
- Own %%{_datadir}/zsh
e4f8792
e4f8792
* Sun Nov 29 2015 Tom Hughes <tom@compton.nu> - 1.3.0-1
e4f8792
- Update to 1.3.0 upstream release
e4f8792
e4f8792
* Sun Sep  6 2015 Tom Hughes <tom@compton.nu> - 1.2.1-1
e4f8792
- Update to 1.2.1 upstream release
e4f8792
e4f8792
* Wed Jul 22 2015 Tom Hughes <tom@compton.nu> - 1.1.1-3
e4f8792
- Requre man-db for tests
e4f8792
e4f8792
* Thu Jul 16 2015 Tom Hughes <tom@compton.nu> - 1.1.1-2
e4f8792
- Use %%cmake
e4f8792
e4f8792
* Sun Jul 12 2015 Tom Hughes <tom@compton.nu> - 1.1.1-1
e4f8792
- Update to 1.1.1 upstream release
e4f8792
e4f8792
* Mon Jun  8 2015 Tom Hughes <tom@compton.nu> - 1.0.1-1
e4f8792
- Initial build