File libmediaart.spec of Package libmediaart
#
# spec file for package libmediaart
#
# Copyright (c) 2014 SUSE LINUX Products 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.0
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
BuildRequires: gcc-c++
BuildRequires: gobject-introspection-devel >= 1.30.0
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
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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
%build
%configure
make %{?_smp_mflags}
%install
%make_install
find %{buildroot}%{_libdir} -type f -name '*.la' -delete -print
%post -n libmediaart-2_0-0 -p /sbin/ldconfig
%postun -n libmediaart-2_0-0 -p /sbin/ldconfig
%files -n libmediaart-2_0-0
%defattr(-,root,root)
%doc COPYING.LESSER
%{_libdir}/libmediaart-2.0.so.*
%files -n typelib-1_0-MediaArt-2_0
%defattr(-,root,root)
%{_libdir}/girepository-1.0/MediaArt-2.0.typelib
%files devel
%defattr(-,root,root)
%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/
%changelog