File libslab.spec of Package libslab
#
# spec file for package libslab (Version 2.27.91)
#
# Copyright (c) 2009 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.27.91
Release: 4
License: GPL v2 or later
Summary: Library to create tile-based UI for GNOME
Group: Development/Libraries/GNOME
Source0: %{name}-%{version}.tar.bz2
# PATCH-FEATURE-UPSTREAM libslab-bnc187879-clear-recent-files.patch dliang@novell.com -- Add the ability to clear the recent-files, taken from git
Patch0: libslab-bnc187879-clear-recent-files.patch
# 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-bnc187879-fix-crash.patch dliang@novell.com -- Fix crash with clear-recent-files.patch when adding doc to favorites.
Patch2: libslab-bnc187879-fix-crash.patch
BuildRequires: gconf2-devel
BuildRequires: glib2-devel
BuildRequires: gnome-desktop-devel
BuildRequires: gnome-menus-devel
BuildRequires: gtk2-devel
BuildRequires: intltool
BuildRequires: librsvg-devel
Requires: %{name}-lang = %{version}
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: GPL v2 or later
Summary: Library to create tile-based UI for GNOME
Group: Development/Libraries/GNOME
Requires: %{name}-lang = %{version}
# 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: GPL v2 or later
Summary: Library to create tile-based UI for GNOME - Development Files
Group: Development/Libraries/GNOME
Requires: libslab0 = %{version}
Requires: gconf2-devel
Requires: glib2-devel
Requires: gnome-desktop-devel
Requires: gnome-menus-devel
Requires: gtk2-devel
Requires: librsvg-devel
# 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
%patch0 -p1
%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
%defattr(-, root, root)
# exclude locales which don't exist on openSUSE
%exclude %{_datadir}/locale/en_IGID/LC_MESSAGES/*
%changelog