2009-12-26 12:40:36 +00:00
|
|
|
#
|
2011-12-08 15:58:55 +00:00
|
|
|
# spec file for package menu-cache
|
2009-12-26 12:40:36 +00:00
|
|
|
#
|
2020-11-13 14:57:34 +00:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2009-12-26 12:40:36 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2020-11-13 14:57:34 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2009-12-26 12:40:36 +00:00
|
|
|
#
|
|
|
|
|
2012-05-29 13:07:58 +00:00
|
|
|
|
2009-12-26 12:40:36 +00:00
|
|
|
Name: menu-cache
|
2017-11-03 10:07:10 +00:00
|
|
|
Version: 1.1.0
|
2011-12-08 15:58:55 +00:00
|
|
|
Release: 0
|
2013-09-09 08:05:17 +00:00
|
|
|
Summary: A tool speed up menus
|
2020-11-13 14:57:34 +00:00
|
|
|
License: GPL-2.0-or-later AND LGPL-2.1-or-later
|
2011-12-08 15:58:55 +00:00
|
|
|
Group: System/GUI/LXDE
|
2020-11-13 14:57:34 +00:00
|
|
|
URL: https://www.lxde.org
|
2017-11-03 10:07:10 +00:00
|
|
|
Source0: https://github.com/lxde/%{name}/archive/%{version}.tar.gz
|
2020-11-13 14:57:34 +00:00
|
|
|
# https://github.com/lxde/menu-cache/commit/583c1901719f2ef2aa3aa0034bd370983a7ed523
|
|
|
|
Patch0: upstream-libmenu-cache_Fix-memory-leaks.patch
|
|
|
|
# https://github.com/archlinux/svntogit-community/blob/packages/menu-cache/trunk/menu-cache-1.1.0-0001-Support-gcc10-compilation.patch
|
|
|
|
Patch1: https://raw.githubusercontent.com/archlinux/svntogit-community/packages/menu-cache/trunk/menu-cache-1.1.0-0001-Support-gcc10-compilation.patch
|
2017-11-03 10:07:10 +00:00
|
|
|
BuildRequires: automake
|
2014-10-23 17:33:43 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: gtk-doc
|
2013-09-09 08:05:17 +00:00
|
|
|
BuildRequires: gtk2-devel
|
2014-10-23 17:33:43 +00:00
|
|
|
BuildRequires: intltool
|
|
|
|
BuildRequires: libtool
|
2017-11-03 10:07:10 +00:00
|
|
|
#BuildRequires: m4
|
2014-09-09 07:27:33 +00:00
|
|
|
BuildRequires: pkgconfig(libfm-extra)
|
2009-12-26 12:40:36 +00:00
|
|
|
|
|
|
|
%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
|
|
|
|
Summary: Menu-cache Headers
|
2011-12-08 15:58:55 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2013-09-09 08:05:17 +00:00
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Requires: libmenu-cache3 = %{version}
|
|
|
|
Requires: pkgconfig(glib-2.0)
|
2014-10-23 17:33:43 +00:00
|
|
|
Requires: pkgconfig(libfm-extra)
|
2009-12-26 12:40:36 +00:00
|
|
|
|
|
|
|
%description devel
|
2013-09-09 08:05:17 +00:00
|
|
|
%{name} development files
|
2009-12-26 12:40:36 +00:00
|
|
|
|
2013-09-09 08:05:17 +00:00
|
|
|
%package -n libmenu-cache3
|
2009-12-26 12:40:36 +00:00
|
|
|
Summary: Menu-cache libraries
|
2011-12-08 15:58:55 +00:00
|
|
|
Group: System/Libraries
|
2009-12-26 12:40:36 +00:00
|
|
|
|
2013-09-09 08:05:17 +00:00
|
|
|
%description -n libmenu-cache3
|
|
|
|
%{name} libraries for development
|
2009-12-26 12:40:36 +00:00
|
|
|
|
|
|
|
%prep
|
2020-11-13 14:57:34 +00:00
|
|
|
%autosetup -p1
|
2017-11-03 10:07:10 +00:00
|
|
|
sh autogen.sh
|
2009-12-26 12:40:36 +00:00
|
|
|
|
|
|
|
%build
|
2013-09-09 08:05:17 +00:00
|
|
|
export CFLAGS="%{optflags}"
|
|
|
|
export CXXFLAGS="%{optflags}"
|
2009-12-26 12:40:36 +00:00
|
|
|
%configure --disable-static
|
2013-09-09 08:05:17 +00:00
|
|
|
make %{?_smp_mflags}
|
2009-12-26 12:40:36 +00:00
|
|
|
|
|
|
|
%install
|
2013-09-09 08:05:17 +00:00
|
|
|
%make_install
|
2014-10-23 17:33:43 +00:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
|
|
%fdupes %{buildroot}
|
2009-12-26 12:40:36 +00:00
|
|
|
|
2013-09-09 08:05:17 +00:00
|
|
|
%post -n libmenu-cache3 -p /sbin/ldconfig
|
2009-12-26 12:40:36 +00:00
|
|
|
|
2013-09-09 08:05:17 +00:00
|
|
|
%postun -n libmenu-cache3 -p /sbin/ldconfig
|
2009-12-26 12:40:36 +00:00
|
|
|
|
|
|
|
%files
|
2020-11-13 14:57:34 +00:00
|
|
|
%license COPYING
|
|
|
|
%doc README AUTHORS NEWS
|
2013-09-09 08:05:17 +00:00
|
|
|
%{_libexecdir}/%{name}
|
2009-12-26 12:40:36 +00:00
|
|
|
|
|
|
|
%files devel
|
2013-09-09 08:05:17 +00:00
|
|
|
%{_includedir}/%{name}
|
2009-12-26 12:40:36 +00:00
|
|
|
%{_libdir}/libmenu-cache.so
|
|
|
|
%{_libdir}/pkgconfig/libmenu-cache.pc
|
|
|
|
|
2013-09-09 08:05:17 +00:00
|
|
|
%files -n libmenu-cache3
|
|
|
|
%{_libdir}/libmenu-cache.so.3
|
2017-11-03 10:07:10 +00:00
|
|
|
%{_libdir}/libmenu-cache.so.3.2.0
|
2009-12-26 12:40:36 +00:00
|
|
|
|
|
|
|
%changelog
|