File libgdata.spec of Package libgdata.595

#
# spec file for package libgdata (Version 0.6.6)
#
# Copyright (c) 2010 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:  gobject-introspection-devel
BuildRequires:  intltool
BuildRequires:  libsoup-devel
License:        LGPLv2.1+
Group:          Development/Libraries/GNOME
Version:        0.6.6
Release:        1
Summary:        GLib-based library for accessing online service APIs using the GData protocol
Source:         %{name}-%{version}.tar.bz2
Source99:       baselibs.conf
# 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 libgdata7
License:        LGPLv2.1+
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 libgdata7
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:       libgdata7 = %{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 libgdata7 -p /sbin/ldconfig

%postun -n libgdata7 -p /sbin/ldconfig

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

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

%files lang -f gdata.lang

%changelog