Name: mate-menus
Version: 1.26.0
Release: 5%{?dist}
Summary: Displays menus for MATE Desktop
License: GPLv2+ and LGPLv2+
URL: http://mate-desktop.org
Source0: http://pub.mate-desktop.org/releases/1.26/%{name}-%{version}.tar.xz
# add commits from 1.26 branch
# https://github.com/mate-desktop/mate-menus/commit/d9059fb
Patch1: mate-menus_0001-Let-user-disable-collection-menu-entry-disable-colle.patch
# https://github.com/mate-desktop/mate-menus/commit/6207251
Patch2: mate-menus_0002-fix-build-error-invalid-operands-to-binary-expressio.patch
BuildRequires: make
BuildRequires: gobject-introspection-devel
BuildRequires: mate-common
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
%description
Displays menus for MATE Desktop
%package libs
Summary: Shared libraries for mate-menus
Requires: %{name}%{?_isa} = %{version}-%{release}
%description libs
Shared libraries for mate-menus
%package preferences-category-menu
Summary: Categories for the preferences menu
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
%description preferences-category-menu
Categories for the preferences menu
%package devel
Summary: Development files for mate-menus
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
%description devel
Development files for mate-menus
%prep
%autosetup -p1
# fedora specific
# fix for usage of multimedia-menus, games-menu and wine-menu packages
sed -i -e '// a\ applications-merged/multimedia-categories.menu' layout/mate-applications.menu
sed -i -e '/applications-merged\/multimedia-categories.menu<\/MergeFile>/ a\ applications-merged/games-categories.menu' layout/mate-applications.menu
sed -i -e '/applications-merged\/games-categories.menu<\/MergeFile>/ a\ applications-merged/wine.menu' layout/mate-applications.menu
# Patch1
NOCONFIGURE=1 ./autogen.sh
%build
%configure \
--disable-static \
--enable-introspection=yes \
--disable-collection
make %{?_smp_mflags} V=1
%install
%{make_install}
find %{buildroot} -name '*.la' -exec rm -f {} ';'
find %{buildroot} -name '*.a' -exec rm -f {} ';'
%find_lang %{name} --with-gnome --all-name
%files -f %{name}.lang
%doc AUTHORS COPYING README
%config %{_sysconfdir}/xdg/menus/mate-applications.menu
%config %{_sysconfdir}/xdg/menus/mate-settings.menu
%{_datadir}/mate-menus
%{_datadir}/mate/desktop-directories
%files preferences-category-menu
%config %{_sysconfdir}/xdg/menus/mate-preferences-categories.menu
%files libs
%{_libdir}/girepository-1.0/MateMenu-2.0.typelib
%{_libdir}/libmate-menu.so.2
%{_libdir}/libmate-menu.so.2.4.9
%files devel
%{_datadir}/gir-1.0/MateMenu-2.0.gir
%{_libdir}/libmate-menu.so
%{_includedir}/mate-menus
%{_libdir}/pkgconfig/libmate-menu.pc
%changelog
* Thu Jul 21 2022 Fedora Release Engineering - 1.26.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Sat Jul 09 2022 Wolfgang Ulbrich - 1.26.0-4
- add commits from 1.26 branch
* Thu Jan 20 2022 Fedora Release Engineering - 1.26.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Sat Nov 13 2021 Wolfgang Ulbrich - 1.26.0-2
- use https://github.com/mate-desktop/mate-menus/commit/d9059fb
- disable collection menu
* Wed Aug 04 2021 Wolfgang Ulbrich - 1.26.0-1
- update to 1.26.0
* Thu Jul 22 2021 Fedora Release Engineering - 1.24.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Tue Jan 26 2021 Fedora Release Engineering - 1.24.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Thu Aug 13 2020 Wolfgang Ulbrich - 1.24.1-1
- test 1.24.1
* Tue Jul 28 2020 Fedora Release Engineering - 1.24.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Mon Mar 02 2020 Wolfgang Ulbrich - 1.24.0-2
- use https://github.com/mate-desktop/mate-menus/pull/77
- fix icons in panel menu with pt and pt_BR locale
- fix rhbz (#1808522)
* Mon Feb 10 2020 Wolfgang Ulbrich - 1.24.0-1
- update to 1.24.0
* Sun Feb 02 2020 Wolfgang Ulbrich - 1.23.0-1
- update to 1.23.0
* Wed Jan 29 2020 Fedora Release Engineering - 1.22.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Sat Sep 21 2019 Wolfgang Ulbrich - 1.22.1-1
- update to 1.22.1
* Thu Jul 25 2019 Fedora Release Engineering - 1.22.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Mon Mar 04 2019 Wolfgang Ulbrich - 1.22.0-1
- update to 1.22.0
* Fri Feb 01 2019 Fedora Release Engineering - 1.20.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Thu Dec 20 2018 Wolfgang Ulbrich - 1.20.2-1
- update to 1.20.2
* Fri Jul 13 2018 Fedora Release Engineering - 1.20.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Fri Jun 15 2018 Wolfgang Ulbrich - 1.20.1-1
- update to 1.20.1 release
* Sun Feb 11 2018 Wolfgang Ulbrich - 1.20.0-1
- update to 1.20.0 release
- update python rpm macros for f28
- switch to using autosetup
* Thu Feb 08 2018 Fedora Release Engineering - 1.19.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Fri Oct 13 2017 Wolfgang Ulbrich - 1.19.0-1
- update to 1.19.0 release
* Thu Aug 03 2017 Fedora Release Engineering - 1.18.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
* Wed Jul 26 2017 Fedora Release Engineering - 1.18.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Fri Jul 07 2017 Igor Gnatenko - 1.18.0-2
- Rebuild due to bug in RPM (RHBZ #1468476)
* Sun May 14 2017 Wolfgang Ulbrich - 1.18.0-1
- bump version
* Tue Mar 14 2017 Wolfgang Ulbrich - 1.18.0-0
- update to 1.18.0 release
* Fri Feb 10 2017 Fedora Release Engineering - 1.17.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Sun Jan 15 2017 Wolfgang Ulbrich - 1.17.0-1
- update to 1.17.0 release
* Wed Sep 21 2016 Wolfgang Ulbrich - 1.16.0-1
- update to 1.16.0 release
* Tue Jul 19 2016 Fedora Release Engineering - 1.15.0-2
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
* Thu Jun 09 2016 Wolfgang Ulbrich - 1.15.0-1
- update to 1.15.0 release
* Tue Apr 05 2016 Wolfgang Ulbrich - 1.14.0-1
- update to 1.14.0 release
* Sun Feb 07 2016 Wolfgang Ulbrich - 1.13.0-1
- update to 1.13.0 release
* Thu Feb 04 2016 Fedora Release Engineering - 1.12.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Sun Dec 27 2015 Wolfgang Ulbrich - 1.12.0-13
- add mate-menus-preferences-category-menu as a subpackage again
* Wed Dec 02 2015 Rex Dieter 1.12.0-2
- drop Obsoletes: mate-menus-preferences-category-menu, belongs in mate-control-center (#1287845)
* Fri Nov 06 2015 Wolfgang Ulbrich - 1.12.0-1
- update to 1.12.0 release
- mate-menus-preferences-category-menu is moved to mate-control-center
* Thu Oct 22 2015 Wolfgang Ulbrich - 1.11.0-1
- update to 1.11.0 release
* Wed Jun 17 2015 Fedora Release Engineering - 1.10.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Wed Apr 22 2015 Wolfgang Ulbrich - 1.10.0-1
- update to 1.10.0 release
* Mon Mar 02 2015 Wolfgang Ulbrich - 1.9.90-1
- update to 1.9.90 release
* Tue Nov 11 2014 Wolfgang Ulbrich - 1.9.1-1
- update to 1.9.1 release
* Sun Aug 17 2014 Fedora Release Engineering - 1.9.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
* Sat Jul 12 2014 Wolfgang Ulbrich - 1.9.0-1
- update to 1.9.0 release
* Sun Jun 22 2014 Wolfgang Ulbrich - 1.8.0-3
- final fix for games-menu
- try fix wine-menu
* Sat Jun 07 2014 Fedora Release Engineering - 1.8.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Wed Mar 05 2014 Dan Mashal - 1.8.0-1
- Update to 1.8.0
* Sun Feb 16 2014 Wolfgang Ulbrich - 1.7.90-1
- update to 1.7.90 release
* Mon Jan 20 2014 Wolfgang Ulbrich 1.7.1-1
- update to 1.7.1 release
- add missing changelog entry from previous build
- add --with-gnome --all-name for find language
- use modern 'make install' macro
* Fri Dec 06 2013 Dan Mashal - 1.7.0-1
- update to 1.7.0 release
* Sat Aug 03 2013 Fedora Release Engineering - 1.6.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Thu Jul 04 2013 Wolfgang Ulbrich - 1.6.0-4
- fix for usage of multimedia-menus package
* Fri Jun 07 2013 Wolfgang Ulbrich - 1.6.0-3
- move preferences-category-menu to a subpackage
* Tue Jun 04 2013 Wolfgang Ulbrich - 1.6.0-2
- add preferences-category-menu
- add requires mate-menus-libs
- mark *.menu files as %%config in %%{_sysconfdir} dir
* Wed Apr 03 2013 Dan Mashal - 1.6.0-1
- Update to latest 1.6.0 stable release.
* Thu Feb 14 2013 Fedora Release Engineering - 1.5.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Thu Nov 08 2012 Leigh Scott - 1.5.0-1
- update to 1.5.0 release
- clean up spec file
- remove un-needed build requires
* Thu Aug 16 2012 Dan Mashal 1.4.0-3
- Fix devel package requirements. Removed libs requirement.
* Thu Aug 16 2012 Dan Mashal 1.4.0-2
- Fix directory ownership for mate-menus dir.
* Thu Jul 12 2012 Dan Mashal 1.4.0-1
- Initial build