Sophie

Sophie

distrib > Mageia > 9 > armv7hl > by-pkgid > 3c0eebf000b166f7a7ded53b8dc695f5 > files > 4

mate-menus-1.26.1-1.mga9.src.rpm

%define url_ver	%(echo %{version}|cut -d. -f1,2)

%define major     2
%define libname   %mklibname mate-menu %{major}
%define develname %mklibname mate-menu -d

%define gi_major  2.0
%define girname   %mklibname mate-menu-gir %{gi_major}

Summary:        MATE menu library
Name:           mate-menus
Version:        1.26.1
Release:        %mkrel 1
License:        GPLv2+ and LGPLv2+
URL:            https://mate-desktop.org/
Group:          System/Libraries
Source0:        https://pub.mate-desktop.org/releases/%{url_ver}/%{name}-%{version}.tar.xz
# (fc) 2.16.0-2mdv unclutter preferences/settings menu
Patch0:         mate-menus-1.6.0-mga-uncluttermenu.patch
Patch1:         mate-menus-1.6.0-mga-l10n.patch

BuildRequires:  mate-common
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(gio-2.0)
BuildRequires:  pkgconfig(gobject-introspection-1.0)
BuildRequires:  autoconf-archive

Requires:       matemenu-layout >= %{version}-%{release}

%description
The package contains an implementation of the draft "Desktop Menu
Specification" from freedesktop.org:
https://www.freedesktop.org/Standards/menu-spec

Also contained here are the MATE menu layout configuration files,
.directory files and assorted menu related utility programs.

%package -n %{libname}
Group:      System/Libraries
Summary:    MATE menu library

%description -n %{libname}
The package contains an implementation of the draft "Desktop Menu
Specification" from freedesktop.org:
https://www.freedesktop.org/Standards/menu-spec

%package -n %{girname}
Summary:    GObject Introspection interface description for %{name}
Group:      System/Libraries
Requires:   %{libname} = %{version}-%{release}

%description -n %{girname}
GObject Introspection interface description for %{name}.

%package -n matemenu-vanilla-layout
Group:      Graphical desktop/MATE
Summary:    MATE Desktop vanilla menu layout
Requires:   %{name} = %{version}-%{release}
Requires(post): update-alternatives
Requires(postun): update-alternatives
Provides:   matemenu-layout = %{version}-%{release}

%description -n matemenu-vanilla-layout
This package contains upstream mate menu layout.
If you want to Mageia branded menu layout please
install matemenu-mageia-layout package

%package -n matemenu-mageia-layout
Group:      Graphical desktop/MATE
Summary:    MATE Desktop Mageia branded menu layout
Requires:   %{name} = %{version}-%{release}
Requires:   desktop-common-data
Requires(post): update-alternatives
Requires(postun): update-alternatives
Provides:   matemenu-layout = %{version}-%{release}

%description -n matemenu-mageia-layout
This package contains Mageia branded mate menu layout.
If you want to upstream vanilla menu layout please
install matemenu-vanilla-layout package

%package -n %{develname}
Group:      Development/C
Summary:    MATE menu library development files
Requires:   %{libname} = %{version}-%{release}
Requires:   %{girname} = %{version}-%{release}
Provides:   %{name}-devel = %{version}-%{release}

%description -n %{develname}
The package contains an implementation of the draft "Desktop Menu
Specification" from freedesktop.org:
https://www.freedesktop.org/Standards/menu-spec

%prep
%autosetup -p1

%build
NOCONFIGURE=1 ./autogen.sh
%configure \
      --disable-static \
      --enable-introspection=yes
%make_build

%install
%make_install

# Move mate menu layout to new name
mv -f %{buildroot}%{_sysconfdir}/xdg/menus/mate-applications.menu %{buildroot}%{_sysconfdir}/xdg/menus/mate-vanilla-applications.menu

find %{buildroot} -name "*.la" -delete

%find_lang %name --with-gnome --all-name

%post -n matemenu-vanilla-layout
%{_sbindir}/update-alternatives --install \
        %{_sysconfdir}/xdg/menus/mate-applications.menu matemenu \
        %{_sysconfdir}/xdg/menus/mate-vanilla-applications.menu 9

