geocode-glib/geocode-glib.spec

107 lines
3.3 KiB
RPMSpec

#
# spec file for package geocode-glib
#
# Copyright (c) 2011 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: 0.99.0
Release: 1
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/0.99/%{name}-%{version}.tar.bz2
BuildRequires: gnome-doc-utils-devel
BuildRequires: gobject-introspection-devel
BuildRequires: intltool
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(json-glib-1.0)
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
License: LGPL-2.0+
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 devel
License: LGPL-2.0+
Summary: Convenience library for the Yahoo! Place Finder APIs -- Development Files
Group: Development/Libraries/C and C++
Requires: libgeocode-glib0 = %{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.*
%{_libdir}/girepository-1.0/GeocodeGlib-1.0.typelib
%files devel
%defattr(-,root,root)
%{_includedir}/geocode-glib/
%{_libdir}/*.so
%{_libdir}/pkgconfig/geocode-glib.pc
%{_datadir}/gir-1.0/*.gir
%doc %{_datadir}/gtk-doc/html/geocode-glib/
%changelog