Group :: Development/Java
RPM: osmpbf
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Group: Development/Java
# BEGIN SourceDeps(oneline):
BuildRequires(pre): rpm-macros-cmake rpm-macros-fedora-compat
BuildRequires: zlib-devel
# END SourceDeps(oneline)
BuildRequires: /proc rpm-build-java
BuildRequires: jpackage-default
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name: osmpbf
Version: 1.5.0
Release: alt1_11jpp11
Summary: C library to read and write OpenStreetMap PBF files
License: LGPLv3
URL: https://github.com/openstreetmap/OSM-binary
Source0: https://github.com/openstreetmap/OSM-binary/archive/v%{version}/OSM-binary-%{version}.tar.gz
BuildRequires: ctest cmake gcc-c++
BuildRequires: libprotobuf-devel protobuf-compiler
Source44: import.info
%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 tools
Group: Development/Java
Summary: Tools for %{name}
Requires: %{name} = %{version}-%{release}
%description tools
This package contains tools that use %{name}.
%package devel
Group: Development/Java
Summary: Development files for %{name}
Requires: %{name} = %{version}-%{release}
%description devel
This package contains libraries and header files for
developing applications that use %{name}.
%prep
%setup -q -n OSM-binary-%{version}
%build
%{fedora_v2_cmake}
%fedora_v2_cmake_build
%install
%fedora_v2_cmake_install
rm %{buildroot}/%{_libdir}/libosmpbf.a
%files
%doc README.md CHANGELOG.md
%doc --no-dereference LICENSE
%{_libdir}/libosmpbf.so.1
%{_libdir}/libosmpbf.so.1.*
%files tools
%{_bindir}/*
%{_mandir}/man1/*
%files devel
%{_includedir}/osmpbf
%{_libdir}/libosmpbf.so
%changelog
…
Full changelog you can see here
# BEGIN SourceDeps(oneline):
BuildRequires(pre): rpm-macros-cmake rpm-macros-fedora-compat
BuildRequires: zlib-devel
# END SourceDeps(oneline)
BuildRequires: /proc rpm-build-java
BuildRequires: jpackage-default
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name: osmpbf
Version: 1.5.0
Release: alt1_11jpp11
Summary: C library to read and write OpenStreetMap PBF files
License: LGPLv3
URL: https://github.com/openstreetmap/OSM-binary
Source0: https://github.com/openstreetmap/OSM-binary/archive/v%{version}/OSM-binary-%{version}.tar.gz
BuildRequires: ctest cmake gcc-c++
BuildRequires: libprotobuf-devel protobuf-compiler
Source44: import.info
%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 tools
Group: Development/Java
Summary: Tools for %{name}
Requires: %{name} = %{version}-%{release}
%description tools
This package contains tools that use %{name}.
%package devel
Group: Development/Java
Summary: Development files for %{name}
Requires: %{name} = %{version}-%{release}
%description devel
This package contains libraries and header files for
developing applications that use %{name}.
%prep
%setup -q -n OSM-binary-%{version}
%build
%{fedora_v2_cmake}
%fedora_v2_cmake_build
%install
%fedora_v2_cmake_install
rm %{buildroot}/%{_libdir}/libosmpbf.a
%files
%doc README.md CHANGELOG.md
%doc --no-dereference LICENSE
%{_libdir}/libosmpbf.so.1
%{_libdir}/libosmpbf.so.1.*
%files tools
%{_bindir}/*
%{_mandir}/man1/*
%files devel
%{_includedir}/osmpbf
%{_libdir}/libosmpbf.so
%changelog
…
Full changelog you can see here