Files
libgdata/libgdata.spec
Dominique Leuenberger d58d933f55 Accepting request 1155223 from GNOME:Next
- Drop baselibs.conf: the -32bit packages are no longer needed and
  have not been part of Tumbleweed for a while already (build for
  i586 only enabled in LegacyX86).

- Add explicit pkgconfig(gtk+-3.0) BuildRequires: meson checks for
  it and we just relied on it being brought in indirectly.

OBS-URL: https://build.opensuse.org/request/show/1155223
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/libgdata?expand=0&rev=108
2024-03-05 14:21:25 +00:00

126 lines
3.9 KiB
RPMSpec

#
# spec file for package libgdata
#
# Copyright (c) 2024 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%define _sover 22
Name: libgdata
Version: 0.18.1
Release: 0
Summary: GLib-based library for accessing online service APIs using the GData protocol
License: LGPL-2.1-or-later
Group: Development/Libraries/GNOME
URL: http://live.gnome.org/libgdata
Source: https://download.gnome.org/sources/libgdata/0.18/%{name}-%{version}.tar.xz
# PATCH-FIX-UPSTREAM 47.patch -- build: Build against new gcr-4 library
Patch0: 47.patch
BuildRequires: gobject-introspection-devel
BuildRequires: gtk-doc
BuildRequires: meson
BuildRequires: pkgconfig
BuildRequires: pkgconfig(gcr-4)
BuildRequires: pkgconfig(gio-2.0) >= 2.38.0
BuildRequires: pkgconfig(goa-1.0) >= 3.8
BuildRequires: pkgconfig(gtk+-3.0) >= 2.91.2
BuildRequires: pkgconfig(json-glib-1.0) >= 0.15
BuildRequires: pkgconfig(libsoup-2.4) >= 2.55.90
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(vapigen)
%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}
Summary: GLib-based library for accessing online service APIs using the GData protocol
# Needed for the lang package to be installable:
Group: System/Libraries
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 -n typelib-1_0-GData-0_0
Summary: Introspection bindings for libgdata
Group: System/Libraries
%description -n typelib-1_0-GData-0_0
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.
This package provides the GObject Introspection bindings for the
libgdata library.
%package devel
Summary: Development files for libgdata, a library for accessing online service APIs
Group: Development/Libraries/GNOME
Requires: libgdata%{_sover} = %{version}
Requires: typelib-1_0-GData-0_0 = %{version}
%description devel
libgdata is a GLib-based library for accessing online service APIs using
the GData protocol.
This subpackage contains the header files for developing
applications that want to make use of libgdata.
%lang_package
%prep
%autosetup -p1
%build
%meson \
-Dalways_build_tests=false \
-Dinstalled_tests=false \
-Dgtk_doc=true \
-Dvapi=true \
-Doauth1=disabled \
%{nil}
%meson_build
%install
%meson_install
%find_lang gdata
%post -n libgdata%{_sover} -p /sbin/ldconfig
%postun -n libgdata%{_sover} -p /sbin/ldconfig
%files -n libgdata%{_sover}
%license COPYING
%doc AUTHORS HACKING NEWS README
%{_libdir}/%{name}.so.*
%files -n typelib-1_0-GData-0_0
%{_libdir}/girepository-1.0/GData-0.0.typelib
%files devel
%{_includedir}/libgdata/
%{_libdir}/*.so
%{_libdir}/pkgconfig/libgdata.pc
%{_datadir}/gir-1.0/*.gir
%doc %{_datadir}/gtk-doc/html/gdata/
%{_datadir}/vala/vapi/%{name}.*
%files lang -f gdata.lang
%changelog