1 | |
---|
2 | # Basic Information |
---|
3 | Name: rrdtool |
---|
4 | Version: 1.4.9 |
---|
5 | Release: 3%{?_dist_release} |
---|
6 | License: GPLv2+ with exceptions |
---|
7 | Group: Applications/Databases |
---|
8 | URL: http://oss.oetiker.ch/rrdtool/ |
---|
9 | |
---|
10 | Source0: http://oss.oetiker.ch/%{name}/pub/%{name}-%{version}.tar.gz |
---|
11 | Patch3: rrdtool-1.4.7-ruby-2-fix.patch |
---|
12 | |
---|
13 | Summary: RRDtool - Round Robin Database tool |
---|
14 | Summary(ja): RRDtool - ラウンドロビンデータベースツール |
---|
15 | |
---|
16 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
17 | # Dependency |
---|
18 | BuildRequires: glib2-devel |
---|
19 | BuildRequires: glibc-devel |
---|
20 | BuildRequires: libdbi-devel |
---|
21 | BuildRequires: libxml2-devel |
---|
22 | BuildRequires: lua-devel |
---|
23 | BuildRequires: pango-devel |
---|
24 | BuildRequires: perl(ExtUtils::MakeMaker) |
---|
25 | BuildRequires: python-devel |
---|
26 | BuildRequires: ruby-devel |
---|
27 | BuildRequires: tcl-devel |
---|
28 | |
---|
29 | Vendor: Project Vine |
---|
30 | Distribution: Vine Linux |
---|
31 | Packager: yasumichi |
---|
32 | |
---|
33 | |
---|
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 |
---|
48 | Group: Development/Libraries |
---|
49 | Requires: %{name} = %{version}-%{release} |
---|
50 | |
---|
51 | %description devel |
---|
52 | Libraries and include files of RRDtool |
---|
53 | |
---|
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 | |
---|
67 | %package tcl |
---|
68 | Summary: RRDTool modules for tcl |
---|
69 | Group: Development/Libraries |
---|
70 | Requires: %{name} = %{version}-%{release} |
---|
71 | |
---|
72 | %description tcl |
---|
73 | RRDTool bindings for Tcl. |
---|
74 | |
---|
75 | |
---|
76 | %package -n perl-rrdtool |
---|
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)) |
---|
82 | |
---|
83 | %description -n perl-rrdtool |
---|
84 | The Perl RRDTool bindings. |
---|
85 | |
---|
86 | |
---|
87 | %package -n python-rrdtool |
---|
88 | Summary: Python RRDTool bindings |
---|
89 | Summary(ja): RRDTool の Python バインディング |
---|
90 | Group: Development/Libraries |
---|
91 | Requires: %{name} = %{version}-%{release} |
---|
92 | |
---|
93 | %description -n python-rrdtool |
---|
94 | RDTool bindings for python. |
---|
95 | |
---|
96 | |
---|
97 | %package -n ruby-rrdtool |
---|
98 | Summary: Ruby RRDTool bindings |
---|
99 | Summary(ja): RRDTool の ruby バインディング |
---|
100 | Group: Development/Libraries |
---|
101 | Requires: %{name} = %{version}-%{release} |
---|
102 | |
---|
103 | %description -n ruby-rrdtool |
---|
104 | RRDtool bindings for Ruby. |
---|
105 | |
---|
106 | |
---|
107 | %prep |
---|
108 | %setup -q |
---|
109 | %patch3 -p1 -b .ruby-2-fix |
---|
110 | |
---|
111 | %build |
---|
112 | %configure \ |
---|
113 | --disable-rpath \ |
---|
114 | --disable-static \ |
---|
115 | --enable-perl-site-install \ |
---|
116 | --with-perl-options="INSTALLDIRS=vendor" \ |
---|
117 | --enable-ruby \ |
---|
118 | --with-pic |
---|
119 | |
---|
120 | # Fix another rpath issue |
---|
121 | %{__perl} -pi.orig -e 's|-Wl,--rpath -Wl,\$rp||g' \ |
---|
122 | bindings/perl-shared/Makefile.PL |
---|
123 | |
---|
124 | # Remove Rpath from Ruby |
---|
125 | %{__perl} -pi.orig -e 's|-Wl,--rpath -Wl,\$\(EPREFIX\)/lib||g' \ |
---|
126 | bindings/ruby/extconf.rb |
---|
127 | sed -i 's| extconf.rb| extconf.rb --vendor |' bindings/Makefile |
---|
128 | |
---|
129 | perl -pi -e 's/(rrdcached_LDADD =)/$1 \$(ALL_LIBS) /' src/Makefile |
---|
130 | %{__make} %{?_smp_mflags} |
---|
131 | |
---|
132 | |
---|
133 | %install |
---|
134 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
135 | %{__make} install DESTDIR=${RPM_BUILD_ROOT} |
---|
136 | |
---|
137 | # Install ruby module by force |
---|
138 | mkdir -p $RPM_BUILD_ROOT/%{ruby_vendorarchdir} |
---|
139 | make -C bindings/ruby install DESTDIR=$RPM_BUILD_ROOT |
---|
140 | |
---|
141 | # We only want .txt and .html files for the main documentation |
---|
142 | rm -rf docs_to_be_included |
---|
143 | mkdir -p docs_to_be_included/html docs_to_be_included/txt |
---|
144 | mv $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/html/* docs_to_be_included/html/ |
---|
145 | mv $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/txt/* docs_to_be_included/txt/ |
---|
146 | |
---|
147 | # Put perl docs in perl package |
---|
148 | rm -rf docs_perl |
---|
149 | mkdir -p docs_perl/html |
---|
150 | mv docs_to_be_included/html/RRD*.html docs_perl/html/ |
---|
151 | |
---|
152 | # Clean up |
---|
153 | %{__rm} -rf $RPM_BUILD_ROOT%{_docdir}/%{name}-* |
---|
154 | %{__rm} -f ${RPM_BUILD_ROOT}%{_prefix}/lib/lua/*/rrd.la |
---|
155 | %{__rm} -f ${RPM_BUILD_ROOT}%{_libdir}/librrd*.la |
---|
156 | %{__rm} -f ${RPM_BUILD_ROOT}%{perl_archlib}/perllocal.pod |
---|
157 | %{__rm} -f ${RPM_BUILD_ROOT}%{perl_vendorarch}/auto/*/.packlist |
---|
158 | |
---|
159 | |
---|
160 | %clean |
---|
161 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
162 | |
---|
163 | %post -p /sbin/ldconfig |
---|
164 | |
---|
165 | %postun -p /sbin/ldconfig |
---|
166 | |
---|
167 | %files |
---|
168 | %defattr(-,root,root) |
---|
169 | #doc COPYING NEWS README TODO |
---|
170 | %{_bindir}/rrd* |
---|
171 | %{_prefix}/lib/lua/*/rrd.so.* |
---|
172 | %{_libdir}/librrd*.so.* |
---|
173 | %{_mandir}/man1/*.1* |
---|
174 | %{_datadir}/rrdtool/examples/cgi-demo.cgi |
---|
175 | |
---|
176 | %files devel |
---|
177 | %defattr(-,root,root) |
---|
178 | %{_includedir}/rrd*.h |
---|
179 | %{_prefix}/lib/lua/*/rrd.so |
---|
180 | %{_libdir}/librrd.so |
---|
181 | %{_libdir}/librrd_th.so |
---|
182 | %{_libdir}/pkgconfig/librrd.pc |
---|
183 | %{_mandir}/man3/librrd.3* |
---|
184 | |
---|
185 | %files doc |
---|
186 | %defattr(-,root,root,-) |
---|
187 | %doc CONTRIBUTORS COPYING COPYRIGHT README TODO NEWS THREADS |
---|
188 | %doc docs_to_be_included/html docs_to_be_included/txt |
---|
189 | |
---|
190 | %files tcl |
---|
191 | %defattr(-,root,root) |
---|
192 | %doc bindings/tcl/README |
---|
193 | %{_datadir}/rrdtool/ifOctets.tcl |
---|
194 | %{_datadir}/rrdtool/pkgIndex.tcl |
---|
195 | %{_libdir}/tclrrd*.so |
---|
196 | |
---|
197 | %files -n perl-rrdtool |
---|
198 | %defattr(-,root,root) |
---|
199 | %{perl_vendorlib}/RRDp.pm |
---|
200 | %{perl_vendorarch}/RRDs.pm |
---|
201 | %{perl_vendorarch}/auto/RRDs/RRDs.bs |
---|
202 | %{perl_vendorarch}/auto/RRDs/RRDs.so |
---|
203 | %{_datadir}/rrdtool/examples/*.pl |
---|
204 | %{_datadir}/rrdtool/examples/rrdcached/RRDCached.pm |
---|
205 | %{_datadir}/rrdtool/examples/rrdcached/rrdcached-size.pl |
---|
206 | %{_mandir}/man3/RRD?.3pm* |
---|
207 | |
---|
208 | %files -n python-rrdtool |
---|
209 | %defattr(-,root,root) |
---|
210 | %doc bindings/python/AUTHORS bindings/python/COPYING bindings/python/README |
---|
211 | %{python_sitearch}/py_rrdtool-*-py*.egg-info |
---|
212 | %{python_sitearch}/rrdtoolmodule.so |
---|
213 | |
---|
214 | %files -n ruby-rrdtool |
---|
215 | %defattr(-,root,root,-) |
---|
216 | %doc bindings/ruby/README |
---|
217 | %{ruby_vendorarchdir}/RRD.so |
---|
218 | |
---|
219 | %changelog |
---|
220 | * Sun Sep 13 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.9-3 |
---|
221 | - rebuild with ruby-2.2.3 |
---|
222 | |
---|
223 | * Sun Jan 25 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.9-2 |
---|
224 | - rebuild with libdbi-0.9.0 |
---|
225 | |
---|
226 | * Mon Jan 5 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 1.4.9-1 |
---|
227 | - new upstream release. |
---|
228 | - added Group tag to subpackages |
---|
229 | - added ruby subpackages |
---|
230 | - split documents into subpackages |
---|
231 | - added %%post and %%postun section |
---|
232 | |
---|
233 | * Tue Jul 1 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.4.8-1 |
---|
234 | - new upstream release. |
---|
235 | |
---|
236 | * Fri Feb 17 2012 Yasumichi Akahoshi <yasumichi@vinelinux.org> 1.4.7-1 |
---|
237 | - initial build for Vine Linux |
---|