File: gps.spec.in

package info (click to toggle)
gps 0.9.4-1.woody2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 964 kB
  • ctags: 928
  • sloc: cpp: 10,822; sh: 381; makefile: 307; ansic: 227; perl: 17
file content (94 lines) | stat: -rw-r--r-- 2,594 bytes parent folder | download | duplicates (4)
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
%define ver       @GPS_RELEASE@
%define rel       1
%define prefix    /usr

Summary: A graphical system process monitor.
Name: gps
Version: %ver
Release: %rel
Copyright: GPL
Group: Applications/System
Source: ftp://ftp.seul.org/pub/gps/gps-%{version}.tar.gz
URL: http://gps.seul.org
Buildroot: /var/tmp/%{name}-root

%description
gps is a graphical applet to watch system processes, like
ps and top. It shows lots of information on each process
and allows users to kill, send signals to, renice and filter
processes, as well as watch system load. It also allows the
user to watch processes and system load from hosts in a
network.

%prep
%setup -q

%build
%configure
./configure --prefix=%prefix
make

%install
rm -rf $RPM_BUILD_ROOT

make DESTDIR=$RPM_BUILD_ROOT install
#install -c -d $RPM_BUILD_ROOT%%prefix/bin
#install -c -d $RPM_BUILD_ROOT%%prefix/man/man1
#install -c -d $RPM_BUILD_ROOT%%prefix/share/icons
#install -c gps $RPM_BUILD_ROOT%%prefix/bin
#install -c gps.1x $RPM_BUILD_ROOT%%prefix/man/man1
#install -c pixmaps/xray-tux.xpm $RPM_BUILD_ROOT%%prefix/share/icons
#install -c pixmaps/bsdwatcher.xpm $RPM_BUILD_ROOT%%prefix/share/icons
#install -c rgpsp/linux/linux_rgpsp $RPM_BUILD_ROOT%%prefix/bin
#install -c -d $RPM_BUILD_ROOT/etc
#install -m0644 -c rgpsp/sample.rgpsp.conf $RPM_BUILD_ROOT/etc/rgpsp.conf
#install -c -d $RPM_BUILD_ROOT/etc/rc.d/init.d
#install -c rgpsp/sysv.rgpsp.sh $RPM_BUILD_ROOT/etc/rc.d/init.d/rgpsp

#do this so that the symlink doesn't point to the buildroot
cd $RPM_BUILD_ROOT/%prefix/bin && ln -sf rgpsp_linux rgpsp && cd - ;

chmod 644 $RPM_BUILD_ROOT/%prefix/man/*/*
chmod 644 $RPM_BUILD_ROOT/%prefix/share/icons/*
chmod 644 $RPM_BUILD_ROOT/etc/rgpsp.conf

%clean
rm -rf $RPM_BUILD_ROOT

%post
/sbin/chkconfig --add rgpsp

%preun
if [ $1 = 0 ]; then
	/sbin/chkconfig --del rgpsp
fi

%files
%defattr(-,root,root)
%doc CHANGELOG COPYING INSTALL README
%config(noreplace) /etc/rgpsp.conf
%config /etc/rc.d/init.d/rgpsp
%prefix/bin/*
%prefix/man/*/*
%prefix/share/icons/xray-tux.xpm

%changelog
* Mon Jul 31 2000 Felipe Bergo <bergo@seul.org>
- updated to 0.9.1
- adapted Tim's spec to mine
- If you patch this again, do so to the gps.spec.in file in
  the gps source top level directory.

* Thu May 11 2000 Tim Powers <timp@redhat.com>
- updated to 0.8.1
- patched so that it uses chkconfig
- patched makefiles so that we can clean up the spec a bit to make it easier
  to maintain

* Thu Nov 11 1999 Tim Powers <timp@redhat.com>
- updated to 0.4.1
- gzip man pages

* Wed Aug 4 1999 Tim Powers <timp@redhat.com>
- created spec
- built for Powertools