File fahmon.spec of Package fahmon
#
# spec file for package fahmon
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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 _use_internal_dependency_generator 0
%define __find_requires %wx_requires
Name: fahmon
Version: 2.3.99.4
Release: 0
License: GPL-2.0
Summary: Monitor for Folding@home Clients
Url: http://fahmon.net/
Group: System/Monitoring
Source0: http://fahmon.net/downloads/FahMon-%{version}.tar.bz2
# PATCH-FIX-OPENSUSE fahmon-2.3.99.4-pixdir.patch lazy.kent@opensuse.org -- install icons into program dir, not into system one
Patch0: fahmon-2.3.99.4-pixdir.patch
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: hicolor-icon-theme
BuildRequires: update-desktop-files
BuildRequires: wxWidgets-wxcontainer-devel
BuildRequires: pkgconfig(libcurl)
Recommends: %{name}-lang
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
%description
FahMon is an open-source tool (GPL license) that allows you to quickly
check the progress of your Folding@Home client (or clients if you have
multiple), avoiding you having to open different files and/or to go to
the Internet (for example to know how much your current work unit is
worth).
%lang_package
%prep
%setup -qn FahMon-%{version}
%patch0
%build
%configure --disable-static
make %{?_smp_mflags}
%install
%make_install
rm -f %{buildroot}%{_libdir}/libwxcurl.{la,so}
%fdupes -s %{buildroot}%{_datadir}
%find_lang %{name}
%suse_update_desktop_file %{name}
%post
/sbin/ldconfig
%icon_theme_cache_post
%postun
/sbin/ldconfig
%icon_theme_cache_postun
%files
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING NEWS README TEMPLATE_SYNTAX THANKS
%doc doc/help/User_Guide.pdf
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_libdir}/*.so*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/*/%{name}.*
%files lang -f %{name}.lang
%changelog