File libgdata.spec of Package libgdata

#
# spec file for package libgdata
#
# 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/
#


# Update baselibs.conf when changing this
%define _sover 13

Name:           libgdata
License:        LGPLv2.1+
Group:          Development/Libraries/GNOME
Version:        0.10.1
Release:        1
Summary:        GLib-based library for accessing online service APIs using the GData protocol
Url:            http://live.gnome.org/libgdata
Source:         http://download.gnome.org/sources/libgdata/0.10/%{name}-%{version}.tar.bz2
Source99:       baselibs.conf
BuildRequires:  gobject-introspection-devel
BuildRequires:  intltool
BuildRequires:  translation-update-upstream
BuildRequires:  pkgconfig(gdk-pixbuf-2.0)
BuildRequires:  pkgconfig(gio-2.0)
# Note: as of 0.10.0, gtk+-3.0 is only needed to build a demo that isn't
# installed, so no need to depend on it
#BuildRequires:  pkgconfig(gtk+-3.0)
BuildRequires:  pkgconfig(libsoup-2.4)
BuildRequires:  pkgconfig(libsoup-gnome-2.4)
BuildRequires:  pkgconfig(libxml-2.0)
BuildRequires:  pkgconfig(oauth)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
libgdata is a GLib-based library for accessing online service APIs using
the GData protocol — most notably, Google's services. It provides APIs
to access the common Google services, and has full asynchronous support.

%package -n libgdata%{_sover}

License:        LGPLv2.1+
Summary:        GLib-based library for accessing online service APIs using the GData protocol
Group:          Development/Libraries/GNOME
Recommends:     %{name}-lang
# Needed for the lang package to be installable:
Provides:       %{name} = %{version}

%description -n libgdata%{_sover}
libgdata is a GLib-based library for accessing online service APIs using
the GData protocol — most notably, Google's services. It provides APIs
to access the common Google services, and has full asynchronous support.

%package devel
License:        LGPLv2.1+
Summary:        GLib-based library for accessing online service APIs using the GData protocol
Group:          Development/Libraries/GNOME
Requires:       libgdata%{_sover} = %{version}

%description devel
libgdata is a GLib-based library for accessing online service APIs using
the GData protocol — most notably, Google's services. It provides APIs
to access the common Google services, and has full asynchronous support.


%lang_package
%prep
%setup -q
translation-update-upstream

%build
%configure \
	--disable-static
%__make %{?jobs:-j%jobs}

%install
%makeinstall
find %{buildroot} -type f -name "*.la" -delete -print
%find_lang gdata

%clean
rm -rf %{buildroot}

%post -n libgdata%{_sover} -p /sbin/ldconfig

%postun -n libgdata%{_sover} -p /sbin/ldconfig

%files -n libgdata%{_sover}
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING HACKING NEWS README
%{_libdir}/*.so.%{_sover}*
%{_libdir}/girepository-1.0/GData-0.0.typelib

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

%files lang -f gdata.lang

%changelog
openSUSE Build Service is sponsored by