File cairo-dock-plugins-extra.spec of Package cairo-dock-plugins-extra
#
# spec file for package cairo-dock-plugins-extra
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2014 Adam Mizerski <adam@mizerski.pl>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define ver_major 3
%define ver_minor 4
%define ver_patch 0
%define destdir %{_datadir}/cairo-dock/plug-ins/Dbus/third-party
Name: cairo-dock-plugins-extra
Version: %{ver_major}.%{ver_minor}.%{ver_patch}
Release: 0
Summary: Cairo-dock is a small simple but effective docklet like Mac
License: GPL-2.0+
Group: System/GUI/Other
Url: http://www.glx-dock.org/
Source: https://launchpad.net/cairo-dock-plug-ins-extras/%{ver_major}.%{ver_minor}/%{version}/+download/cairo-dock-plug-ins-extras_%{version}.tar.gz
Patch0: HDDtemperature.patch
# for proper directory ownership
BuildRequires: cairo-dock-plugins-dbus
BuildRequires: fdupes
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
Dummy package
%package CpuWatcher
Summary: Cairo Dock CpuWatcher Plugin
License: GPL-2.0+
Group: System/GUI/Other
Requires: %{name}-lang = %{version}
Requires: python-CDApplet
Requires: python-gobject
BuildArch: noarch
%description CpuWatcher
This the CpuWatcher applet. It lets you keep an eye on your cpu load (and each
cores in submenu!). You can obtain an average of the main core (in the label)
with a middle click on the icon.
%files CpuWatcher
%defattr(-,root,root)
%dir %{destdir}
%{destdir}/CpuWatcher/
%package Deluge
Summary: Cairo Dock Deluge Plugin
License: GPL-2.0+
Group: System/GUI/Other
Requires: %{name}-lang = %{version}
Requires: deluge
Requires: python-CDApplet
Requires: python-gobject
BuildArch: noarch
%description Deluge
This applet allows you to control Deluge from the Dock (You need to install
deluged, which is the daemon used to communicate between the Dock and Deluge).
It can display the download rate on the icon. Middle-click on the icon gives you
information about the current torrents (you can bind a shortkey for this action).
Right-click on the icon allows you to pause/start all the torrents. Drop a
torrent file on the icon to add it to the list and start downloading it
immediately.
%files Deluge
%defattr(-,root,root)
%dir %{destdir}
%{destdir}/Deluge/
%package GTG
Summary: Cairo Dock GTG Plugin
License: GPL-2.0+
Group: System/GUI/Other
Requires: %{name}-lang = %{version}
Requires: gtg
Requires: python-CDApplet
Requires: python-gobject
BuildArch: noarch
%description GTG
This applet integrates GTG into your dock. It can display tasks, create a new
task on middle-click, create a post-it from a task category. The icon will
also control the window of GTG like a normal application icon.
%files GTG
%defattr(-,root,root)
%dir %{destdir}
%{destdir}/GTG/
%package Gmail
Summary: Cairo Dock Gmail Plugin
License: GPL-2.0+
Group: System/GUI/Other
Requires: %{name}-lang = %{version}
Requires: python3-CDApplet
Requires: python3-gobject
Requires: python3-lxml
BuildArch: noarch
%description Gmail
This applet will notify you of new emails on a single Gmail account.
%files Gmail
%defattr(-,root,root)
%dir %{destdir}
%{destdir}/Gmail/
%package Google
Summary: Cairo Dock Google Plugin
License: GPL-3.0+
Group: System/GUI/Other
Requires: %{name}-lang = %{version}
Requires: python-CDApplet
Requires: python-gobject
BuildArch: noarch
%description Google
This applet provides an interface to Google search engine. Left click on the
main icon to open the search dialog. Each result will be shown as a sub-icon.
Left-click to open the result in the default Web Browser.
%files Google
%defattr(-,root,root)
%dir %{destdir}
%{destdir}/Google/
%package HDDtemperature
Summary: Cairo Dock HDDtemperature Plugin
License: GPL-2.0+
Group: System/GUI/Other
Requires: %{name}-lang = %{version}
Requires: cairo-dock-plugins-dbus-interface-bash
Requires: hddtemp
Requires: ncat
BuildArch: noarch
%description HDDtemperature
This applet shows maximal temperature of your hard disk drives getting values
from 'hddtemp' daemon (see: man hddtemp). Left-click shows more information
about HD drives.
%files HDDtemperature
%defattr(-,root,root)
%dir %{destdir}
%{destdir}/HDDtemperature/
%package KTorrent
Summary: Cairo Dock KTorrent Plugin
License: GPL-2.0+
Group: System/GUI/Other
Requires: %{name}-lang = %{version}
Requires: ktorrent
Requires: python-CDApplet
Requires: python-gobject
BuildArch: noarch
%description KTorrent
This applet allows you to control KTorrent from the Dock. It can display the
download rate on the icon. Middle-click on the icon gives you information about
the current torrents (you can bind a shortkey for this action). Right-click on
the icon allows you to pause/start all the torrents. Drop a torrent file on the
icon to add it to the list and start downloading it immediately.
%files KTorrent
%defattr(-,root,root)
%dir %{destdir}
%{destdir}/KTorrent/
%package Lancelot
Summary: Cairo Dock Lancelot Plugin
License: GPL-2.0+
Group: System/GUI/Other
Requires: %{name}-lang = %{version}
Requires: plasma-addons-lancelot
Requires: python-CDApplet
Requires: python-gobject
BuildArch: noarch
%description Lancelot
This applet allows you to have the Lancelot menu inside your dock. Click on the
icon to popup the menu. Right-click lets you access to the preferences window.
%files Lancelot
%defattr(-,root,root)
%dir %{destdir}
%{destdir}/Lancelot/
%package Liferea
Summary: Cairo Dock Liferea Plugin
License: GPL-3.0+
Group: System/GUI/Other
Requires: %{name}-lang = %{version}
Requires: liferea
Requires: python-CDApplet
BuildArch: noarch
%description Liferea
This applets makes an interface with Liferea
%files Liferea
%defattr(-,root,root)
%dir %{destdir}
%{destdir}/Liferea/
%package Moon
Summary: Cairo Dock Moon Plugin
License: GPL-3.0+
Group: System/GUI/Other
Requires: %{name}-lang = %{version}
Requires: python-CDApplet
BuildArch: noarch
%description Moon
This applet displays the moon phases and its informations for the current day,
or week from the Northern or Southern hemisphere.
%files Moon
%defattr(-,root,root)
%dir %{destdir}
%{destdir}/Moon/
%package Notifications_history
Summary: Cairo Dock Notifications_history Plugin
License: GPL-2.0+
Group: System/GUI/Other
Requires: %{name}-lang = %{version}
Requires: python-CDApplet
BuildArch: noarch
%description Notifications_history
This applet provides an history of the last desktop notifications. Click on the
icon to get a list of the last notifications. Middle-click to clear the history.
%files Notifications_history
%defattr(-,root,root)
%dir %{destdir}
%{destdir}/Notifications_history/
%package Pidgin
Summary: Cairo Dock Pidgin Plugin
License: GPL-2.0+
Group: System/GUI/Other
Requires: %{name}-lang = %{version}
Requires: pidgin
Requires: python-CDApplet
Requires: python-gobject
BuildArch: noarch
%description Pidgin
This applet integrates Pidgin into your dock. It can display new messages, you
select a conversation from the menu on right-click, write a message on
middle-click, and display the messages history by scrolling on the icon. The
icon will also control the window of Pidgin like a normal application icon.
%files Pidgin
%defattr(-,root,root)
%dir %{destdir}
%{destdir}/Pidgin/
%package Quote
Summary: Cairo Dock Quote Plugin
License: GPL-3.0+
Group: System/GUI/Other
Requires: %{name}-lang = %{version}
Requires: python-CDApplet
Requires: python-gobject
BuildArch: noarch
%description Quote
This applet provides a "Quote of the day" feature from some internet sources
such as: Quotationspage.com, Bash.org, Xkcdb.com, Qdb.us, Danstonchat.com,
Jokes2go.com, Vidademerda.com.br, Viedemerde.fr, Fmylife.com, Vitadimerda.it,
100blagues.com, and Chucknorrisfacts.fr.
%files Quote
%defattr(-,root,root)
%dir %{destdir}
%{destdir}/Quote/
%package Screensaver_inhibitor
Summary: Cairo Dock Screensaver_inhibitor Plugin
License: GPL-2.0+
Group: System/GUI/Other
Requires: %{name}-lang = %{version}
Requires: python-CDApplet
Requires: python-gobject
BuildArch: noarch
%description Screensaver_inhibitor
A small applet to inhibit the screensaver. This is especially useful when
watching videos on Internet. Click on the icon to inhibit/deinhibit the
screensaver.
%files Screensaver_inhibitor
%defattr(-,root,root)
%dir %{destdir}
%{destdir}/Screensaver_inhibitor/
%package Translator
Summary: Cairo Dock Translator Plugin
License: GPL-2.0+
Group: System/GUI/Other
Requires: %{name}-lang = %{version}
Requires: python-CDApplet
Requires: python-gobject
BuildArch: noarch
%description Translator
This applet translates single words, complete sentences, or web pages. To use
it, either click on the icon or press the shortkey, then enter your text and
press Enter. The translated text will be shown in a popup and be available in
the clipboard, just press Ctrl+v to have it. You can also drop some text onto
the icon, or translate the current clipboard content (middle-click). You can
select the languages you want to translate from/to through the menu, or in the
config window of the applet. Shortkeys can be configured too. By default: - If
you want to translate something you are reading in the foreign language, press
Ctrl + Alt + R - If you are writing something in your native language, press
Ctrl + Alt + W.
%files Translator
%defattr(-,root,root)
%dir %{destdir}
%{destdir}/Translator/
%package Transmission
Summary: Cairo Dock Transmission Plugin
License: GPL-2.0+
Group: System/GUI/Other
Requires: %{name}-lang = %{version}
Requires: python-CDApplet
Requires: python-gobject
Requires: transmission
BuildArch: noarch
%description Transmission
This applet allows you to control Transmission from the Dock. It can display the
download rate on the icon. Middle-click on the icon gives you information about
the current torrents (you can bind a shortkey for this action). Right-click on
the icon allows you to pause/start all the torrents. Drop a torrent file on the
icon to add it to the list and start downloading it immediately.
%files Transmission
%defattr(-,root,root)
%dir %{destdir}
%{destdir}/Transmission/
%package Twitter
Summary: Cairo Dock Twitter Plugin
License: GPL-3.0+
Group: System/GUI/Other
Requires: %{name}-lang = %{version}
Requires: python-CDApplet
Requires: python-oauth
BuildArch: noarch
%description Twitter
This applet supports both Twitter, and Identi.ca. You can send tweets, direct
messages, see your timeline, retweet, and answer direct messages. It will alert
you when there are new tweets, and directed messages. On the first time, you
need to choose which network to add, once at a time by right-click -> Add
account -> Twitter or Identi.ca. The applet is going to ask your nickname and
authorization to connect on the networks. The network authorization page will be
open. As soon as you authorize it, a PIN number will be shown on the page, copy
this number Paste this number on the next dialog box will be shown. The plugin
is going to inform that you are successfully connected.
%files Twitter
%defattr(-,root,root)
%dir %{destdir}
%{destdir}/Twitter/
%package WebSearch
Summary: Cairo Dock WebSearch Plugin
License: GPL-3.0+
Group: System/GUI/Other
Requires: %{name}-lang = %{version}
Requires: ruby-CDApplet
Requires: rubygem(launchy)
Requires: rubygem(nokogiri)
BuildArch: noarch
%description WebSearch
This applet provides an interface to some search engines such as Google, Bing,
Teoma, Yahoo!, Youtube, Flickr, Wikipedia, and ImageShack. To choose the search
engine you can (1) Right-click on the main icon -> WebSearch -> (Choose the
engine) (2) Right-click -> Configure this applet -> Configuration -> Search
engine (3) Scroll up or down over the icon (applicable only for the first
search). You can search in three ways (1) Middle-click on the main icon (2)
Left-click on main icon (right after choosing a new engine) Type your query and
validate. Each result will be shown as a sub-icon. Left-click to open the the
result in the default Web Browser. Middle-click on the sub-icon of any result to
show its description. Scroll up to fetch the next results. Scroll down to fetch
the previous results. Left-click on the main icon to show search stats.
%files WebSearch
%defattr(-,root,root)
%dir %{destdir}
%{destdir}/WebSearch/
%package WindowsKiller
Summary: Cairo Dock WindowsKiller Plugin
License: GPL-2.0+
Group: System/GUI/Other
Requires: %{name}-lang = %{version}
Requires: cairo-dock-plugins-dbus-interface-bash
BuildArch: noarch
%description WindowsKiller
WindowsKiller is able to kill problematic windows easily. Left Click on its icon
and simply select window that cause trouble to kill it (select the dock in order
to cancel). Middle Click will give you some informations like the pid, the
command to launch this application, the uptime and the class(es) of this window.
%files WindowsKiller
%defattr(-,root,root)
%dir %{destdir}
%{destdir}/WindowsKiller/
%package Xchat
Summary: Cairo Dock Xchat Plugin
License: GPL-2.0+
Group: System/GUI/Other
Requires: %{name}-lang = %{version}
Requires: python-CDApplet
Requires: python-gobject
Requires: xchat
BuildArch: noarch
%description Xchat
This applet integrates Xchat and Xchat-gnome into your dock. It can display new
messages, you select a channel from the menu on right-click, write a message on
middle-click, and display the messages history by scrolling on the icon. The
icon will also control the window of xchat like a normal application icon.
%files Xchat
%defattr(-,root,root)
%dir %{destdir}
%{destdir}/Xchat/
%lang_package
%prep
%setup -q -n cairo-dock-plug-ins-extras_%{version}
%patch0 -p1
%build
echo "dummy package" > README
%install
mkdir -p %{buildroot}%{destdir}
for plugin in CpuWatcher Deluge GTG Gmail Google HDDtemperature KTorrent Lancelot Liferea Moon Notifications_history Pidgin Quote Screensaver_inhibitor Translator Transmission Twitter WebSearch WindowsKiller Xchat; do
pushd $plugin
find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;
for file in $(find . -type f); do [ "$(head -c2 $file)" = "#!" ] && chmod +x $file; done
chmod +x $plugin
popd
cp -a $plugin %{buildroot}%{destdir}/
%fdupes -s %{buildroot}%{destdir}/$plugin
done
mkdir -p %{buildroot}%{_datadir}
cp -r locale %{buildroot}%{_datadir}/
%fdupes -s %{buildroot}%{_datadir}/locale
%find_lang %{name}
%files
%defattr(-,root,root)
%doc README
%files lang -f %{name}.lang
%defattr(-,root,root)
%changelog