## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 7; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global forgeurl https://github.com/bluesabre/menulibre Name: menulibre Version: 2.3.2 Release: %autorelease Summary: FreeDesktop.org compliant menu editor %global tag menulibre-%{version} %forgemeta # Automatically converted from old format: GPLv3 - review is highly recommended. License: GPL-3.0-only URL: https://bluesabre.org/projects/menulibre/ Source0: %{forgesource} BuildArch: noarch Requires: gnome-menus Requires: gtk3 Requires: hicolor-icon-theme Requires: python3-gobject Requires: python3-psutil Requires: xdg-utils BuildRequires: desktop-file-utils BuildRequires: gettext BuildRequires: intltool BuildRequires: libappstream-glib BuildRequires: gnome-menus BuildRequires: gtk3 BuildRequires: python3-devel BuildRequires: python3-pip BuildRequires: python3-setuptools BuildRequires: python3-wheel BuildRequires: python3-distutils-extra BuildRequires: python3-gobject BuildRequires: python3-psutil %py_provides python3-%{name} %py_provides python3-%{name}_lib %description MenuLibre is an advanced FreeDesktop.org compliant menu editor. All fields specified in the FreeDesktop.org Desktop Entry and Menu specifications are available to quickly update. Additionally, MenuLibre provides an editor for the launcher actions used by applications such as Unity and Plank. Features: - A beautiful interface powered by the latest version of GTK+. - Create new launchers, or modify existing ones with complete control over common settings and access to advanced settings. - Add, remove, and adjust desktop actions: powerful shortcuts available used by Unity, Xfce, and Pantheon. - Easily rearrange menu items to suit your needs. %prep %forgeautosetup %build rm uninstall.py %pyproject_wheel %install %pyproject_install # Remove hashbang line from non-executable library files for lib in %{buildroot}%{python3_sitelib}/%{name}{,_lib}/*.py; do sed '1{\@^#!/usr/bin/python3@d}' $lib > $lib.new && touch -r $lib $lib.new && mv $lib.new $lib done desktop-file-install \ --remove-key="OnlyShowIn" \ --delete-original \ --dir=%{buildroot}%{_datadir}/applications \ %{buildroot}/%{_datadir}/applications/%{name}.desktop %pyproject_save_files %{name} %{name}_lib %find_lang %{name} %check appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/%{name}.appdata.xml %py3_check_import menulibre menulibre_lib %files -f %{name}.lang -f %{pyproject_files} %doc AUTHORS NEWS README.md %license COPYING %{_bindir}/%{name} %{_bindir}/%{name}-menu-validate %{_datadir}/applications/%{name}.desktop %{_datadir}/icons/hicolor/*/apps/%{name}.* %{_datadir}/pixmaps/%{name}.png %{_metainfodir}/%{name}.appdata.xml %{_mandir}/man1/%{name}.1.* %{_mandir}/man1/%{name}-menu-validate.1.* %changelog ## START: Generated by rpmautospec * Mon Jul 29 2024 Miroslav Suchý - 2.3.2-7 - convert GPLv3 license to SPDX * Thu Jul 18 2024 Fedora Release Engineering - 2.3.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jun 07 2024 Python Maint - 2.3.2-5 - Rebuilt for Python 3.13 * Thu Jan 25 2024 Fedora Release Engineering - 2.3.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 2.3.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Tue Sep 12 2023 Lyes Saadi - 2.3.2-2 - Woopsi, a path changed * Tue Sep 12 2023 Lyes Saadi - 2.3.2-1 - Updating menulibre to 2.3.2 (fixes #2233705) * Thu Jul 20 2023 Fedora Release Engineering - 2.3.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Mon Jun 26 2023 Python Maint - 2.3.1-2 - Rebuilt for Python 3.12 * Mon Jun 19 2023 Lyes Saadi - 2.3.1-1 - Updating to 2.3.1 * Thu Jun 15 2023 Python Maint - 2.3.0-3 - Rebuilt for Python 3.12 * Thu Jan 19 2023 Fedora Release Engineering - 2.3.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Tue Nov 29 2022 Lyes Saadi - 2.3.0-1 - Updating to 2.3.0 (fix #2096289) * Thu Jul 21 2022 Fedora Release Engineering - 2.2.3-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 2.2.3-4 - Rebuilt for Python 3.11 * Thu Jan 20 2022 Fedora Release Engineering - 2.2.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Sun Oct 24 2021 Lyes Saadi - 2.2.3-2 - Resolving build dependency issues * Thu Jul 22 2021 Fedora Release Engineering - 2.2.1-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 2.2.1-7 - Rebuilt for Python 3.10 * Tue Jan 26 2021 Fedora Release Engineering - 2.2.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Sat Aug 08 2020 Lyes Saadi - 2.2.1-5 - Unretiring menulibre * Thu Oct 03 2019 Miro Hrončok - 2.2.1-4 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 2.2.1-3 - Rebuilt for Python 3.8 * Thu Jul 25 2019 Fedora Release Engineering - 2.2.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Jun 01 2019 My Karlsson - 2.2.1-1 - Update to version 2.2.1 * Tue Apr 02 2019 Troy Dawson - 2.2.0-7 - Rebuilt to change main python from 3.4 to 3.6 * Sat Feb 09 2019 My Karlsson - 2.2.0-6 - Fix for reading menulibre-menu-validate output on el7 * Sun Feb 03 2019 My Karlsson - 2.2.0-5 - Build for epel7 * Fri Feb 01 2019 Fedora Release Engineering - 2.2.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 2.2.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 2.2.0-2 - Rebuilt for Python 3.7 * Mon Mar 19 2018 My Karlsson - 2.2.0-1 - Update to upstream release 2.2.0 * Thu Feb 08 2018 Fedora Release Engineering - 2.1.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Mon Feb 05 2018 My Karlsson - 2.1.5-1 - Update to upstream release 2.1.5 * Sun Feb 04 2018 My Karlsson - 2.1.4-2 - Backport desktop detection fix * Sun Jan 21 2018 My Karlsson - 2.1.4-1 - Update to upstream release 2.1.4 * Thu Jan 18 2018 Igor Gnatenko - 2.1.3-6 - Remove obsolete scriptlets * Wed Jul 26 2017 Fedora Release Engineering - 2.1.3-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Feb 10 2017 Fedora Release Engineering - 2.1.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Dec 19 2016 Miro Hrončok - 2.1.3-3 - Rebuild for Python 3.6 * Tue Jul 19 2016 Fedora Release Engineering - 2.1.3-2 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Sun Apr 10 2016 My Karlsson - 2.1.3-1 - Update to upstream release 2.1.3. * Sun Mar 13 2016 My Karlsson - 2.1.2-4 - Fix a problem where adding a launcher and no directory was selected would emit a type error * Thu Feb 04 2016 Fedora Release Engineering - 2.1.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Tue Nov 10 2015 Fedora Release Engineering - 2.1.2-2 - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 * Sat Oct 10 2015 My Karlsson - 2.1.2-1 - Update to 2.1.2 * Sun May 31 2015 My Karlsson - 2.0.6-1 - Initial build ## END: Generated by rpmautospec