File boinctray.spec of Package boinctray

#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

Name:           boinctray
Version:        2.4
Release:        1
License:        GPL-2.0-only
Summary:        TK based Systrayicon for BOINC
Url:            http://edu.iki.fi/programs/boinctray/
Group:          Productivity/Clustering/Computing
Source:         http://edu.iki.fi/programs/boinctray/%{name}-%{version}.tar.gz
Source1:        %{name}.desktop
Source2:        %{name}.png
Patch0:         %{name}-absolute-paths.patch
BuildRequires:  tcl-tktray
BuildRequires:  update-desktop-files
Requires:       boinc-client
Requires:       tcl-tktray
BuildArch:      noarch

%description
The Boinctray is a TCL program for displaying statistics of the BOINC
volunteer distributed computing system. The BOINC uses the idle time
of your computer for doing scientific calculations. This program
creates an icon to your system tray and displays the progress of
the BOINC computation in a window which you can place freely. The user
can control whether the statistics window is shown all the time or only
when the mouse cursor is above the icon. It is also possible to choose
what statistics shown.

%prep
%setup -q -n %{name}
%patch0 -p1

%build

%install
# Install Binary
install -D -m 0755 boinctray %{buildroot}%{_bindir}/%{name}

# Install Data
install -d %{buildroot}%{_datadir}/%{name}
cp -arv images %{buildroot}%{_datadir}/%{name}
cp -arv msgs %{buildroot}%{_datadir}/%{name}
install -D -m 644 po/*.po %{buildroot}%{_datadir}/%{name}/
rm -f %{buildroot}/%{_datadir}/%{name}/po/*.save

# Install Desktop File
install -D -m 0644 %{SOURCE2} %{buildroot}%{_datadir}/pixmaps/%{name}.png
install -D -m 0644 %{SOURCE1} %{buildroot}%{_datadir}/applications/%{name}.desktop
%suse_update_desktop_file %{name}

%files
%doc boinctray.licence ChangeLog README tktray.licence TRANSLATING VERSION
%{_bindir}/%{name}
%{_datadir}/%{name}/
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/applications/%{name}.desktop

%changelog
openSUSE Build Service is sponsored by