20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
21 ## SUCH DAMAGE. |
21 ## SUCH DAMAGE. |
22 ## |
22 ## |
23 |
23 |
24 # package version |
24 # package version |
25 %define V_rrdtool 1.4.5 |
25 %define V_rrdtool 1.4.7 |
26 %define V_rrdtool_oo 0.31 |
26 %define V_rrdtool_oo 0.31 |
27 %define V_rrdtool_creator 1.0 |
27 %define V_rrdtool_creator 1.0 |
28 %define V_rrd_simple 1.44 |
28 %define V_rrd_simple 1.44 |
29 |
29 |
30 # package information |
30 # package information |
52 Patch0: rrdtool.patch |
52 Patch0: rrdtool.patch |
53 |
53 |
54 # build information |
54 # build information |
55 Prefix: %{l_prefix} |
55 Prefix: %{l_prefix} |
56 BuildRoot: %{l_buildroot} |
56 BuildRoot: %{l_buildroot} |
57 BuildPreReq: OpenPKG, openpkg >= 20040130, gcc, make, pkgconfig, perl-openpkg >= 5.8.3-20040126, perl-module, intltool |
57 BuildPreReq: OpenPKG, openpkg >= 20040130, gcc, make, pkgconfig, perl-openpkg >= 5.8.3-20040126, perl-module |
58 PreReq: OpenPKG, openpkg >= 20040130 |
58 PreReq: OpenPKG, openpkg >= 20040130 |
59 BuildPreReq: png, zlib, freetype, pango, cairo, libxml |
59 BuildPreReq: png, zlib, freetype, pango, cairo, libxml |
60 PreReq: png, zlib, freetype, pango, cairo, libxml |
60 PreReq: png, zlib, freetype, pango, cairo, libxml |
61 %if "%{with_perl}" == "yes" |
61 %if "%{with_perl}" == "yes" |
62 BuildPreReq: perl, perl-xml::with_libxml = yes, libart |
62 BuildPreReq: perl |
63 PreReq: perl, perl-xml::with_libxml = yes, libart |
63 PreReq: perl |
64 %endif |
64 %endif |
65 %if "%{with_python}" == "yes" |
65 %if "%{with_python}" == "yes" |
66 BuildPreReq: python |
66 BuildPreReq: python |
67 PreReq: python |
67 PreReq: python |
68 %endif |
68 %endif |
120 ) >config.cache |
123 ) >config.cache |
121 CC="%{l_cc}" \ |
124 CC="%{l_cc}" \ |
122 CPPFLAGS="%{l_cppflags}" \ |
125 CPPFLAGS="%{l_cppflags}" \ |
123 CFLAGS="%{l_cflags -O}" \ |
126 CFLAGS="%{l_cflags -O}" \ |
124 LDLAGS="%{l_ldflags}" \ |
127 LDLAGS="%{l_ldflags}" \ |
125 LIBS="`pkg-config pangocairo --libs`" \ |
128 LIBS="`pkg-config pangocairo --libs-only-l`" \ |
126 ./configure \ |
129 ./configure \ |
127 --cache-file=./config.cache \ |
130 --cache-file=./config.cache \ |
128 --prefix=%{l_prefix} \ |
131 --prefix=%{l_prefix} \ |
129 --mandir=%{l_prefix}/man \ |
132 --mandir=%{l_prefix}/man \ |
130 %if "%{with_python}" == "yes" |
133 %if "%{with_python}" == "yes" |
158 # install package |
159 # install package |
159 %{l_shtool} subst \ |
160 %{l_shtool} subst \ |
160 -e 's/^\(install-data-am:\).*/\1/' \ |
161 -e 's/^\(install-data-am:\).*/\1/' \ |
161 Makefile |
162 Makefile |
162 %{l_make} %{l_mflags} install \ |
163 %{l_make} %{l_mflags} install \ |
163 DESTDIR=$RPM_BUILD_ROOT AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" |
164 DESTDIR=$RPM_BUILD_ROOT DESTDIR="$RPM_BUILD_ROOT" |
164 |
165 |
165 # install Perl part |
166 # install Perl part |
166 %if "%{with_perl}" == "yes" |
167 %if "%{with_perl}" == "yes" |
167 %{l_prefix}/bin/perl-openpkg -d bindings/perl-piped install |
168 %{l_prefix}/bin/perl-openpkg -d bindings/perl-piped install |
168 %{l_prefix}/bin/perl-openpkg -d bindings/perl-shared install |
169 %{l_prefix}/bin/perl-openpkg -d bindings/perl-shared install |