File libslab.spec of Package libslab
#
# spec file for package libslab
#
# Copyright (c) 2011 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/
#
Name: libslab
Version: 2.30.0
Release: 13
License: GPLv2+
Summary: Library to create tile-based UI for GNOME
Group: Development/Libraries/GNOME
Source0: %{name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM libslab-bnc536778-fix-libslab-split.patch bnc#536778 mxwu@novell.com -- Look at the right place for the favorites
Patch1: libslab-bnc536778-fix-libslab-split.patch
# PATCH-FIX-UPSTREAM libslab-document-icon-missing.patch bnc#538917 dliang@novell.com -- Fix display of icons in document tab of the main menu. Note that the image_is_broken variable is actually useless (we just set it to be consistent)
Patch2: libslab-document-icon-missing.patch
BuildRequires: intltool
BuildRequires: translation-update-upstream
BuildRequires: pkgconfig(gconf-2.0)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gnome-desktop-2.0)
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: pkgconfig(libgnome-menu)
BuildRequires: pkgconfig(librsvg-2.0)
Recommends: %{name}-lang
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This library makes it easy to create tile-based UI for GNOME, as seen in
gnome-main-menu.
%package -n libslab0
License: GPLv2+
Summary: Library to create tile-based UI for GNOME
Group: Development/Libraries/GNOME
Recommends: %{name}-lang
# Needed to make lang package installable
Provides: %{name} = %{version}
# The library used to live in gnome-main-menu
Conflicts: gnome-main-menu < 0.9.13
%description -n libslab0
This library makes it easy to create tile-based UI for GNOME, as seen in
gnome-main-menu.
%package devel
License: GPLv2+
Summary: Library to create tile-based UI for GNOME - Development Files
Group: Development/Libraries/GNOME
Requires: libslab0 = %{version}
# The library used to live in gnome-main-menu
Provides: gnome-main-menu-devel = 0.9.12
Obsoletes: gnome-main-menu-devel <= 0.9.12
%description devel
This library makes it easy to create tile-based UI for GNOME, as seen in
gnome-main-menu.
%lang_package
%prep
%setup -q
translation-update-upstream
%patch1 -p1
%patch2 -p1
%build
%configure --disable-static
%__make %{?jobs:-j%jobs}
%install
%makeinstall
find %{buildroot} -type f -name "*.la" -delete -print
%find_lang %{name}
%clean
%{__rm} -rf %{buildroot}
%post -n libslab0 -p /sbin/ldconfig
%postun -n libslab0 -p /sbin/ldconfig
%files -n libslab0
%defattr(-, root, root)
%doc ChangeLog
%{_libdir}/*.so.*
%files devel
%defattr(-, root, root)
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_includedir}/libslab/
%files lang -f %{name}.lang
%changelog