rrdtool/rrdtool.spec

changeset 490
615d51fb3fea
parent 368
603801a09393
child 491
ccaf26ae9b81
equal deleted inserted replaced
4:8e88079b079d 5:47e0fd91e153
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
36 Distribution: OpenPKG Community 36 Distribution: OpenPKG Community
37 Class: BASE 37 Class: BASE
38 Group: Database 38 Group: Database
39 License: LGPL 39 License: LGPL
40 Version: %{V_rrdtool} 40 Version: %{V_rrdtool}
41 Release: 20110915 41 Release: 20120208
42 42
43 # package options 43 # package options
44 %option with_perl no 44 %option with_perl no
45 %option with_python no 45 %option with_python no
46 46
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
108 %setup -q -D -T -a 3 108 %setup -q -D -T -a 3
109 %patch -p0 109 %patch -p0
110 %{l_shtool} subst \ 110 %{l_shtool} subst \
111 -e 's;\-std=c99 *;;g' \ 111 -e 's;\-std=c99 *;;g' \
112 configure 112 configure
113 %{l_shtool} subst \
114 -e 's;@l_pangocairo@;`pkg-config pangocairo --libs-only-l`;' \
115 bindings/perl-shared/Makefile.PL
113 rm -f bindings/perl-shared/ntmake.pl 116 rm -f bindings/perl-shared/ntmake.pl
114 rm -rf RRDTool-Creator-*/_build 117 rm -rf RRDTool-Creator-*/_build
115 118
116 %build 119 %build
117 # configure package 120 # configure package
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"
133 --disable-python \ 136 --disable-python \
134 %endif 137 %endif
135 --disable-tcl \ 138 --disable-tcl \
136 --disable-ruby \ 139 --disable-ruby \
137 --disable-shared \ 140 --disable-shared \
138 --enable-local-libpng \
139 --enable-local-zlib \
140 --enable-rrdcgi 141 --enable-rrdcgi
141 142
142 # build package 143 # build package
143 %{l_make} %{l_mflags} 144 %{l_make} %{l_mflags}
144 145
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

mercurial