mico/mico.spec

changeset 55
35f87223d24d
parent 5
3715407014ea
child 85
e6a1cd7ed6ba
equal deleted inserted replaced
0:084d6c30e0c7 1:59cb077c89bb
29 Packager: OpenPKG Foundation e.V. 29 Packager: OpenPKG Foundation e.V.
30 Distribution: OpenPKG Community 30 Distribution: OpenPKG Community
31 Class: PLUS 31 Class: PLUS
32 Group: RPC 32 Group: RPC
33 License: LGPL/GPL 33 License: LGPL/GPL
34 Version: 2.3.12 34 Version: 2.3.13
35 Release: 20080101 35 Release: 20081215
36 36
37 # package options 37 # package options
38 %option with_ssl no 38 %option with_ssl no
39 %option with_x11 no 39 %option with_x11 no
40 %option with_qt no 40 %option with_qt no
57 %if "%{with_x11}" == "yes" 57 %if "%{with_x11}" == "yes"
58 BuildPreReq: X11 58 BuildPreReq: X11
59 PreReq: X11 59 PreReq: X11
60 %endif 60 %endif
61 %if "%{with_qt}" == "yes" 61 %if "%{with_qt}" == "yes"
62 BuildPreReq: qt, pkgconfig 62 BuildPreReq: qt < 4, pkgconfig
63 PreReq: qt 63 PreReq: qt < 4
64 %endif 64 %endif
65 %if "%{with_gtk}" == "yes" 65 %if "%{with_gtk}" == "yes"
66 BuildPreReq: gtk 66 BuildPreReq: gtk
67 PreReq: gtk 67 PreReq: gtk
68 %endif 68 %endif
146 --with-tcl=%{l_prefix} \ 146 --with-tcl=%{l_prefix} \
147 %endif 147 %endif
148 --disable-mini-stl \ 148 --disable-mini-stl \
149 --disable-shared 149 --disable-shared
150 touch cpp/.depend 150 touch cpp/.depend
151 %{l_make} %{l_mflags} 151 %{l_make} %{l_mflags -O}
152 152
153 %install 153 %install
154 rm -rf $RPM_BUILD_ROOT 154 rm -rf $RPM_BUILD_ROOT
155 155
156 # make directory structure 156 # make directory structure
165 $RPM_BUILD_ROOT%{l_prefix}/man/man5 \ 165 $RPM_BUILD_ROOT%{l_prefix}/man/man5 \
166 $RPM_BUILD_ROOT%{l_prefix}/man/man8 166 $RPM_BUILD_ROOT%{l_prefix}/man/man8
167 167
168 # install binaries, libraries, headers 168 # install binaries, libraries, headers
169 %{l_make} %{l_mflags} install \ 169 %{l_make} %{l_mflags} install \
170 LDCONFIG=true \
170 INSTDIR=$RPM_BUILD_ROOT%{l_prefix} \ 171 INSTDIR=$RPM_BUILD_ROOT%{l_prefix} \
171 SHARED_INSTDIR=$RPM_BUILD_ROOT%{l_prefix} 172 SHARED_INSTDIR=$RPM_BUILD_ROOT%{l_prefix}
172 173
173 # install our own things 174 # install our own things
174 %{l_shtool} install -c -m 755 %{l_value -s -a} \ 175 %{l_shtool} install -c -m 755 %{l_value -s -a} \
177 # cleanup installation files 178 # cleanup installation files
178 rm -rf $RPM_BUILD_ROOT%{l_prefix}/doc 179 rm -rf $RPM_BUILD_ROOT%{l_prefix}/doc
179 rm -rf $RPM_BUILD_ROOT%{l_prefix}/include/ministl 180 rm -rf $RPM_BUILD_ROOT%{l_prefix}/include/ministl
180 rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/mico-setup.* 181 rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/mico-setup.*
181 strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true 182 strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
182 mv $RPM_BUILD_ROOT%{l_prefix}/man/man8/nsd.8 \
183 $RPM_BUILD_ROOT%{l_prefix}/man/man8/mico-nsd.8
184 ( cd $RPM_BUILD_ROOT%{l_prefix}/lib 183 ( cd $RPM_BUILD_ROOT%{l_prefix}/lib
185 for name in mico micoaux micocoss micoir; do 184 for name in mico micoaux micocoss micoir; do
186 mv lib${name}%{version}.a lib${name}.a 185 mv lib${name}%{version}.a lib${name}.a
187 done 186 done
188 %if "%{with_x11}" == "yes" 187 %if "%{with_x11}" == "yes"

mercurial