File menu-cache.spec of Package menu-cache
#
# spec file for package menu-cache
#
# Copyright (c) 2012 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: menu-cache
Version: 0.4.1
Release: 0
Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: chrpath
BuildRequires: gtk2-devel
BuildRequires: pkgconfig
Summary: A tool speed up menus
License: GPL-2.0+ and LGPL-2.1+
Group: System/GUI/LXDE
Url: http://www.lxde.org
%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
Requires: %name = %version
Requires: glib2-devel
Requires: libmenu-cache2 = %version
Summary: Menu-cache Headers
Group: Development/Libraries/C and C++
%description devel
%name development files
%package -n libmenu-cache2
Summary: Menu-cache libraries
Group: System/Libraries
%description -n libmenu-cache2
%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-cache2 -p /sbin/ldconfig
%postun -n libmenu-cache2 -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-cache2
%defattr(-,root,root)
%{_libdir}/libmenu-cache.so.2
%{_libdir}/libmenu-cache.so.2.0.0
%changelog