3 %bcond_with gtk3 # use GTK+ 3.x instead of 2.x
5 Summary: Small applet to display information from various applications consistently in the panel
6 Summary(pl.UTF-8): Mały aplet do spójnego wyświetlania w panelu informacji od różnych aplikacji
7 Name: mate-applet-indicator
11 Group: X11/Applications
12 Source0: http://pub.mate-desktop.org/releases/1.14/mate-indicator-applet-%{version}.tar.xz
13 # Source0-md5: d84b8962e3b978685e74e1c8c20d2458
14 URL: http://mate-desktop.org/
15 BuildRequires: autoconf >= 2.53
16 BuildRequires: automake >= 1:1.9
17 BuildRequires: gettext-tools >= 0.10.40
18 BuildRequires: glib2-devel >= 2.0
19 %{!?with_gtk3:BuildRequires: gtk+2-devel >= 2:2.24}
20 %{?with_gtk3:BuildRequires: gtk+3-devel >= 3.0}
21 BuildRequires: intltool >= 0.35.0
22 %{!?with_gtk3:BuildRequires: libindicator-devel >= 0.4}
23 %{?with_gtk3:BuildRequires: libindicator-gtk3-devel >= 0.4}
24 BuildRequires: libtool >= 1:1.4.3
25 BuildRequires: mate-panel-devel
26 BuildRequires: pkgconfig >= 1:0.19
27 BuildRequires: tar >= 1:1.22
28 BuildRequires: xorg-lib-libX11-devel
30 Requires(post,postun): gtk-update-icon-cache
31 %{!?with_gtk3:Requires: gtk+2 >= 2:2.24}
32 %{?with_gtk3:Requires: gtk+3 >= 3.0}
33 Requires: hicolor-icon-theme
35 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37 %define _libexecdir %{_libdir}/mate-panel
40 The indicator applet exposes Ayatana Indicators in the MATE Panel.
41 Ayatana Indicators are an initiative by Canonical to provide crisp and
42 clean system and application status indication. They take the form of
43 an icon and associated menu, displayed (usually) in the desktop panel.
44 Existing indicators include the Message Menu, Battery Menu and Sound
47 MATE Indicator Applet is a fork of Indicator Applet for GNOME
48 (<https://launchpad.net/indicator-applet>).
50 %description -l pl.UTF-8
51 Aplet indicator uwidacznia wskaźniki Ayatana w panelu MATE. Wskaźniki
52 Ayatana (Ayatana Indicators) to inicjatywa Canonical mająca na celu
53 zapewnienie świeżych i przejrzystych wskazań dotyczących stanu systemu
54 i aplikacji. Mają postać ikony i związanego z nią menu, wyświetlanych
55 (zwykle) w panelu pulpitu. Istniejące wskaźniki obejmują menu
56 komunikatów, menu baterii oraz menu dźwięku.
58 MATE Indicator Applet to odgałęzienie pakietu Indicator Applet dla
59 GNOME (<https://launchpad.net/indicator-applet>).
62 %setup -q -n mate-indicator-applet-%{version}
72 --disable-silent-rules \
73 %{?with_gtk3:--with-gtk=3.0}
78 rm -rf $RPM_BUILD_ROOT
81 DESTDIR=$RPM_BUILD_ROOT
83 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{frp,jv}
85 %find_lang mate-indicator-applet
88 rm -rf $RPM_BUILD_ROOT
91 %update_icon_cache hicolor
94 %update_icon_cache hicolor
96 %files -f mate-indicator-applet.lang
97 %defattr(644,root,root,755)
98 %doc AUTHORS ChangeLog NEWS README
99 %attr(755,root,root) %{_libexecdir}/mate-indicator-applet
100 %attr(755,root,root) %{_libexecdir}/mate-indicator-applet-appmenu
101 %attr(755,root,root) %{_libexecdir}/mate-indicator-applet-complete
102 %{_datadir}/dbus-1/services/org.mate.panel.applet.IndicatorApplet*.service
103 %{_datadir}/mate-panel/applets/org.ayatana.panel.IndicatorApplet*.mate-panel-applet
104 %{_iconsdir}/hicolor/scalable/apps/mate-indicator-applet.svg