| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121 |
- ##
- ## rrdtool.spec -- OpenPKG RPM Specification
- ## Copyright (c) 2000-2004 The OpenPKG Project <http://www.openpkg.org/>
- ## Copyright (c) 2000-2004 Ralf S. Engelschall <rse@engelschall.com>
- ## Copyright (c) 2000-2004 Cable & Wireless <http://www.cw.com/>
- ##
- ## Permission to use, copy, modify, and distribute this software for
- ## any purpose with or without fee is hereby granted, provided that
- ## the above copyright notice and this permission notice appear in all
- ## copies.
- ##
- ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
- ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
- ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
- ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- ## SUCH DAMAGE.
- ##
- # package information
- Name: rrdtool
- Summary: Round Robin Database
- URL: http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/
- Vendor: Tobias Oetiker
- Packager: The OpenPKG Project
- Distribution: OpenPKG
- Class: BASE
- Group: Database
- License: LGPL
- Version: 1.0.47
- Release: 20040405
- # list of sources
- Source0: http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/pub/rrdtool-%{version}.tar.gz
- # build information
- Prefix: %{l_prefix}
- BuildRoot: %{l_buildroot}
- BuildPreReq: OpenPKG, openpkg >= 20040130, perl, perl-openpkg >= 5.8.3-20040126, gcc
- PreReq: OpenPKG, openpkg >= 20040130, perl
- AutoReq: no
- AutoReqProv: no
- %description
- RRD is the Acronym for Round Robin Database. RRD is a system
- to store and display time-series data (i.e. network bandwidth,
- machine-room temperature, server load average). It stores the
- data in a very compact way that will not expand over time, and it
- presents useful graphs by processing the data to enforce a certain
- data density. It can be used either via simple wrapper scripts (from
- shell or Perl) or via frontends that poll network devices and put a
- friendly user interface on it.
- %track
- prog rrdtool = {
- version = %{version}
- url = http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/pub/
- regex = rrdtool-(__VER__)\.tar\.gz
- }
- %prep
- %setup -q
- %build
- # configure package
- echo "ac_cv_path_PERL=no" >config.cache
- CC="%{l_cc}" \
- CFLAGS="%{l_cflags -O}" \
- ./configure \
- --cache-file=./config.cache \
- --prefix=%{l_prefix} \
- --disable-shared
- # build package
- %{l_make} %{l_mflags -O}
- # build Perl part
- %{l_prefix}/bin/perl-openpkg prepare
- %{l_prefix}/bin/perl-openpkg -d perl-piped configure build
- %{l_prefix}/bin/perl-openpkg -d perl-shared configure build
- %install
- rm -rf $RPM_BUILD_ROOT
- # install package
- %{l_shtool} subst \
- -e 's/^\(install-data-am:\).*/\1/' \
- Makefile
- %{l_make} %{l_mflags} install \
- DESTDIR=$RPM_BUILD_ROOT AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
- # install Perl part
- %{l_prefix}/bin/perl-openpkg -d perl-piped install
- %{l_prefix}/bin/perl-openpkg -d perl-shared install
- # strip down installation hierarchy
- rm -rf $RPM_BUILD_ROOT%{l_prefix}/contrib
- rm -rf $RPM_BUILD_ROOT%{l_prefix}/doc
- rm -rf $RPM_BUILD_ROOT%{l_prefix}/html
- rm -rf $RPM_BUILD_ROOT%{l_prefix}/examples
- strip $RPM_BUILD_ROOT%{l_prefix}/bin/* 2>/dev/null || true
- # post-process Perl part
- %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
- # determine installation files
- %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
- %{l_files_std} `cat perl-openpkg-files`
- %files -f files
- %clean
- rm -rf $RPM_BUILD_ROOT
|