123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307 |
- # Basic Information
- Name: rrdtool
- Summary: RRDtool - Round Robin Database tool
- Summary(ja): RRDtool - ラウンドロビンデータベースツール
- Version: 1.9.0
- Release: 1%{?_dist_release}
- Group: admin-tools,graphics
- Vendor: Project Vine
- Distribution: Vine Linux
- Packager: yasumichi
- License: GPLv2+ with exceptions
- URL: https://oss.oetiker.ch/rrdtool/
- Source0: https://github.com/oetiker/rrdtool-1.x/releases/download/v%{version}/rrdtool-%{version}.tar.gz
- Patch3: rrdtool-1.6.0-ruby-2-fix.patch
- BuildRoot: %{_tmppath}/%{name}-%{version}-root
- # Dependency
- BuildRequires: glib2-devel
- BuildRequires: glibc-devel
- BuildRequires: libdbi-devel
- BuildRequires: libxml2-devel
- BuildRequires: lua-devel
- BuildRequires: pango-devel
- BuildRequires: perl(ExtUtils::MakeMaker)
- BuildRequires: ruby-devel
- BuildRequires: tcl-devel
- %description
- It is pretty easy to gather status information from all sorts of things,
- ranging from the temperature in your office to the number of octets which
- have passed through the FDDI interface of your router. But it is not so
- trivial to store this data in a efficient and systematic manner. This is
- where RRDtool kicks in. It lets you log and analyze the data you gather from
- all kinds of data-sources (DS). The data analysis part of RRDtool is based
- on the ability to quickly generate graphical representations of the data
- values collected over a definable time period.
- #%%description -l ja
- %package devel
- Summary: Libraries and include files of RRDtool
- Group: system
- Requires: %{name} = %{version}-%{release}
- %description devel
- Libraries and include files of RRDtool
- %package doc
- Summary: RRDtool documentation
- Summary(ja): RRDtool のドキュメント
- Group: documentation
- BuildArch: noarch
- %description doc
- 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). This package contains documentation on using RRD.
- %package tcl
- Summary: RRDTool modules for tcl
- Group: programming
- Requires: %{name} = %{version}-%{release}
- %description tcl
- RRDTool bindings for Tcl.
- %package -n perl-rrdtool
- Summary: Perl RRDtool bindings
- Summary(ja): RRDTool の perl バインディング
- Group: programming
- Requires: %{name} = %{version}-%{release}
- Requires: perl(:MODULE_COMPAT_%perl_abi_version)
- %description -n perl-rrdtool
- The Perl RRDTool bindings.
- %package -n python3-rrdtool
- Summary: Python3 RRDTool bindings
- Summary(ja): RRDTool の Python3 バインディング
- Group: programming
- BuildRequires: python3-devel
- BuildRequires: python3-rpm-macros
- BuildRequires: python3-setuptools
- Requires: %{name} = %{version}-%{release}
- Requires: python(abi) = %{python3_version}
- %description -n python3-rrdtool
- RDTool bindings for python3.
- %package -n ruby-rrdtool
- Summary: Ruby RRDTool bindings
- Summary(ja): RRDTool の ruby バインディング
- Group: programming
- Requires: %{name} = %{version}-%{release}
- %description -n ruby-rrdtool
- RRDtool bindings for Ruby.
- %debug_package
- %prep
- %setup -q
- %patch3 -p1 -b .ruby-2-fix
- # Fix to find correct python dir on lib64
- perl -pi -e 's|get_python_lib\(0,0,prefix|get_python_lib\(1,0,prefix|g' \
- configure
- # Most edits shouldn't be necessary when using --libdir, but
- # w/o, some introduce hardcoded rpaths where they shouldn't
- perl -pi.orig -e 's|/lib\b|/%{_lib}|g' \
- configure Makefile.in php4/configure php4/ltconfig*
- # Perl 5.10 seems to not like long version strings, hack around it
- perl -pi.orig -e 's|1.299907080300|1.29990708|' \
- bindings/perl-shared/RRDs.pm bindings/perl-piped/RRDp.pm
- ./bootstrap
- %build
- export PYTHON=%{__python3}
- %configure \
- --disable-rpath \
- --disable-static \
- --with-perl-options="INSTALLDIRS=vendor" \
- --enable-python \
- --enable-ruby \
- --with-pic
- # Fix another rpath issue
- %{__perl} -pi.orig -e 's|-Wl,--rpath -Wl,\$rp||g' \
- bindings/perl-shared/Makefile.PL
- # Remove Rpath from Ruby
- %{__perl} -pi.orig -e 's|-Wl,--rpath -Wl,\$\(EPREFIX\)/lib||g' \
- bindings/ruby/extconf.rb
- sed -i 's|/ruby/extconf.rb|/ruby/extconf.rb --vendor |' bindings/Makefile
- # Force RRDp bits where we want 'em, not sure yet why the
- # --with-perl-options and --libdir don't take
- pushd bindings/perl-piped/
- perl Makefile.PL INSTALLDIRS=vendor
- perl -pi.orig -e 's|/lib/perl|/%{_lib}/perl|g' Makefile
- popd
- %make_build
- # Fix @perl@ and @PERL@
- find examples/ -type f \
- -exec perl -pi -e 's|^#! \@perl\@|#!%{__perl}|gi' {} \;
- find examples/ -name "*.pl" \
- -exec perl -pi -e 's|\015||gi' {} \;
- # Rebuild python
- pushd bindings/python
- %py3_build
- popd
- %install
- export PYTHON=%{__python3}
- %make_install PYTHON="$PYTHON"
- # Install ruby module by force
- mkdir -p $RPM_BUILD_ROOT/%{ruby_vendorarchdir}
- make -C bindings/ruby install DESTDIR=$RPM_BUILD_ROOT
- # Pesky RRDp.pm...
- mv $RPM_BUILD_ROOT%{perl_vendorlib}/RRDp.pm $RPM_BUILD_ROOT%{perl_vendorarch}/
- # Dunno why this is getting installed here...
- rm -f $RPM_BUILD_ROOT%{perl_vendorlib}/leaktest.pl
- # We only want .txt and .html files for the main documentation
- mkdir -p doc2/html doc2/txt
- cp -a doc/*.txt doc2/txt/
- cp -a doc/*.html doc2/html/
- # Put perl docs in perl package
- mkdir -p doc3/html
- mv doc2/html/RRD*.html doc3/html/
- # Clean up the examples
- rm -f examples/Makefile* examples/*.in examples/rrdcached/Makefile*
- # This is so rpm doesn't pick up perl module dependencies automatically
- find examples/ -type f -exec chmod 0644 {} \;
- # Reinstall python
- pushd bindings/python
- %py3_install
- popd
- # Clean up the buildroot
- rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}-* \
- $RPM_BUILD_ROOT%{_libdir}/librrd.la \
- $RPM_BUILD_ROOT%{_libdir}/lua/*/rrd.la \
- $RPM_BUILD_ROOT%{perl_vendorarch}/ntmake.pl \
- $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod \
- $RPM_BUILD_ROOT%{_datadir}/%{name}/examples \
- $RPM_BUILD_ROOT%{perl_vendorarch}/auto/*/{.packlist,*.bs}
- %find_lang %{name}
- %files -f %{name}.lang
- %license LICENSE
- %doc CONTRIBUTORS COPYRIGHT TODO NEWS CHANGES THREADS
- %{_bindir}/rrd*
- %{_libdir}/lua/*/rrd.so.*
- %{_libdir}/librrd*.so.*
- %{_mandir}/man1/*.1*
- %files devel
- %{_includedir}/rrd*.h
- %{_libdir}/lua/*/rrd.so
- %{_libdir}/librrd.so
- %{_libdir}/pkgconfig/librrd.pc
- %{_mandir}/man3/librrd.3*
- %files doc
- %doc examples doc2/html doc2/txt
- %files tcl
- %doc bindings/tcl/README
- #%{_datadir}/rrdtool/ifOctets.tcl
- #%{_datadir}/rrdtool/pkgIndex.tcl
- %{_libdir}/tclrrd*.so
- %{_libdir}/rrdtool/*.tcl
- %files -n perl-rrdtool
- %doc doc3/html
- %{perl_vendorarch}/RRDp.pm
- %{perl_vendorarch}/RRDs.pm
- %{perl_vendorarch}/auto/RRDs/RRDs.so
- %{_mandir}/man3/RRD?.3pm*
- %files -n python3-rrdtool
- %license bindings/python/COPYING
- %doc bindings/python/README*
- %{python3_sitearch}/rrdtool-*-py*.egg-info
- %{python3_sitearch}/rrdtool.*.so
- %files -n ruby-rrdtool
- %doc bindings/ruby/README
- %{ruby_vendorarchdir}/RRD.so
- %changelog
- * Mon Jun 16 2025 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.9.0-1
- - new upstream release.
- - built with perl-5.40.
- * Fri Nov 19 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.7.2-5
- - rebuilt with perl-5.34.0.
- - dropped ldconfig scriptlets.
- * Mon Nov 15 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.7.2-4
- - rebuilt with ruby-3.0.2.
- - dropped python2 support.
- * Wed Aug 19 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.7.2-3
- - fixed dependency.
- * Mon Aug 17 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.7.2-2
- - rebuilt with python-3.8.
- * Mon Mar 16 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.7.2-1
- - new upstream release.
- - built with ruby-2.6.5.
- - added python3 support.
- * Sat May 18 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.7.1-1
- - new upstream release.
- - rebuilt with perl-5.26.
- - rebuilt with ruby-2.4.6.
- - updated Patch3.
- * Sun Sep 13 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.9-3
- - rebuild with ruby-2.2.3
- * Sun Jan 25 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.9-2
- - rebuild with libdbi-0.9.0
- * Mon Jan 5 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 1.4.9-1
- - new upstream release.
- - added Group tag to subpackages
- - added ruby subpackages
- - split documents into subpackages
- - added %%post and %%postun section
- * Tue Jul 1 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.4.8-1
- - new upstream release.
- * Fri Feb 17 2012 Yasumichi Akahoshi <yasumichi@vinelinux.org> 1.4.7-1
- - initial build for Vine Linux
|