82985c3
Name:           xmonad-log-applet
0eb3dbc
Version:        2.1.0
9bace5e
Release:        13%{?dist}
82985c3
Summary:        Panel applet to display Xmonad log information
82985c3
Group:          User Interface/X
82985c3
License:        BSD
82985c3
URL:            https://github.com/alexkay/xmonad-log-applet
0eb3dbc
Source0:        http://xmonad-log-applet.googlecode.com/files/%{name}-%{version}.tar.gz
0eb3dbc
# Trivial patch to configure.ac only -- there was no API breakage, apparently
0eb3dbc
Patch1:         0001-update-to-libmatepanelapplet-4.0.patch
82985c3
82985c3
BuildRequires:  pkgconfig(glib-2.0)
82985c3
BuildRequires:  pkgconfig(dbus-glib-1)
82985c3
BuildRequires:  pkgconfig(libxfce4panel-1.0)
0eb3dbc
BuildRequires:  pkgconfig(libmatepanelapplet-4.0)
82985c3
82985c3
%description
92c3f39
xmonad-log-applet is for Xmonad users who find the XFCE or MATE panel useful.
028564d
The applet will show the active workspaces, the title of the selected window,
028564d
or any other information you send it from your xmonad.hs.
028564d
028564d
%package xfce
028564d
Summary:        XFCE panel plugin to display Xmonad log information
0eb3dbc
Conflicts:      %{name}-mate < %{version}-%{release}
44e98c0
# for directory ownership:
44e98c0
Requires:       xfce4-panel
028564d
028564d
%description xfce
028564d
xmonad-log-applet is for Xmonad users who find the XFCE panel useful.
028564d
The applet will show the active workspaces, the title of the selected window,
028564d
or any other information you send it from your xmonad.hs.
028564d
0eb3dbc
%package mate
0eb3dbc
Summary:        MATE panel applet to display Xmonad log information
0eb3dbc
Conflicts:      %{name}-xfce < %{version}-%{release}
0eb3dbc
# for directory ownership:
0eb3dbc
Requires:       mate-panel
0eb3dbc
0eb3dbc
%description mate
0eb3dbc
xmonad-log-applet is for Xmonad users who find the MATE panel useful.
0eb3dbc
The applet will show the active workspaces, the title of the selected window,
0eb3dbc
or any other information you send it from your xmonad.hs.
0eb3dbc
82985c3
%prep
82985c3
%setup -q
82985c3
%patch1 -p1
028564d
cp -pr . ../xfce4
0eb3dbc
cp -pr . ../mate
82985c3
82985c3
%build
0eb3dbc
# The upstream build only allows selecting one desktop environment, but 
028564d
# we would like to package all three. So we run the build three times.
028564d
028564d
( cd ../xfce4
82985c3
%configure --with-panel=xfce4
82985c3
make %{?_smp_mflags}
028564d
)
028564d
0eb3dbc
( cd ../mate
0eb3dbc
%configure --with-panel=mate
0eb3dbc
make %{?_smp_mflags}
0eb3dbc
)
028564d
82985c3
%install
028564d
( cd ../xfce4
028564d
make DESTDIR=%{buildroot} install
028564d
)
028564d
0eb3dbc
( cd ../mate
0eb3dbc
make DESTDIR=%{buildroot} install
0eb3dbc
)
028564d
028564d
%post xfce
028564d
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
82985c3
0eb3dbc
%post mate
0eb3dbc
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
0eb3dbc
028564d
%postun xfce
028564d
if [ $1 -eq 0 ] ; then
028564d
    /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
028564d
    /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
028564d
fi
028564d
0eb3dbc
%postun mate
0eb3dbc
if [ $1 -eq 0 ] ; then
0eb3dbc
    /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
0eb3dbc
    /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
0eb3dbc
fi
0eb3dbc
028564d
%posttrans xfce
028564d
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
028564d
0eb3dbc
%posttrans mate
0eb3dbc
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
0eb3dbc
028564d
%files xfce
82985c3
%doc README.md LICENSE AUTHORS.md
82985c3
%{_libdir}/xfce4/panel/plugins/%{name}
82985c3
%{_datadir}/xfce4/panel-plugins/%{name}.desktop
82985c3
%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
82985c3
0eb3dbc
%files mate
0eb3dbc
%doc README.md LICENSE AUTHORS.md
0eb3dbc
%{_libexecdir}/%{name}
0eb3dbc
%{_datadir}/dbus-1/services/org.mate.panel.applet.XmonadLogAppletFactory.service
0eb3dbc
%{_datadir}/mate-panel/applets/org.mate.panel.XmonadLogApplet.mate-panel-applet
0eb3dbc
%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
0eb3dbc
82985c3
%changelog
9bace5e
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-13
9bace5e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
9bace5e
e599d14
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-12
e599d14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
e599d14
665c119
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-11
665c119
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
665c119
62d1d9a
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-10
62d1d9a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
62d1d9a
aa01ba5
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-9
aa01ba5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
aa01ba5
2fbc67b
* Sun Mar 01 2015 Kevin Fenzi <kevin@scrye.com> 2.1.0-8
2fbc67b
- Rebuild for Xfce 4.12
2fbc67b
febc245
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-7
febc245
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
febc245
7af1690
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-6
7af1690
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
7af1690
b695a22
* Mon Aug 05 2013 Dan Callaghan <dcallagh@redhat.com> 2.1.0-5
b695a22
- avoid using autotools during RPM build
b695a22
be5db21
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-4
be5db21
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
be5db21
4421973
* Sun Apr 14 2013 Peter Robinson <pbrobinson@fedoraproject.org> 2.1.0-3
4421973
- Drop gnome-panel support as no longer supported
4421973
2cfa339
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-2
2cfa339
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
2cfa339
0eb3dbc
* Fri Jan 18 2013 Dan Callaghan <dcallagh@redhat.com> 2.1.0-1
0eb3dbc
- new upstream release 2.1.0: adds MATE support, no other changes
0eb3dbc
44e98c0
* Mon Sep 03 2012 Dan Callaghan <dcallagh@redhat.com> 2.0.0-3
44e98c0
- added explicit Requires for directory ownership
44e98c0
028564d
* Mon Aug 27 2012 Dan Callaghan <dcallagh@redhat.com> 2.0.0-2
028564d
- build both GNOME and XFCE versions
028564d
82985c3
* Sat Apr 21 2012 Dan Callaghan <dcallagh@redhat.com> 2.0.0-1
82985c3
- initial version