%postun -n matemenu-vanilla-layout
if [ $1 -eq 0 ]; then
    %{_sbindir}/update-alternatives --remove matemenu  %{_sysconfdir}/xdg/menus/mate-vanilla-applications.menu
fi

%post -n matemenu-mageia-layout
%{_sbindir}/update-alternatives --install \
        %{_sysconfdir}/xdg/menus/mate-applications.menu matemenu \
        %{_sysconfdir}/xdg/menus/applications.menu 10

%postun -n matemenu-mageia-layout
if [ $1 -eq 0 ]; then
    %{_sbindir}/update-alternatives --remove matemenu  %{_sysconfdir}/xdg/menus/applications.menu
fi

%files -f %{name}.lang
%doc AUTHORS README
%license COPYING
%dir %{_sysconfdir}/xdg/menus
%config(noreplace) %{_sysconfdir}/xdg/menus/mate-preferences-categories.menu
%config(noreplace) %{_sysconfdir}/xdg/menus/mate-settings.menu
%{_datadir}/%{name}/
%dir %{_datadir}/mate/desktop-directories/
%{_datadir}/mate/desktop-directories/mate-*.directory

%files -n %{libname}
%{_libdir}/libmate-menu.so.%{major}{,.*}

%files -n %{girname}
%{_libdir}/girepository-1.0/MateMenu-%{gi_major}.typelib

%files -n matemenu-vanilla-layout
%config(noreplace) %{_sysconfdir}/xdg/menus/mate-vanilla-applications.menu
%{_datadir}/mate/desktop-directories/mate-menu-applications.directory
%ghost %{_sysconfdir}/xdg/menus/mate-applications.menu

%files -n matemenu-mageia-layout
%ghost %{_sysconfdir}/xdg/menus/mate-applications.menu

%files -n %{develname}
%{_libdir}/libmate-menu.so
%{_includedir}/mate-menus
%{_libdir}/pkgconfig/libmate-menu.pc
%{_datadir}/gir-1.0/MateMenu-%{gi_major}.gir


%changelog
* Tue May 30 2023 kekepower <kekepower> 1.26.1-1.mga9
+ Revision: 1959797
- Update to version 1.26.1

* Thu Mar 17 2022 umeabot <umeabot> 1.26.0-2.mga9
+ Revision: 1796789
- Mageia 9 Mass Rebuild

* Sat Aug 07 2021 wally <wally> 1.26.0-1.mga9
+ Revision: 1740029
- new version 1.26.0

* Sun Feb 07 2021 wally <wally> 1.24.1-6.mga8
+ Revision: 1674982
- allways install alternatives system for menu layout

* Sun Feb 07 2021 wally <wally> 1.24.1-5.mga8
+ Revision: 1674971
- update if statements in post(un) scriptlets

* Sat Feb 06 2021 wally <wally> 1.24.1-4.mga8
+ Revision: 1674960
- update mageia layout priority for old installs

* Sat Feb 06 2021 wally <wally> 1.24.1-3.mga8
+ Revision: 1674949
- make vanilla and mageia layouts parallel installable
- increase mageia layout priority
- simplify post(un) scriptlets
- drop old conflicts

* Mon Feb 01 2021 daviddavid <daviddavid> 1.24.1-2.mga8
+ Revision: 1674344
- build dependency on python2 is not needed, let's drop it

* Mon Aug 24 2020 kekepower <kekepower> 1.24.1-1.mga8
+ Revision: 1618699
- Update to version 1.24.1
+ danf <danf>
- Switch URLs from http: to https:

* Fri Feb 21 2020 umeabot <umeabot> 1.24.0-2.mga8
+ Revision: 1547899
- Mageia 8 Mass Rebuild

* Mon Feb 10 2020 kekepower <kekepower> 1.24.0-1.mga8
+ Revision: 1488642
- BR autoconf-archive
- Update to version 1.24.0
+ wally <wally>
- replace deprecated %%configure2_5x

* Tue Dec 10 2019 kekepower <kekepower> 1.22.1-1.mga8
+ Revision: 1465680
- Update to version 1.22.1

* Wed Mar 13 2019 kekepower <kekepower> 1.22.0-1.mga7
+ Revision: 1375479
- Update to version 1.22.0

