File geocode-glib.spec of Package geocode-glib

#
# spec file for package geocode-glib
#
# Copyright (c) 2013 SUSE LINUX Products 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 http://bugs.opensuse.org/
#


Name:           geocode-glib
Version:        3.10.0
Release:        0
Summary:        Convenience library for the Yahoo! Place Finder APIs
License:        LGPL-2.0+
Group:          System/Libraries
Url:            http://www.gnome.org/
Source:         http://download.gnome.org/sources/geocode-glib/3.10/%{name}-%{version}.tar.xz
BuildRequires:  gnome-doc-utils-devel
BuildRequires:  gobject-introspection-devel
BuildRequires:  intltool
BuildRequires:  pkgconfig(gio-2.0) >= 2.34
BuildRequires:  pkgconfig(json-glib-1.0) >= 0.16.2
BuildRequires:  pkgconfig(libsoup-2.4)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
The geocode-glib library is a convenience library for the Yahoo! Place
Finder APIs, as described at http://developer.yahoo.com/geo/placefinder/

The Place Finder web service allows to do geocoding (finding longitude
and latitude from an address), and reverse geocoding (finding an address
from coordinates).

%package -n libgeocode-glib0
Summary:        Convenience library for the Yahoo! Place Finder APIs
Group:          System/Libraries

%description -n libgeocode-glib0
The geocode-glib library is a convenience library for the Yahoo! Place
Finder APIs, as described at http://developer.yahoo.com/geo/placefinder/

The Place Finder web service allows to do geocoding (finding longitude
and latitude from an address), and reverse geocoding (finding an address
from coordinates).

%package -n typelib-1_0-GeocodeGlib-1_0
Summary:        Convenience library for the Yahoo! Place Finder APIs -- Introspection bindings
Group:          System/Libraries

%description -n typelib-1_0-GeocodeGlib-1_0
The geocode-glib library is a convenience library for the Yahoo! Place
Finder APIs, as described at http://developer.yahoo.com/geo/placefinder/

The Place Finder web service allows to do geocoding (finding longitude
and latitude from an address), and reverse geocoding (finding an address
from coordinates).

This package provides the GObject Introspection bindings for the
geocode-glib library.

%package devel
Summary:        Convenience library for the Yahoo! Place Finder APIs -- Development Files
Group:          Development/Libraries/C and C++
Requires:       libgeocode-glib0 = %{version}
Requires:       typelib-1_0-GeocodeGlib-1_0 = %{version}

%description devel
The geocode-glib library is a convenience library for the Yahoo! Place
Finder APIs, as described at http://developer.yahoo.com/geo/placefinder/

The Place Finder web service allows to do geocoding (finding longitude
and latitude from an address), and reverse geocoding (finding an address
from coordinates).

This package contains development files needed to develop with the
geocode-glib library.

%prep
%setup -q

%build
%configure
make %{?_smp_mflags}

%install
%make_install
find %{buildroot}%{_libdir} -name '*.la' -type f -delete -print

%clean
rm -rf %{buildroot}

%post -n libgeocode-glib0 -p /sbin/ldconfig

%postun -n libgeocode-glib0 -p /sbin/ldconfig

%files -n libgeocode-glib0
%defattr(-,root,root)
%doc AUTHORS COPYING.LIB NEWS README
%{_libdir}/*.so.*

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

%files devel
%defattr(-,root,root)
%doc %{_datadir}/gtk-doc/html/geocode-glib-1.0/
%{_datadir}/gir-1.0/*.gir
%{_includedir}/geocode-glib-1.0/
%{_libdir}/pkgconfig/geocode-glib-1.0.pc
%{_libdir}/*.so

%changelog