File osm-gps-map.spec of Package osm-gps-map

#
# spec file for package osm-gps-map
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2014 Dominique Leuenberger, Amsterdam, The Netherlands
#
# 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 http://bugs.opensuse.org/
#


Name:           osm-gps-map
Version:        1.0.2
Release:        0
Summary:        A Gtk+ Widget for Displaying OpenStreetMap tiles
License:        GPL-2.0+
Group:          Productivity/Other
Url:            http://nzjrs.github.io/osm-gps-map/
Source:         https://github.com/nzjrs/osm-gps-map/archive/%{version}.tar.gz
BuildRequires:  gnome-common
BuildRequires:  pkgconfig(gobject-introspection-1.0)
BuildRequires:  pkgconfig(gtk+-3.0) >= 3.0
BuildRequires:  pkgconfig(libsoup-2.4)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
A Gtk+ widget (and Python bindings) that when given GPS co-ordinates, draws a GPS track,
and points of interest on a moving map display. Downloads map data from a number of websites,
including openstreetmap.org.

The library has excellent performance and is currently used in a number of
Gtk+ and Maemo applications.

%package -n libosmgpsmap-1_0-0
Summary:        A Gtk+ Widget for Displaying OpenStreetMap tiles
Group:          System/Libraries

%description -n libosmgpsmap-1_0-0
A Gtk+ widget (and Python bindings) that when given GPS co-ordinates, draws a GPS track,
and points of interest on a moving map display. Downloads map data from a number of websites,
including openstreetmap.org.

The library has excellent performance and is currently used in a number of
Gtk+ and Maemo applications.

%package -n typelib-1_0-OsmGpsMap-1_0
Summary:        A Gtk+ Widget for Displaying OpenStreetMap tiles
Group:          System/Libraries

%description -n typelib-1_0-OsmGpsMap-1_0
A Gtk+ widget (and Python bindings) that when given GPS co-ordinates, draws a GPS track,
and points of interest on a moving map display. Downloads map data from a number of websites,
including openstreetmap.org.

The library has excellent performance and is currently used in a number of
Gtk+ and Maemo applications.

%package -n libosmgpsmap-devel
Summary:        A Gtk+ Widget for Displaying OpenStreetMap tiles - Development files
Group:          Development/Languages/C and C++
Requires:       libosmgpsmap-1_0-0 = %{version}
Requires:       typelib-1_0-OsmGpsMap-1_0 = %{version}

%description -n libosmgpsmap-devel
A Gtk+ widget (and Python bindings) that when given GPS co-ordinates, draws a GPS track,
and points of interest on a moving map display. Downloads map data from a number of websites,
including openstreetmap.org.

The library has excellent performance and is currently used in a number of
Gtk+ and Maemo applications.

%prep
%setup -q

%build
./autogen.sh
%configure \
    --disable-static
make %{?_smp_mflags}

%install
%make_install
find %{buildroot} -type f -name '*.la' -delete -print
# We package those files as %%doc, resulting in a different location
rm -rf %{buildroot}%{_prefix}/doc

%post -n libosmgpsmap-1_0-0 -p /sbin/ldconfig

%postun -n libosmgpsmap-1_0-0 -p /sbin/ldconfig

%files -n libosmgpsmap-1_0-0
%defattr(-,root,root)
%doc ChangeLog README COPYING
%{_libdir}/libosmgpsmap-1.0.so.*

%files -n typelib-1_0-OsmGpsMap-1_0
%defattr(-,root,root)
%{_libdir}/girepository-1.0/OsmGpsMap-1.0.typelib

%files -n libosmgpsmap-devel
%defattr(-,root,root)
%{_includedir}/osmgpsmap-1.0/
%{_datadir}/gir-1.0/OsmGpsMap-1.0.gir
%{_libdir}/libosmgpsmap-1.0.so
%{_libdir}/pkgconfig/osmgpsmap-1.0.pc

%changelog
openSUSE Build Service is sponsored by