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 http://bugs.opensuse.org/
#
# 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
%description
Libmenu-cache is a library creating and utilizing caches to speed up
the manipulation for freedesktop.org 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
%prep
%setup
%build
export CFLAGS="$RPM_OPT_FLAGS"
export CXXFLAGS="$RPM_OPT_FLAGS"
%configure --disable-static
%__make %{?jobs:-j%{jobs}}
%install
%makeinstall
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
%clean
rm -rf "$RPM_BUILD_ROOT"
%files
%defattr(-,root,root)
%doc README AUTHORS COPYING
%{_libexecdir}/menu-cache-gen
%{_libexecdir}/menu-cached
%files devel
%defattr(-,root,root)
%dir %{_includedir}/menu-cache
%{_includedir}/menu-cache/menu-cache.h
%{_libdir}/libmenu-cache.so
%{_libdir}/pkgconfig/libmenu-cache.pc
%files -n libmenu-cache1
%defattr(-,root,root)
%{_libdir}/libmenu-cache.so.1
%{_libdir}/libmenu-cache.so.1.0.0
%changelog