File libmediaart-1_0.spec of Package libmediaart-1_0

#
# spec file for package libmediaart-1_0
#
# 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/
#

%define _name libmediaart

Name:           libmediaart-1_0
Version:        0.7.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/0.7/%{_name}-%{version}.tar.xz
# PATCH-FIX-OPENSUSE change_gtk_doc_install_dir.patch sfalken@opensuse.org -- Fixes path for co-installability with libmediaart-1.9
Patch0:		change_gtk_doc_install_dir.patch
BuildRequires:  gcc-c++
BuildRequires:  vim
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
# Moved out of the way of libmediaart; the 'original package name' is used for the latest version
# this package is maintained for compatibility for packages that did not move to the new API yet
Obsoletes:      libmediaart < 1.9

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

%package -n libmediaart-1_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-1_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-1_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-1_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-1_0-0 = %{version}
Requires:       typelib-1_0-MediaArt-1_0 = %{version}
# Renamed from libmediaart-devel, for this package name is used by the latest release
Obsoletes:      libmediaart-devel < 1.9

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

%prep
%setup -q -n %{_name}-%{version}
%patch0 -p1

%build
%configure 
make %{?_smp_mflags}

%install
%make_install
find %{buildroot}%{_libdir} -type f -name '*.la' -delete -print

%post -n libmediaart-1_0-0 -p /sbin/ldconfig

%postun -n libmediaart-1_0-0 -p /sbin/ldconfig

%files -n libmediaart-1_0-0
%defattr(-,root,root)
%doc COPYING.LESSER
%{_libdir}/libmediaart-1.0.so.*

%files -n typelib-1_0-MediaArt-1_0
%defattr(-,root,root)
%{_libdir}/girepository-1.0/MediaArt-1.0.typelib

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

%changelog