[5728] | 1 | |
---|
| 2 | # Basic Information |
---|
| 3 | Name: rrdtool |
---|
[12333] | 4 | Summary: RRDtool - Round Robin Database tool |
---|
| 5 | Summary(ja): RRDtool - ラウンドロビンデータベースツール |
---|
| 6 | Version: 1.7.2 |
---|
[12120] | 7 | Release: 1%{?_dist_release} |
---|
[12333] | 8 | Group: Applications/Databases |
---|
[9229] | 9 | License: GPLv2+ with exceptions |
---|
[12333] | 10 | |
---|
[5728] | 11 | URL: http://oss.oetiker.ch/rrdtool/ |
---|
| 12 | Source0: http://oss.oetiker.ch/%{name}/pub/%{name}-%{version}.tar.gz |
---|
[12120] | 13 | Patch3: rrdtool-1.6.0-ruby-2-fix.patch |
---|
[5728] | 14 | |
---|
[9229] | 15 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
[5728] | 16 | # Dependency |
---|
| 17 | BuildRequires: glib2-devel |
---|
| 18 | BuildRequires: glibc-devel |
---|
[9229] | 19 | BuildRequires: libdbi-devel |
---|
[5728] | 20 | BuildRequires: libxml2-devel |
---|
| 21 | BuildRequires: lua-devel |
---|
| 22 | BuildRequires: pango-devel |
---|
[9229] | 23 | BuildRequires: perl(ExtUtils::MakeMaker) |
---|
| 24 | BuildRequires: python-devel |
---|
[12120] | 25 | BuildRequires: python-setuptools |
---|
[9229] | 26 | BuildRequires: ruby-devel |
---|
[9748] | 27 | BuildRequires: tcl-devel |
---|
[5728] | 28 | |
---|
[9229] | 29 | Vendor: Project Vine |
---|
| 30 | Distribution: Vine Linux |
---|
| 31 | Packager: yasumichi |
---|
| 32 | |
---|
| 33 | |
---|
[5728] | 34 | %description |
---|
| 35 | It is pretty easy to gather status information from all sorts of things, |
---|
| 36 | ranging from the temperature in your office to the number of octets which |
---|
| 37 | have passed through the FDDI interface of your router. But it is not so |
---|
| 38 | trivial to store this data in a efficient and systematic manner. This is |
---|
| 39 | where RRDtool kicks in. It lets you log and analyze the data you gather from |
---|
| 40 | all kinds of data-sources (DS). The data analysis part of RRDtool is based |
---|
| 41 | on the ability to quickly generate graphical representations of the data |
---|
| 42 | values collected over a definable time period. |
---|
| 43 | |
---|
| 44 | #%%description -l ja |
---|
| 45 | |
---|
| 46 | %package devel |
---|
| 47 | Summary: Libraries and include files of RRDtool |
---|
[9229] | 48 | Group: Development/Libraries |
---|
| 49 | Requires: %{name} = %{version}-%{release} |
---|
[5728] | 50 | |
---|
| 51 | %description devel |
---|
| 52 | Libraries and include files of RRDtool |
---|
| 53 | |
---|
[9229] | 54 | |
---|
| 55 | %package doc |
---|
| 56 | Summary: RRDtool documentation |
---|
| 57 | Summary(ja): RRDtool のドキュメント |
---|
| 58 | Group: Applications/Documentation |
---|
| 59 | BuildArch: noarch |
---|
| 60 | |
---|
| 61 | %description doc |
---|
| 62 | RRD is the Acronym for Round Robin Database. RRD is a system to store and |
---|
| 63 | display time-series data (i.e. network bandwidth, machine-room temperature, |
---|
| 64 | server load average). This package contains documentation on using RRD. |
---|
| 65 | |
---|
| 66 | |
---|
[5728] | 67 | %package tcl |
---|
| 68 | Summary: RRDTool modules for tcl |
---|
[9229] | 69 | Group: Development/Libraries |
---|
| 70 | Requires: %{name} = %{version}-%{release} |
---|
[5728] | 71 | |
---|
| 72 | %description tcl |
---|
[9229] | 73 | RRDTool bindings for Tcl. |
---|
[5728] | 74 | |
---|
[9229] | 75 | |
---|
[5728] | 76 | %package -n perl-rrdtool |
---|
[9229] | 77 | Summary: Perl RRDtool bindings |
---|
| 78 | Summary(ja): RRDTool の perl バインディング |
---|
| 79 | Group: Development/Libraries |
---|
| 80 | Requires: %{name} = %{version}-%{release} |
---|
| 81 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
---|
[5728] | 82 | |
---|
| 83 | %description -n perl-rrdtool |
---|
[9229] | 84 | The Perl RRDTool bindings. |
---|
[5728] | 85 | |
---|
[9229] | 86 | |
---|
[5728] | 87 | %package -n python-rrdtool |
---|
[9229] | 88 | Summary: Python RRDTool bindings |
---|
| 89 | Summary(ja): RRDTool の Python バインディング |
---|
| 90 | Group: Development/Libraries |
---|
| 91 | Requires: %{name} = %{version}-%{release} |
---|
[5728] | 92 | |
---|
| 93 | %description -n python-rrdtool |
---|
[9229] | 94 | RDTool bindings for python. |
---|
[5728] | 95 | |
---|
[9229] | 96 | |
---|
[12333] | 97 | %package -n python3-rrdtool |
---|
| 98 | Summary: Python3 RRDTool bindings |
---|
| 99 | Summary(ja): RRDTool の Python3 バインディング |
---|
| 100 | Group: Development/Libraries |
---|
| 101 | BuildRequires: python3-devel |
---|
| 102 | BuildRequires: python3-rpm-macros |
---|
| 103 | BuildRequires: python3-setuptools |
---|
| 104 | Requires: %{name} = %{version}-%{release} |
---|
| 105 | |
---|
| 106 | %description -n python3-rrdtool |
---|
| 107 | RDTool bindings for python3. |
---|
| 108 | |
---|
| 109 | |
---|
[9229] | 110 | %package -n ruby-rrdtool |
---|
| 111 | Summary: Ruby RRDTool bindings |
---|
| 112 | Summary(ja): RRDTool の ruby バインディング |
---|
| 113 | Group: Development/Libraries |
---|
| 114 | Requires: %{name} = %{version}-%{release} |
---|
| 115 | |
---|
| 116 | %description -n ruby-rrdtool |
---|
| 117 | RRDtool bindings for Ruby. |
---|
| 118 | |
---|
| 119 | |
---|
[5728] | 120 | %prep |
---|
| 121 | %setup -q |
---|
[9229] | 122 | %patch3 -p1 -b .ruby-2-fix |
---|
[12120] | 123 | autoreconf -vif |
---|
[5728] | 124 | |
---|
| 125 | %build |
---|
[8710] | 126 | %configure \ |
---|
[9229] | 127 | --disable-rpath \ |
---|
| 128 | --disable-static \ |
---|
| 129 | --enable-perl-site-install \ |
---|
| 130 | --with-perl-options="INSTALLDIRS=vendor" \ |
---|
| 131 | --enable-ruby \ |
---|
[12120] | 132 | --enable-ruby-site-install \ |
---|
[9229] | 133 | --with-pic |
---|
[8710] | 134 | |
---|
[9229] | 135 | # Fix another rpath issue |
---|
| 136 | %{__perl} -pi.orig -e 's|-Wl,--rpath -Wl,\$rp||g' \ |
---|
| 137 | bindings/perl-shared/Makefile.PL |
---|
| 138 | |
---|
| 139 | # Remove Rpath from Ruby |
---|
| 140 | %{__perl} -pi.orig -e 's|-Wl,--rpath -Wl,\$\(EPREFIX\)/lib||g' \ |
---|
| 141 | bindings/ruby/extconf.rb |
---|
[12120] | 142 | sed -i 's|/ruby/extconf.rb|/ruby/extconf.rb --vendor |' bindings/Makefile |
---|
[9229] | 143 | |
---|
[8710] | 144 | perl -pi -e 's/(rrdcached_LDADD =)/$1 \$(ALL_LIBS) /' src/Makefile |
---|
[5728] | 145 | %{__make} %{?_smp_mflags} |
---|
| 146 | |
---|
[12333] | 147 | %{__make} %{?_smp_mflags} -C bindings python PYTHON=%{__python3} |
---|
[9229] | 148 | |
---|
[5728] | 149 | %install |
---|
| 150 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 151 | %{__make} install DESTDIR=${RPM_BUILD_ROOT} |
---|
[12333] | 152 | pushd bindings/python |
---|
| 153 | %{py3_install} |
---|
| 154 | popd |
---|
[5728] | 155 | |
---|
[9229] | 156 | # Install ruby module by force |
---|
| 157 | mkdir -p $RPM_BUILD_ROOT/%{ruby_vendorarchdir} |
---|
| 158 | make -C bindings/ruby install DESTDIR=$RPM_BUILD_ROOT |
---|
| 159 | |
---|
| 160 | # We only want .txt and .html files for the main documentation |
---|
| 161 | rm -rf docs_to_be_included |
---|
| 162 | mkdir -p docs_to_be_included/html docs_to_be_included/txt |
---|
| 163 | mv $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/html/* docs_to_be_included/html/ |
---|
| 164 | mv $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/txt/* docs_to_be_included/txt/ |
---|
| 165 | |
---|
| 166 | # Put perl docs in perl package |
---|
| 167 | rm -rf docs_perl |
---|
| 168 | mkdir -p docs_perl/html |
---|
| 169 | mv docs_to_be_included/html/RRD*.html docs_perl/html/ |
---|
| 170 | |
---|
| 171 | # Clean up |
---|
| 172 | %{__rm} -rf $RPM_BUILD_ROOT%{_docdir}/%{name}-* |
---|
[12120] | 173 | %{__rm} -f ${RPM_BUILD_ROOT}%{_libdir}/lua/*/rrd.la |
---|
[5728] | 174 | %{__rm} -f ${RPM_BUILD_ROOT}%{_libdir}/librrd*.la |
---|
| 175 | %{__rm} -f ${RPM_BUILD_ROOT}%{perl_archlib}/perllocal.pod |
---|
[9229] | 176 | %{__rm} -f ${RPM_BUILD_ROOT}%{perl_vendorarch}/auto/*/.packlist |
---|
[5728] | 177 | |
---|
[12120] | 178 | %find_lang %{name} |
---|
[5728] | 179 | |
---|
| 180 | %clean |
---|
| 181 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 182 | |
---|
[9229] | 183 | %post -p /sbin/ldconfig |
---|
[5728] | 184 | |
---|
[9229] | 185 | %postun -p /sbin/ldconfig |
---|
| 186 | |
---|
[12120] | 187 | %files -f %{name}.lang |
---|
[5728] | 188 | %defattr(-,root,root) |
---|
[9229] | 189 | #doc COPYING NEWS README TODO |
---|
[5728] | 190 | %{_bindir}/rrd* |
---|
[12120] | 191 | %{_libdir}/lua/*/rrd.so.* |
---|
[5728] | 192 | %{_libdir}/librrd*.so.* |
---|
| 193 | %{_mandir}/man1/*.1* |
---|
| 194 | %{_datadir}/rrdtool/examples/cgi-demo.cgi |
---|
| 195 | |
---|
| 196 | %files devel |
---|
| 197 | %defattr(-,root,root) |
---|
| 198 | %{_includedir}/rrd*.h |
---|
[12120] | 199 | %{_libdir}/lua/*/rrd.so |
---|
[5728] | 200 | %{_libdir}/librrd.so |
---|
| 201 | %{_libdir}/pkgconfig/librrd.pc |
---|
[9229] | 202 | %{_mandir}/man3/librrd.3* |
---|
[5728] | 203 | |
---|
[9229] | 204 | %files doc |
---|
| 205 | %defattr(-,root,root,-) |
---|
[12120] | 206 | %license COPYRIGHT LICENSE |
---|
| 207 | %doc CONTRIBUTORS TODO NEWS THREADS |
---|
[9229] | 208 | %doc docs_to_be_included/html docs_to_be_included/txt |
---|
| 209 | |
---|
[5728] | 210 | %files tcl |
---|
| 211 | %defattr(-,root,root) |
---|
[9229] | 212 | %doc bindings/tcl/README |
---|
[12120] | 213 | #%{_datadir}/rrdtool/ifOctets.tcl |
---|
| 214 | #%{_datadir}/rrdtool/pkgIndex.tcl |
---|
[5728] | 215 | %{_libdir}/tclrrd*.so |
---|
[12120] | 216 | %{_libdir}/rrdtool/*.tcl |
---|
[5728] | 217 | |
---|
| 218 | %files -n perl-rrdtool |
---|
| 219 | %defattr(-,root,root) |
---|
[8710] | 220 | %{perl_vendorlib}/RRDp.pm |
---|
| 221 | %{perl_vendorarch}/RRDs.pm |
---|
| 222 | %{perl_vendorarch}/auto/RRDs/RRDs.so |
---|
[5728] | 223 | %{_datadir}/rrdtool/examples/*.pl |
---|
| 224 | %{_datadir}/rrdtool/examples/rrdcached/RRDCached.pm |
---|
| 225 | %{_datadir}/rrdtool/examples/rrdcached/rrdcached-size.pl |
---|
[9229] | 226 | %{_mandir}/man3/RRD?.3pm* |
---|
[5728] | 227 | |
---|
| 228 | %files -n python-rrdtool |
---|
| 229 | %defattr(-,root,root) |
---|
[12333] | 230 | %license bindings/python/COPYING |
---|
| 231 | %doc bindings/python/AUTHORS bindings/python/README |
---|
[12120] | 232 | %{python_sitearch}/rrdtool-*-py*.egg-info |
---|
| 233 | %{python_sitearch}/rrdtool.so |
---|
[12333] | 234 | |
---|
| 235 | %files -n python3-rrdtool |
---|
| 236 | %defattr(-,root,root) |
---|
| 237 | %license bindings/python/COPYING |
---|
| 238 | %doc bindings/python/AUTHORS bindings/python/README |
---|
| 239 | %{python3_sitearch}/rrdtool-*-py*.egg-info |
---|
| 240 | %{python3_sitearch}/rrdtool.*.so |
---|
[12120] | 241 | %{_datadir}/rrdtool/examples/*.py |
---|
[5728] | 242 | |
---|
[9229] | 243 | %files -n ruby-rrdtool |
---|
| 244 | %defattr(-,root,root,-) |
---|
| 245 | %doc bindings/ruby/README |
---|
| 246 | %{ruby_vendorarchdir}/RRD.so |
---|
| 247 | |
---|
[5728] | 248 | %changelog |
---|
[12333] | 249 | * Mon Mar 16 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.7.2-1 |
---|
| 250 | - new upstream release. |
---|
| 251 | - built with ruby-2.6.5. |
---|
| 252 | - added python3 support. |
---|
| 253 | |
---|
[12120] | 254 | * Sat May 18 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.7.1-1 |
---|
| 255 | - new upstream release. |
---|
| 256 | - rebuilt with perl-5.26. |
---|
| 257 | - rebuilt with ruby-2.4.6. |
---|
| 258 | - updated Patch3. |
---|
| 259 | |
---|
[9748] | 260 | * Sun Sep 13 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.9-3 |
---|
| 261 | - rebuild with ruby-2.2.3 |
---|
| 262 | |
---|
[9291] | 263 | * Sun Jan 25 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.9-2 |
---|
| 264 | - rebuild with libdbi-0.9.0 |
---|
| 265 | |
---|
[9229] | 266 | * Mon Jan 5 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 1.4.9-1 |
---|
| 267 | - new upstream release. |
---|
| 268 | - added Group tag to subpackages |
---|
| 269 | - added ruby subpackages |
---|
| 270 | - split documents into subpackages |
---|
| 271 | - added %%post and %%postun section |
---|
| 272 | |
---|
[8710] | 273 | * Tue Jul 1 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.4.8-1 |
---|
| 274 | - new upstream release. |
---|
| 275 | |
---|
[5728] | 276 | * Fri Feb 17 2012 Yasumichi Akahoshi <yasumichi@vinelinux.org> 1.4.7-1 |
---|
| 277 | - initial build for Vine Linux |
---|