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