File compiz-boxmenu.spec of Package compiz-boxmenu

#
# spec file for package compiz-boxmenu
#
# Copyright (c) 2016 SUSE LINUX 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:           compiz-boxmenu
Version:        1.1.12
Release:        0
Summary:        Desktop menu for Compiz
License:        GPL-2.0+
Group:          System/GUI/Other
Url:            https://github.com/compiz-reloaded/compiz-boxmenu
Source:         https://github.com/compiz-reloaded/%{name}/releases/download/%{version}/%{name}-%{version}.tar.xz
Patch0:         gtk3.patch
Patch1:         clang.patch
Patch2:         python3.patch
Patch3:         gerror.patch
Patch4:         cross.patch
Patch5:         flags.patch
Patch6:         desktop.patch
BuildRequires:  hicolor-icon-theme
BuildRequires:  m4
BuildRequires:  pkgconfig
BuildRequires:  python
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(dbus-glib-1)
BuildRequires:  gtk3-devel
BuildRequires:  libwnck-devel
Requires:       python3
Requires:       python311-pyxdg
Requires:       python311-lxml
Requires:       python311-gobject
Requires:       python311-gobject-cairo
Requires:       python311-gobject-Gdk

%description
A desktop menu for Compiz which introduces extensive icon support,
pipeitems, recent documents list, and more.

%prep
%setup -q
%autopatch -p1

%build
make %{?_smp_mflags} V=1 \
  CFLAGS="%{optflags}"

%install
%make_install \
  PREFIX=%{_prefix}

%suse_update_desktop_file -r Compiz-Boxmenu-Editor Utility DesktopUtility

%if 0%{?suse_version} < 1500
%post
%desktop_database_post
%icon_theme_cache_post

%postun
%desktop_database_postun
%icon_theme_cache_postun
%endif

%files
%defattr(-,root,root)
%doc README
%dir %{_sysconfdir}/xdg/compiz/
%dir %{_sysconfdir}/xdg/compiz/boxmenu/
%config %{_sysconfdir}/xdg/compiz/boxmenu/*
%{_bindir}/%{name}*
%{_datadir}/cb-editor/
%{_datadir}/dbus-1/services/*boxmenu.service
%{_datadir}/applications/Compiz-Boxmenu-Editor.desktop
%{_datadir}/icons/hicolor/*/apps/cbmenu.*
%{_mandir}/man1/%{name}*.1%{?ext_man}

%changelog
openSUSE Build Service is sponsored by