File libgdata.spec of Package libgdata
#
# spec file for package libgdata (Version 0.4.0)
#
# Copyright (c) 2009 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/
#
# norootforbuild
Name: libgdata
BuildRequires: glib2-devel
BuildRequires: intltool
BuildRequires: libsoup-devel
License: LGPL v2.1 or later
Group: Development/Libraries/GNOME
Version: 0.4.0
Release: 1
Summary: GLib-based library for accessing online service APIs using the GData protocol
Source: %{name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM libgdata-validate-ssl-cert.patch bnc#752088 CVE-2012-1177 vuntz@opensuse.org -- validate ssl certificates for all connections
Patch0: libgdata-validate-ssl-cert.patch
# Needed for patch0
BuildRequires: gnome-common
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 libgdata5
License: LGPL v2.1 or later
Summary: GLib-based library for accessing online service APIs using the GData protocol
Group: Development/Libraries/GNOME
Requires: %{name}-lang = %{version}
# Needed for the lang package to be installable:
Provides: %{name} = %{version}
%description -n libgdata5
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: LGPL v2.1 or later
Summary: GLib-based library for accessing online service APIs using the GData protocol
Group: Development/Libraries/GNOME
Requires: libgdata5 = %{version}
Requires: glib2-devel
Requires: libsoup-devel
Requires: libxml2-devel
%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
%patch0 -p1
#Needed for patch0
NOCONFIGURE=1 gnome-autogen.sh
%build
%configure \
--disable-static \
--with-ca-certs=/etc/ssl/ca-bundle.pem
%__make %{?jobs:-j%jobs}
%install
%makeinstall
find %{buildroot} -type f -name "*.la" -delete -print
%find_lang gdata
%clean
rm -rf %{buildroot}
%post -n libgdata5 -p /sbin/ldconfig
%postun -n libgdata5 -p /sbin/ldconfig
%files -n libgdata5
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING.LIB HACKING NEWS README
%{_libdir}/*.so.*
%files devel
%defattr(-,root,root)
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_datadir}/gtk-doc/html/gdata
%files lang -f gdata.lang
%changelog