File menu-cache.spec of Package menu-cache

# spec file for package menu-cache (Version 0.3.2)
# Copyright (c) 2010 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

# norootforbuild

Name:           menu-cache
Version:        0.3.2
Release:        7
License:        GPL
Source0:        %{name}-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  chrpath gtk2-devel pkgconfig
Group:          System/GUI/LXDE
Summary:        A tool speed up menus 

Libmenu-cache is a library creating and utilizing caches to speed up
the manipulation for defined application menus.
It can be used as a replacement of libgnome-menu of gnome-menus.

%package devel
License:        GPL
Group:          Development/Libraries/C and C++
Requires:       glib2-devel
Requires:       %name = %version
Requires:       libmenu-cache1 = %version
Summary:        Menu-cache Headers

%description devel

%name development files
%package -n libmenu-cache1
License:        GPL
Group:          System/Libraries
Summary:        Menu-cache libraries

%description  -n libmenu-cache1

%name libraries for development

%configure --disable-static
%__make %{?jobs:-j%{jobs}}

find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
chrpath --delete $RPM_BUILD_ROOT%{_libexecdir}/menu-cache-gen

%post -n libmenu-cache1 -p /sbin/ldconfig

%postun -n libmenu-cache1 -p /sbin/ldconfig

rm -rf "$RPM_BUILD_ROOT"


%files devel
%dir %{_includedir}/menu-cache

%files -n libmenu-cache1

openSUSE Build Service is sponsored by