"Fossies" - the Fresh Open Source Software Archive

Member "procmeter3-3.6+svn387/contrib/procmeter3-3.4a.spec" (31 Jul 2003, 2119 Bytes) of package /linux/misc/procmeter3-3.6+svn387.tgz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) RPM Spec source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 %define name        procmeter3
    2 %define version     3.4a
    3 %define release     1
    4 
    5 Summary:        ProcMeter3 - Linux system monitoring program.
    6 Name:           %{name} 
    7 Version:        %{version}
    8 Release:        %{release}
    9 Copyright:      GPL
   10 Group:          Applications/System
   11 Source:         %{name}-%{version}.tgz
   12 URL:            http://www.gedanken.demon.co.uk/procmeter3/
   13 Packager:       thias <matthias.brill@akamail.com>
   14 BuildRoot:      %{_tmppath}/%{name}-%{version}-buildroot
   15 
   16 %description
   17 
   18 Displays in a series of graph (using X windows) statistics about the
   19 system status (amount of CPU, memory, disk accesses, IP packets) and
   20 user level information (date, time, mailbox size). 
   21 
   22 %prep
   23 %setup
   24 # separate the READMEs
   25 %{__cp} modules/README modules/README.modules
   26 # adjust the Makefile
   27 %{__mv} Makefile Makefile.default
   28 %{__cat} Makefile.default \
   29   | %{__sed} -e "s#^INSTDIR=.*#INSTDIR=%{_prefix}#" \
   30   | %{__sed} -e "s#^MANDIR=.*#MANDIR=%{_mandir}#" \
   31   | %{__sed} -e "s#^LIB_PATH=.*#LIB_PATH=%{_datadir}/procmeter3#" \
   32   > Makefile
   33 
   34 %build
   35 %{__make}
   36 
   37 
   38 %install
   39 %{__rm} -rf $RPM_BUILD_ROOT
   40 %{__mkdir} -p $RPM_BUILD_ROOT%{_bindir}
   41 %{__mkdir} -p $RPM_BUILD_ROOT%{_mandir}/{man1,man5}
   42 %{__mkdir} -p $RPM_BUILD_ROOT%{_includedir}
   43 %{__mkdir} -p $RPM_BUILD_ROOT%{_datadir}/procmeter3/modules
   44 
   45 # binaries
   46 %{__install} -m 755 procmeter3 $RPM_BUILD_ROOT%{_bindir}
   47 %{__install} -m 755 gprocmeter3 $RPM_BUILD_ROOT%{_bindir}
   48 %{__install} -m 755 procmeter3-log $RPM_BUILD_ROOT%{_bindir}
   49 %{__install} -m 755 procmeter3-lcd $RPM_BUILD_ROOT%{_bindir}
   50 
   51 # manual pages
   52 %{__install} -m 644 man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
   53 %{__install} -m 644 man/*.5 $RPM_BUILD_ROOT%{_mandir}/man5
   54 
   55 # rc file
   56 %{__install} -m 644 procmeterrc.install $RPM_BUILD_ROOT%{_datadir}/procmeter3/procmeterrc
   57 
   58 # header file
   59 %{__install} -m 644 procmeter.h $RPM_BUILD_ROOT%{_includedir}
   60 
   61 # modules
   62 %{__install} -m 755 modules/*.so $RPM_BUILD_ROOT%{_datadir}/procmeter3/modules
   63 
   64 %clean
   65 %{__rm} -rf $RPM_BUILD_ROOT
   66 
   67 %files
   68 %defattr(-,root,root)
   69 %{_bindir}/*
   70 %{_mandir}/man*/*
   71 %{_datadir}/procmeter3
   72 %{_includedir}/procmeter.h
   73 %doc ANNOUNCE LSM NEWS README ChangeLog 
   74 %doc modules/README.modules modules/template.c
   75