%global commit 17fd0ccf560fef545d21c904cf2370f92ad2a288 %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: osmpbf Version: 1.3.3 Release: 21.20150712git%{shortcommit}%{?dist} Summary: C library to read and write OpenStreetMap PBF files License: LGPLv3 URL: https://github.com/scrosby/OSM-binary Source0: https://github.com/scrosby/OSM-binary/archive/%{commit}/OSM-binary-%{commit}.tar.gz # https://github.com/scrosby/OSM-binary/pull/21 Patch0: osmpbf-shlib.patch BuildRequires: gcc-c++ BuildRequires: protobuf-devel protobuf-java protobuf-compiler BuildRequires: ant javapackages-local %description Osmpbf is a Java/C library to read and write OpenStreetMap PBF files. PBF (Protocol buffer Binary Format) is a binary file format for OpenStreetMap data that uses Google Protocol Buffers as low-level storage. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel This package contains libraries and header files for developing applications that use %{name}. %package java Summary: Java OpenStreetMap PBF file format library BuildArch: noarch %description java Osmpbf is a Java/C library to read and write OpenStreetMap PBF files. PBF (Protocol buffer Binary Format) is a binary file format for OpenStreetMap data that uses Google Protocol Buffers as low-level storage. %package javadoc Summary: Javadoc for %{name} BuildArch: noarch %description javadoc This package contains javadoc for %{name}. %prep %setup -q -n OSM-binary-%{commit} %patch0 -p1 %build make %{?_smp_mflags} -C src CXXFLAGS="${RPM_OPT_FLAGS}" ant %install make -C src install DESTDIR=%{buildroot} PREFIX=%{_prefix} LIBDIR=%{_libdir} rm %{buildroot}/%{_libdir}/libosmpbf.a %mvn_artifact pom.xml %{name}.jar %mvn_file : osmpbf %mvn_install -J src.java %files %doc README ReleaseNotes.txt %license COPYING COPYING.LESSER %{_libdir}/libosmpbf.so.* %files devel %{_includedir}/osmpbf %{_libdir}/libosmpbf.so %files java -f .mfiles %license COPYING COPYING.LESSER %files javadoc -f .mfiles-javadoc %license COPYING COPYING.LESSER %changelog * Sat Jul 11 2020 Jiri Vanek - 1.3.3-21.20150712git17fd0cc - Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11 * Sun Jun 21 2020 Adrian Reber - 1.3.3-20.20150712git17fd0cc - Rebuilt for protobuf 3.12 * Sun Jun 14 2020 Adrian Reber - 1.3.3-19.20150712git17fd0cc - Rebuilt for protobuf 3.12 * Wed Jan 29 2020 Fedora Release Engineering - 1.3.3-18.20150712git17fd0cc - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Jul 25 2019 Fedora Release Engineering - 1.3.3-17.20150712git17fd0cc - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri Feb 01 2019 Fedora Release Engineering - 1.3.3-16.20150712git17fd0cc - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 1.3.3-15.20150712git17fd0cc - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Sun Feb 18 2018 Tom Hughes - 1.3.3-14.20150712git17fd0cc - Require gcc-c++ * Thu Feb 08 2018 Fedora Release Engineering - 1.3.3-13.20150712git17fd0cc - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Tue Jan 30 2018 Tom Hughes - 1.3.3-12.20150712git17fd0cc - Drop ldconfig scriptlets * Thu Aug 03 2017 Fedora Release Engineering - 1.3.3-11.20150712git17fd0cc - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 1.3.3-10.20150712git17fd0cc - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 1.3.3-9.20150712git17fd0cc - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Feb 04 2016 Fedora Release Engineering - 1.3.3-8.20150712git17fd0cc - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Sun Aug 16 2015 Eduardo Mayorga Téllez - 1.3.3-7.20150712git17fd0cc - Package the Java library * Wed Jul 22 2015 Tom Hughes - 1.3.3-6.20150712git17fd0cc - Don't link to protobuf so user can choose protobuf-lite instead - Drop protobuf-devel require for the same reason * Sun Jul 12 2015 Tom Hughes - 1.3.3-5.20150712git17fd0cc - Update to new upstream snapshot, dropping merged patch - Require protobuf-devel in devel package * Tue Jun 23 2015 Tom Hughes - 1.3.3-4.20150608git3730430 - Add text of GPLv3 * Tue Jun 23 2015 Tom Hughes - 1.3.3-3.20150608git3730430 - Fix base package require in devel package * Tue Jun 16 2015 Tom Hughes - 1.3.3-2.20150608git3730430 - Install shared library with execute permission - Link shared library against protobuf - Correct soname * Mon Jun 8 2015 Tom Hughes - 1.3.3-1.20150608git3730430 - Initial build