SHA256
1
0
forked from pool/menu-cache
Files
menu-cache/menu-cache.spec
Michael Vetter 9af1e622b7 Accepting request 848295 from home:munix9
- Added upstream-libmenu-cache_Fix-memory-leaks.patch
  * libmenu-cache: Fix memory leaks
- Added menu-cache-1.1.0-0001-Support-gcc10-compilation.patch
  * gcc10 now defaults to -fno-common, and with gcc10 menu-cache
    compilation fails with "multiple definition of ..."

OBS-URL: https://build.opensuse.org/request/show/848295
OBS-URL: https://build.opensuse.org/package/show/X11:lxde/menu-cache?expand=0&rev=65
2020-11-13 14:57:34 +00:00

97 lines
2.9 KiB
RPMSpec

#
# spec file for package menu-cache
#
# Copyright (c) 2020 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
Name: menu-cache
Version: 1.1.0
Release: 0
Summary: A tool speed up menus
License: GPL-2.0-or-later AND LGPL-2.1-or-later
Group: System/GUI/LXDE
URL: https://www.lxde.org
Source0: https://github.com/lxde/%{name}/archive/%{version}.tar.gz
# 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
BuildRequires: automake
BuildRequires: fdupes
BuildRequires: gtk-doc
BuildRequires: gtk2-devel
BuildRequires: intltool
BuildRequires: libtool
#BuildRequires: m4
BuildRequires: pkgconfig(libfm-extra)
%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
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
Requires: libmenu-cache3 = %{version}
Requires: pkgconfig(glib-2.0)
Requires: pkgconfig(libfm-extra)
%description devel
%{name} development files
%package -n libmenu-cache3
Summary: Menu-cache libraries
Group: System/Libraries
%description -n libmenu-cache3
%{name} libraries for development
%prep
%autosetup -p1
sh autogen.sh
%build
export CFLAGS="%{optflags}"
export CXXFLAGS="%{optflags}"
%configure --disable-static
make %{?_smp_mflags}
%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
%fdupes %{buildroot}
%post -n libmenu-cache3 -p /sbin/ldconfig
%postun -n libmenu-cache3 -p /sbin/ldconfig
%files
%license COPYING
%doc README AUTHORS NEWS
%{_libexecdir}/%{name}
%files devel
%{_includedir}/%{name}
%{_libdir}/libmenu-cache.so
%{_libdir}/pkgconfig/libmenu-cache.pc
%files -n libmenu-cache3
%{_libdir}/libmenu-cache.so.3
%{_libdir}/libmenu-cache.so.3.2.0
%changelog