| 1 |
# Older RPM doesn't define these by default |
|---|
| 2 |
%{!?perl_vendorlib: %define perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)} |
|---|
| 3 |
%{!?perl_vendorarch: %define perl_vendorarch %(eval "`%{__perl} -V:installvendorarch`"; echo $installvendorarch)} |
|---|
| 4 |
%{!?perl_archlib: %define perl_archlib %(eval "`%{__perl} -V:installarchlib`"; echo $installarchlib)} |
|---|
| 5 |
|
|---|
| 6 |
%define fahmonver 2.3.99.4 |
|---|
| 7 |
|
|---|
| 8 |
Summary: A wxGTK based monitor for Folding@home clients |
|---|
| 9 |
Name: FahMon |
|---|
| 10 |
Version: %fahmonver |
|---|
| 11 |
Release: 1 |
|---|
| 12 |
License: GPL |
|---|
| 13 |
Group: System/Monitoring |
|---|
| 14 |
URL: http://fahmon.net/ |
|---|
| 15 |
Source: %{name}-%{version}.tar.bz2 |
|---|
| 16 |
Packager: Andrew Schofield <andrew_s@fahmon.net> |
|---|
| 17 |
BuildRoot: %{_tmppath}/%{name}-%{version}-root |
|---|
| 18 |
|
|---|
| 19 |
# Generic build requirements |
|---|
| 20 |
BuildRequires: wxGTK-devel |
|---|
| 21 |
|
|---|
| 22 |
Requires: wxGTK |
|---|
| 23 |
|
|---|
| 24 |
%description |
|---|
| 25 |
FahMon is an open-source tool (GPL license) that allows you to quickly |
|---|
| 26 |
check the progress of your Folding@Home client (or clients if you have |
|---|
| 27 |
multiple ones), avoiding you having to open different files and/or to |
|---|
| 28 |
go to the Internet (for example to know how much your current work |
|---|
| 29 |
unit is worth). Other monitoring tools exist (such as Electron |
|---|
| 30 |
Microscope or FahLogStats), so if you don't like FahMon, have a look |
|---|
| 31 |
at them! |
|---|
| 32 |
|
|---|
| 33 |
FahMon is entirely coded in C++ and uses the wxWidgets library, which |
|---|
| 34 |
allows FahMon to exist both for Linux and Windows. It is designed to |
|---|
| 35 |
be really easy to use, and you should thus not encounter any major |
|---|
| 36 |
problem. |
|---|
| 37 |
|
|---|
| 38 |
%prep |
|---|
| 39 |
%setup -q -n %{name}-%{version} |
|---|
| 40 |
|
|---|
| 41 |
%build |
|---|
| 42 |
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix} \ |
|---|
| 43 |
--bindir=%{_bindir} \ |
|---|
| 44 |
--datadir=%{_datadir} \ |
|---|
| 45 |
--includedir=%{_includedir} \ |
|---|
| 46 |
--libdir=%{_libdir} \ |
|---|
| 47 |
--mandir=%{_mandir} \ |
|---|
| 48 |
--sysconfdir=%{_sysconfdir} |
|---|
| 49 |
|
|---|
| 50 |
make |
|---|
| 51 |
|
|---|
| 52 |
%install |
|---|
| 53 |
rm -rf %{buildroot} |
|---|
| 54 |
make DESTDIR=$RPM_BUILD_ROOT install |
|---|
| 55 |
|
|---|
| 56 |
# Delete files that we don't want to put in any of the RPMs |
|---|
| 57 |
# Don't need to do this as we don't leave any cruft hanging around anyway |
|---|
| 58 |
|
|---|
| 59 |
%clean |
|---|
| 60 |
rm -rf %{buildroot} |
|---|
| 61 |
|
|---|
| 62 |
%pre |
|---|
| 63 |
|
|---|
| 64 |
%post |
|---|
| 65 |
|
|---|
| 66 |
%files |
|---|
| 67 |
%defattr(-, root, root) |
|---|
| 68 |
|
|---|
| 69 |
%doc AUTHORS |
|---|
| 70 |
%doc COPYING |
|---|
| 71 |
%doc ChangeLog |
|---|
| 72 |
%doc NEWS |
|---|
| 73 |
%doc README |
|---|
| 74 |
%doc REQUIRES |
|---|
| 75 |
%doc THANKS |
|---|
| 76 |
%doc doc/help/User_Guide.pdf |
|---|
| 77 |
|
|---|
| 78 |
%{_bindir}/fahmon |
|---|
| 79 |
%{_libdir}/libwxcurl.* |
|---|
| 80 |
%{_datadir}/pixmaps/fahmon |
|---|
| 81 |
%{_datadir}/icons/hicolor/*/apps/fahmon* |
|---|
| 82 |
%{_datadir}/applications/* |
|---|
| 83 |
%{_datadir}/locale/*/LC_MESSAGES/fahmon.mo |
|---|
| 84 |
%{_datadir}/fahmon/templates/* |
|---|
| 85 |
|
|---|
| 86 |
%changelog |
|---|
| 87 |
* Fri Oct 08 2010 Andrew Schofield <andrew_s@fahmon.net> |
|---|
| 88 |
- Fixed spec file. Thanks to "error". |
|---|
| 89 |
|
|---|
| 90 |
* Thu Jan 17 2008 Andrew Schofield <andrew_s@fahmon.net> |
|---|
| 91 |
- Added GNU build macros to auto insert version number. |
|---|
| 92 |
|
|---|
| 93 |
* Tue Oct 30 2007 Andrew Schofield <andrew_s@fahmon.net> |
|---|
| 94 |
- Updated to 2.3.1 |
|---|
| 95 |
|
|---|
| 96 |
* Mon Sep 10 2007 Andrew Schofield <andrew_s@fahmon.net> |
|---|
| 97 |
- Updated to 2.3.0 |
|---|
| 98 |
|
|---|
| 99 |
* Wed Aug 01 2007 Andrew Schofield <andrew_s@fahmon.net> |
|---|
| 100 |
- Updated description |
|---|
| 101 |
|
|---|
| 102 |
* Thu Jul 12 2007 Andrew Schofield <andrew_s@fahmon.net> |
|---|
| 103 |
- New spec file for PCLinuxOS 2007, ripped apart from the pidgin 2.0.0beta7 spec file (http://pidgin.im) |
|---|