File libmediaart.spec of Package libmediaart

#
# spec file for package libmediaart
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2013 Dominique Leuenberger, Amsterdam, The Netherlands
#
# 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:           libmediaart
Version:        1.9.4
Release:        0
# License note: src.rpm contains GPL-2.0+ (tests) and LGPL-2.1+ code
Summary:        Media Art extraction library
License:        GPL-2.0+ AND LGPL-2.1+
Group:          Productivity/Other
Url:            https://download.gnome.org/sources/libmediaart
Source:         http://download.gnome.org/sources/libmediaart/1.9/%{name}-%{version}.tar.xz

# PATCH-FIX-UPSTREAM meson-Introspection-fix.patch bgo#792272 robert.munteanu@gmail.com -- meson: Introspection fix
Patch1:         meson-Introspection-fix.patch

BuildRequires:  gcc-c++
BuildRequires:  gobject-introspection-devel >= 1.30.0
BuildRequires:  gtk-doc
BuildRequires:  meson
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(gdk-pixbuf-2.0) >= 2.12.0
BuildRequires:  pkgconfig(gio-2.0) >= 2.35.1
BuildRequires:  pkgconfig(gio-unix-2.0) >= 2.35.1
BuildRequires:  pkgconfig(glib-2.0) >= 2.35.1
BuildRequires:  pkgconfig(vapigen)

%description
The libmediaart library is the foundation for media art caching,
extraction and lookup for applications on the desktop.

%package -n libmediaart-2_0-0
# License note: the library is pure LGPL-2.1+
Summary:        Media Art extraction library
License:        LGPL-2.1+
Group:          System/Libraries

%description -n libmediaart-2_0-0
The libmediaart library is the foundation for media art caching,
extraction and lookup for applications on the desktop.

%package -n typelib-1_0-MediaArt-2_0
# License note: the library is pure LGPL-2.1+
Summary:        Media Art extraction library -- Introspection bindings
License:        LGPL-2.1+
Group:          System/Libraries

%description -n typelib-1_0-MediaArt-2_0
The libmediaart library is the foundation for media art caching,
extraction and lookup for applications on the desktop.

%package devel
# License note: the library is pure LGPL-2.1+
Summary:        Media Art extraction library
License:        LGPL-2.1+
Group:          Development/Languages/C and C++
Requires:       libmediaart-2_0-0 = %{version}
Requires:       typelib-1_0-MediaArt-2_0 = %{version}

%description devel
The libmediaart library is the foundation for media art caching,
extraction and lookup for applications on the desktop.

%prep
%setup -q
%patch1 -p1

%build
%{meson} \
	-Dimage_library=gdk-pixbuf \
	-Dwith-docs=yes \
	%{nil}
%{meson_build}

%install
%{meson_install}

%post -n libmediaart-2_0-0 -p /sbin/ldconfig
%postun -n libmediaart-2_0-0 -p /sbin/ldconfig

%files -n libmediaart-2_0-0
%doc COPYING.LESSER
%{_libdir}/libmediaart-2.0.so.*

%files -n typelib-1_0-MediaArt-2_0
%{_libdir}/girepository-1.0/MediaArt-2.0.typelib

%files devel
%doc %{_datadir}/gtk-doc/html/%{name}/
%{_datadir}/gir-1.0/MediaArt-2.0.gir
%{_libdir}/libmediaart-2.0.so
%{_libdir}/pkgconfig/libmediaart-2.0.pc
%{_includedir}/libmediaart-2.0/
%dir %{_datadir}/vala/vapi
%{_datadir}/vala/vapi/libmediaart-2.0.deps
%{_datadir}/vala/vapi/libmediaart-2.0.vapi

%changelog
openSUSE Build Service is sponsored by