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