File jgmenu.spec of Package jgmenu

#
# spec file for package jgmenu
#
# 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:           jgmenu
Version:        @SERVICE@
Release:        0
Summary:        Small X11 menu intended to be used with openbox and tint2
License:        GPL-2.0-only
Group:          System/X11/Utilities
URL:            https://github.com/johanmalm/jgmenu
Source:         %{name}-%{version}.tar.xz
# Needed for typelib() - Requires.
BuildRequires:  gobject-introspection
BuildRequires:  hicolor-icon-theme
BuildRequires:  pkgconfig
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(cairo)
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(libmenu-cache)
BuildRequires:  pkgconfig(librsvg-2.0)
BuildRequires:  pkgconfig(libxml-2.0)
BuildRequires:  pkgconfig(pango)
BuildRequires:  pkgconfig(pangocairo)
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(xinerama)
BuildRequires:  pkgconfig(xrandr)

%description
jgmenu is a simple X11 menu intended to be used with tint2 and openbox.

%prep
%autosetup
# E: env-script-interpreter
grep -rl '^#!' | xargs sed -i '/^#!/s/env.*py.*/python3/'

%build
%configure
%make_build prefix=%{_prefix}

%install
%make_install prefix=%{_prefix}
%suse_update_desktop_file -r %{name} Utility DesktopUtility

%files
%doc README.md
%{_bindir}/%{name}*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.??g
%{_libexecdir}/%{name}
%{_mandir}/man?/%{name}*.?%{ext_man}
%license LICENSE

%changelog
openSUSE Build Service is sponsored by