* Tue Jan 01 2019 kekepower <kekepower> 1.20.2-1.mga7
+ Revision: 1348381
- Update to version 1.20.2

* Sat Dec 01 2018 kekepower <kekepower> 1.20.1-1.mga7
+ Revision: 1337259
- Update to version 1.20.1
- Rolled back to r1299472

* Mon Nov 26 2018 kekepower <kekepower> 1.21.0-1.mga7
+ Revision: 1335619
- Remove and obsolete python2-mate-menus
- Remove unecessary patch
- Update to version 1.20.1

* Sun Sep 23 2018 umeabot <umeabot> 1.20.0-3.mga7
+ Revision: 1299472
- Mageia 7 Mass Rebuild

* Thu May 10 2018 tv <tv> 1.20.0-2.mga7
+ Revision: 1228065
- rename python- submodule as python2-

* Thu Feb 15 2018 tarakbumba <tarakbumba> 1.20.0-1.mga7
+ Revision: 1201362
- Updated to 1.20.0 version

* Sun Oct 29 2017 tarakbumba <tarakbumba> 1.19.0-1.mga7
+ Revision: 1174638
- Update to 1.19.0 version

* Fri Apr 28 2017 luigiwalser <luigiwalser> 1.18.0-2.mga7
+ Revision: 1097929
- add requires for scriplets

* Tue Mar 14 2017 tarakbumba <tarakbumba> 1.18.0-1.mga6
+ Revision: 1092571
- Update to 1.18.0 version
- Update to 1.17.0 version

* Fri Dec 30 2016 tarakbumba <tarakbumba> 1.16.0-2.mga6
+ Revision: 1078639
- Fix applications menu missing when upgrading from Mga5 (mga#18913)

* Tue Dec 13 2016 wally <wally> 1.16.0-1.mga6
+ Revision: 1074703
- new version 1.16.0

* Tue May 03 2016 tarakbumba <tarakbumba> 1.14.0-2.mga6
+ Revision: 1009053
- Provide mageia menu layout and vanilla mate layout in seperate packages

* Thu Apr 14 2016 tarakbumba <tarakbumba> 1.14.0-1.mga6
+ Revision: 1001206
- Update to 1.14.0 version

* Mon Feb 08 2016 tarakbumba <tarakbumba> 1.13.0-1.mga6
+ Revision: 942455
- Update to 1.13.0 version

* Sun Nov 08 2015 tarakbumba <tarakbumba> 1.12.0-1.mga6
+ Revision: 898504
-Update to 1.12.0 version

* Sun Jun 21 2015 tarakbumba <tarakbumba> 1.10.0-1.mga6
+ Revision: 837227
- Update to 1.10.0 version

* Wed Oct 15 2014 umeabot <umeabot> 1.8.0-5.mga5
+ Revision: 746721
- Second Mageia 5 Mass Rebuild

* Sat Sep 27 2014 tv <tv> 1.8.0-4.mga5
+ Revision: 727159
- rebuild for missing pythoneggs deps

* Fri Sep 26 2014 wally <wally> 1.8.0-3.mga5
+ Revision: 724940
- rebuild with new rpm-mageia-setup to generate requires for .typelib files

* Tue Sep 16 2014 umeabot <umeabot> 1.8.0-2.mga5
+ Revision: 682194
- Mageia 5 Mass Rebuild

* Wed Mar 05 2014 tarakbumba <tarakbumba> 1.8.0-1.mga5
+ Revision: 600088
- Updated to version 1.8.0

* Sat Mar 01 2014 tarakbumba <tarakbumba> 1.7.90-1.mga5
+ Revision: 598048
- Update to 1.7.x version

* Tue Jan 21 2014 tarakbumba <tarakbumba> 1.6.0-4.mga4
+ Revision: 567265
- Do not move .menu files into subdir, it breaks mintmenu.
- Add improved l10n support

* Sat Oct 19 2013 umeabot <umeabot> 1.6.0-2.mga4
+ Revision: 531051
- Mageia 4 Mass Rebuild

* Wed Jul 31 2013 malo <malo> 1.6.0-1.mga4
+ Revision: 461741
- remove duplicate BuildRequires and Suggests
+ tarakbumba <tarakbumba>
- imported package mate-menus