raveit65 51c9b27
%global debug_package %{nil}
raveit65 51c9b27
%global _name   mate_menu
raveit65 51c9b27
raveit65 51c9b27
Name:           mate-menu
raveit65 ddda2ef
Version:        20.04.3
09990bb
Release:        15%{?dist}
raveit65 51c9b27
Summary:        Advanced Menu for the MATE Desktop
raveit65 51c9b27
# mate_menu/keybinding.py use MIT license and the rest is under GPLv2+
raveit65 51c9b27
License:        GPLv2+ and MIT
raveit65 51c9b27
BuildArch:      noarch
raveit65 06095c6
Url:            https://github.com/ubuntu-mate/%{name}
raveit65 06095c6
# downloading the tarball
raveit65 06095c6
# spectool -g mate-menu.spec
raveit65 769cbd3
Source0:        %url/archive/%{version}/%{name}-%{version}.tar.gz
raveit65 51c9b27
raveit65 51c9b27
Patch1:         mate-menu_adjust-package-manager.patch
raveit65 51c9b27
Patch2:         mate-menu_default-applications.patch
raveit65 51c9b27
raveit65 51c9b27
BuildRequires:  gobject-introspection-devel
raveit65 51c9b27
BuildRequires:  intltool
raveit65 5c1d4c6
BuildRequires:  python3-devel
raveit65 5c1d4c6
BuildRequires:  python3-distutils-extra
raveit65 5c1d4c6
BuildRequires:  python3-setuptools
raveit65 51c9b27
BuildRequires:  desktop-file-utils
raveit65 51c9b27
raveit65 51c9b27
Requires:       mate-menus
raveit65 51c9b27
Requires:       mozo
raveit65 5c1d4c6
Requires:       python3-configobj
raveit65 5c1d4c6
Requires:       python3-gobject
raveit65 5c1d4c6
Requires:       python3-pyxdg
raveit65 5c1d4c6
Requires:       python3-xlib
raveit65 5c1d4c6
Requires:       python3-setproctitle
raveit65 5c1d4c6
Requires:       python3-unidecode
a870f49
Requires:       beesu
raveit65 51c9b27
Requires:       mate-panel
raveit65 51c9b27
raveit65 51c9b27
raveit65 51c9b27
%description
raveit65 51c9b27
An advanced menu for MATE. Supports filtering, favorites,
raveit65 51c9b27
auto-session, and many other features.
raveit65 51c9b27
This menu originated in the Linux Mint distribution and has
raveit65 51c9b27
been ported to other distributions that ship the MATE Desktop
raveit65 51c9b27
Environment.
raveit65 51c9b27
raveit65 51c9b27
raveit65 51c9b27
%prep
raveit65 06095c6
%setup -q
raveit65 06095c6
raveit65 06095c6
%patch1 -p1 -b .adjust-package-manager
raveit65 06095c6
%patch2 -p1 -b .default-applications
raveit65 51c9b27
raveit65 51c9b27
# xdg-su isn't available in fedora
raveit65 51c9b27
sed -i 's/xdg-su/beesu/g' %{_name}/execute.py
raveit65 51c9b27
raveit65 51c9b27
%build
raveit65 5c1d4c6
%py3_build
raveit65 51c9b27
raveit65 51c9b27
%install
raveit65 5c1d4c6
%py3_install
raveit65 51c9b27
raveit65 039a70a
# Manually invoke the python byte compile macro for each path that needs byte
raveit65 039a70a
# compilation.
raveit65 039a70a
%py_byte_compile %{python3} %{buildroot}%{_usr}/lib/%{name}/*.py
raveit65 039a70a
raveit65 51c9b27
# avoid rpmlint invalid-lc-messages-dir and incorrect-locale-subdir errors
raveit65 51c9b27
rm -rf %{buildroot}%{_datadir}/locale/ber
raveit65 51c9b27
rm -rf %{buildroot}%{_datadir}/locale/es_419/LC_MESSAGES/mate-menu.mo
raveit65 51c9b27
rm -rf %{buildroot}%{_datadir}/locale/es_419/LC_MESSAGES/mate-menu.mo
raveit65 51c9b27
rm -rf %{buildroot}%{_datadir}/locale/nah/LC_MESSAGES/mate-menu.mo
raveit65 51c9b27
rm -rf %{buildroot}%{_datadir}/locale/zh-Hans/LC_MESSAGES/mate-menu.mo
raveit65 51c9b27
rm -rf %{buildroot}%{_datadir}/locale/zh-Hans/
raveit65 51c9b27
raveit65 51c9b27
%find_lang %{name}
raveit65 51c9b27
raveit65 51c9b27
raveit65 51c9b27
%files -f %{name}.lang
raveit65 51c9b27
%doc README.md
raveit65 51c9b27
%license COPYING
raveit65 51c9b27
%{_bindir}/%{name}
raveit65 769cbd3
%{_usr}/lib/%{name}/
raveit65 5c1d4c6
%{python3_sitelib}/%{_name}/
raveit65 5c1d4c6
%{python3_sitelib}/%{_name}-*-py3.*.egg-info/
raveit65 51c9b27
%{_datadir}/%{name}/
raveit65 51c9b27
%{_datadir}/glib-2.0/schemas/org.mate.mate-menu*.gschema.xml
raveit65 51c9b27
%{_datadir}/mate-panel/applets/org.mate.panel.MateMenuApplet.mate-panel-applet
raveit65 51c9b27
%{_datadir}/dbus-1/services/org.mate.panel.applet.MateMenuAppletFactory.service
raveit65 51c9b27
%{_mandir}/man1/mate-menu.1.*
raveit65 51c9b27
raveit65 51c9b27
raveit65 51c9b27
%changelog
09990bb
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 20.04.3-15
09990bb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
09990bb
5e1833c
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 20.04.3-14
5e1833c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
5e1833c
7ea5ee2
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 20.04.3-13
7ea5ee2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
7ea5ee2
50275ef
* Thu Jun 15 2023 Python Maint <python-maint@redhat.com> - 20.04.3-12
50275ef
- Rebuilt for Python 3.12
50275ef
fc8c00c
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 20.04.3-11
fc8c00c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
fc8c00c
79e21d9
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 20.04.3-10
79e21d9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
79e21d9
8a0d917
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 20.04.3-9
8a0d917
- Rebuilt for Python 3.11
8a0d917
e6f62dd
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 20.04.3-8
e6f62dd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
e6f62dd
6244c84
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 20.04.3-7
6244c84
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
6244c84
1d6f555
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 20.04.3-6
1d6f555
- Rebuilt for Python 3.10
1d6f555
98b11ae
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 20.04.3-5
98b11ae
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
98b11ae
raveit65 039a70a
* Mon Aug 03 2020 Wolfgang Ulbrich <fedora@raveit.de> - 20.04.3-4
raveit65 039a70a
- fix python pain
raveit65 039a70a
- fix rhbz (#1864117)
raveit65 039a70a
486e118
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 20.04.3-3
486e118
- Second attempt - Rebuilt for
486e118
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
486e118
4ac8a4f
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 20.04.3-2
4ac8a4f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
4ac8a4f
raveit65 4662d1f
* Sun Jun 07 2020 Wolfgang Ulbrich <fedora@raveit.de> - 20.04.3-1
raveit65 ddda2ef
- update to 20.04.3
raveit65 ddda2ef
dc85aab
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 19.04.0-6
dc85aab
- Rebuilt for Python 3.9
dc85aab
c9cbb92
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 19.04.0-5
c9cbb92
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
c9cbb92
dff6c05
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 19.04.0-4
dff6c05
- Rebuilt for Python 3.8.0rc1 (#1748018)
dff6c05
7f7eeb7
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 19.04.0-3
7f7eeb7
- Rebuilt for Python 3.8
7f7eeb7
3cbea66
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 19.04.0-2
3cbea66
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
3cbea66
raveit65 769cbd3
* Thu Mar 28 2019 Wolfgang Ulbrich <fedora@raveit.de> - 19.04.0-1
raveit65 769cbd3
- update to 19.04.0
raveit65 769cbd3
cf60f29
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 18.04.3-3
cf60f29
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
cf60f29
raveit65 5c1d4c6
* Sun Nov 11 2018 Wolfgang Ulbrich <fedora@raveit.de> - 18.04.3-2
raveit65 5c1d4c6
- switch to python3
raveit65 5c1d4c6
raveit65 06095c6
* Sat Nov 10 2018 Wolfgang Ulbrich <fedora@raveit.de> - 18.04.3-1
raveit65 06095c6
- update to 18.04.3
raveit65 06095c6
2ce1f32
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 17.10.1-6
2ce1f32
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
2ce1f32
f4c3d74
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 17.10.1-5
f4c3d74
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
f4c3d74
2c21b8c
* Thu Jan 18 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 17.10.1-4
2c21b8c
- Remove obsolete scriptlets
2c21b8c
aeb1b06
* Tue Jan 09 2018 Iryna Shcherbina <ishcherb@redhat.com> - 17.10.1-3
aeb1b06
- Update Python 2 dependency declarations to new packaging standards
aeb1b06
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
aeb1b06
fc091e4
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 17.10.1-2
fc091e4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
fc091e4
a870f49
* Tue Apr 04 2017 Wolfgang Ulbrich <chat-to-me@raveit.de> - 17.10.1-1
a870f49
- update to 17.10.1
a870f49
9dc4260
* Thu Mar 23 2017 Björn Esser <besser82@fedoraproject.org> - 16.10.1-5
9dc4260
- Update package-manager from yumex-dnf to dnfdragora
9dc4260
e6a2376
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 16.10.1-4
e6a2376
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
e6a2376
raveit65 18cc60b
* Sun Dec 04 2016 Wolfgang Ulbrich <chat-to-me@raveit.de> - 16.10.1-3
raveit65 18cc60b
- remove depedency to beesu to avoid spam in maintainers mailbox
raveit65 18cc60b
raveit65 51c9b27
* Wed Oct 12 2016 Wolfgang Ulbrich <chat-to-me@raveit.de> - 16.10.1-2
raveit65 51c9b27
- add a note about licensing
raveit65 51c9b27
raveit65 51c9b27
* Thu Aug 04 2016 Wolfgang Ulbrich <chat-to-me@raveit.de> - 16.10.1-1
raveit65 51c9b27
- Initial package
raveit65 51c9b27