mico/mico.spec

changeset 699
da76d565ccd3
parent 85
e6a1cd7ed6ba
equal deleted inserted replaced
2:498470dc7bdf 3:f7717ac83387
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.13 34 Version: 2.3.13
35 Release: 20081215 35 Release: 20120800
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
44 # list of sources 44 # list of sources
45 Source0: http://www.mico.org/mico-%{version}.tar.gz 45 Source0: http://www.mico.org/mico-%{version}.tar.gz
46 Source2: rc.mico 46 Source2: rc.mico
47 47
48 # build information 48 # build information
49 Prefix: %{l_prefix} 49 BuildPreReq: OpenPKG, openpkg >= 20100101, make, gcc, gcc::with_cxx = yes
50 BuildRoot: %{l_buildroot} 50 PreReq: OpenPKG, openpkg >= 20100101
51 BuildPreReq: OpenPKG, openpkg >= 20060823, make, gcc, gcc::with_cxx = yes
52 PreReq: OpenPKG, openpkg >= 20060823
53 %if "%{with_ssl}" == "yes" 51 %if "%{with_ssl}" == "yes"
54 BuildPreReq: openssl 52 BuildPreReq: openssl
55 PreReq: openssl 53 PreReq: openssl
56 %endif 54 %endif
57 %if "%{with_x11}" == "yes" 55 %if "%{with_x11}" == "yes"
68 %endif 66 %endif
69 %if "%{with_tcl}" == "yes" 67 %if "%{with_tcl}" == "yes"
70 BuildPreReq: tcl 68 BuildPreReq: tcl
71 PreReq: tcl 69 PreReq: tcl
72 %endif 70 %endif
73 AutoReq: no
74 AutoReqProv: no
75 71
76 %description 72 %description
77 The acronym MICO expands to MICO Is CORBA. The intention of this 73 The acronym MICO expands to MICO Is CORBA. The intention of this
78 project is to provide a freely available and fully compliant 74 project is to provide a freely available and fully compliant
79 implementation of the CORBA standard. The following design 75 implementation of the CORBA standard. The following design
92 regex = mico-(__VER__)\.tar\.gz 88 regex = mico-(__VER__)\.tar\.gz
93 } 89 }
94 90
95 %prep 91 %prep
96 %setup -q -n mico 92 %setup -q -n mico
93 %{l_shtool} subst \
94 -e '/#include <mico\/impl.h>/a#include "limits.h"' \
95 orb/fast_array.cc
97 96
98 %build 97 %build
99 CC="%{l_cc}" 98 CC="%{l_cc}"
100 CXX="%{l_cxx}" 99 CXX="%{l_cxx}"
101 CFLAGS="%{l_cflags -O}" 100 CFLAGS="%{l_cflags -O}"
149 --disable-shared 148 --disable-shared
150 touch cpp/.depend 149 touch cpp/.depend
151 %{l_make} %{l_mflags -O} 150 %{l_make} %{l_mflags -O}
152 151
153 %install 152 %install
154 rm -rf $RPM_BUILD_ROOT
155
156 # make directory structure 153 # make directory structure
157 %{l_shtool} mkdir -f -p -m 755 \ 154 %{l_shtool} mkdir -f -p -m 755 \
158 $RPM_BUILD_ROOT%{l_prefix}/bin \ 155 $RPM_BUILD_ROOT%{l_prefix}/bin \
159 $RPM_BUILD_ROOT%{l_prefix}/lib \ 156 $RPM_BUILD_ROOT%{l_prefix}/lib \
160 $RPM_BUILD_ROOT%{l_prefix}/include/mico \ 157 $RPM_BUILD_ROOT%{l_prefix}/include/mico \
203 '%attr(-,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/mico' 200 '%attr(-,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/mico'
204 201
205 %files -f files 202 %files -f files
206 203
207 %clean 204 %clean
208 rm -rf $RPM_BUILD_ROOT
209 205
210 %pre 206 %pre
211 # before upgrade, save status and stop service 207 # before upgrade, save status and stop service
212 [ $1 -eq 2 ] || exit 0 208 [ $1 -eq 2 ] || exit 0
213 eval `%{l_rc} mico status 2>/dev/null | tee %{l_tmpfile}` 209 eval `%{l_rc} mico status 2>/dev/null | tee %{l_tmpfile}`

mercurial