File libreadosm.spec of Package libreadosm
#
# spec file for package libreadosm
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define _lto_cflags %{nil}
Name: libreadosm
%define soversion 1
Version: 1.1.0
Release: 0
Summary: Library to extract valid data from within an Open Street Map input file
License: MPL-1.1 OR GPL-2.0-or-later OR LGPL-2.1-or-later
Group: Development/Libraries/C and C++
Url: https://www.gaia-gis.it/fossil/readosm/index
Source: readosm-%{version}.tar.gz
BuildRequires: gcc-c++
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: fdupes
BuildRequires: libexpat-devel
BuildRequires: zlib-devel
%description
ReadOSM is an open source library to extract valid data from within an Open
Street Map input file. Such OSM files come in two different formats:
* files identified by the .osm suffix simply are plain XML files.
* files identified by the .osm.pbf suffix does containt the same
identical data, but adopting the Google's Protocol Buffer serialization
format and thus requiring much less storage space.
The ReadOSM design goals are:
* to be simple and lightweight
* to be stable, robust and efficient
* to be easily and universally portable
* making the whole parsing process of both .osm or .osm.pbf files completely
transparent from the application own perspective.
ReadOSM is structurally simple and quite light-weight (typically about 20K
of object code, stripped).
%package -n %{name}%{soversion}
Summary: Library to extract valid data from within an Open Street Map input file
Group: Development/Libraries/C and C++
%description -n %{name}%{soversion}
ReadOSM is an open source library to extract valid data from within an Open
Street Map input file. Such OSM files come in two different formats:
* files identified by the .osm suffix simply are plain XML files.
* files identified by the .osm.pbf suffix does containt the same
identical data, but adopting the Google's Protocol Buffer serialization
format and thus requiring much less storage space.
The ReadOSM design goals are:
* to be simple and lightweight
* to be stable, robust and efficient
* to be easily and universally portable
* making the whole parsing process of both .osm or .osm.pbf files completely
transparent from the application own perspective.
ReadOSM is structurally simple and quite light-weight (typically about 20K
of object code, stripped).
%package -n libreadosm-devel
Summary: Development files for %{name}
Group: Development/Libraries/C and C++
BuildRequires: pkg-config
Requires: %{name}%{soversion} = %{version}
Requires: zlib-devel
%description devel
This package contains all necessary include files and libraries needed
to compile and develop applications that use libreadosm.
%prep
%setup -q -n readosm-%{version}
%build
%configure
make %{?_smp_flags}
%install
%makeinstall
%post -n %{name}%{soversion} -p /sbin/ldconfig
%postun -n %{name}%{soversion} -p /sbin/ldconfig
%clean
rm -rf %{buildroot}
%files -n %{name}%{soversion}
%defattr(-,root,root,-)
%{_libdir}/lib*.so.*
%files devel
%defattr(-,root,root,-)
%{_includedir}/*
%{_libdir}/lib*.so
%{_libdir}/lib*.a
%exclude %{_libdir}/lib*.la
%{_libdir}/pkgconfig/readosm.pc
%changelog