kamailio/kamailio.spec

changeset 391
9ea3ce683273
parent 389
3cce61ce5fdd
child 408
751f89d647ed
equal deleted inserted replaced
0:9f23dc04f59a 1:a832d78c752a
30 Distribution: Europalab Networks Production 30 Distribution: Europalab Networks Production
31 Class: PLUS 31 Class: PLUS
32 Group: VoIP 32 Group: VoIP
33 License: GPL 33 License: GPL
34 Version: 3.1.5 34 Version: 3.1.5
35 Release: 20111000 35 Release: 20111001
36 36
37 # package options 37 # package options
38 %option with_cons yes 38 %option with_cons yes
39 %option with_fsl yes 39 %option with_fsl yes
40 %option with_ssl yes 40 %option with_ssl yes
169 %setup -q 169 %setup -q
170 %{l_shtool} subst \ 170 %{l_shtool} subst \
171 -e 's;\$(LOCALBASE)/[^/][^/]*/sctp.h;;g' \ 171 -e 's;\$(LOCALBASE)/[^/][^/]*/sctp.h;;g' \
172 -e 's;\$(LOCALBASE)/ssl/include;`%{l_prefix}/bin/pkg-config --cflags-only-I openssl`;g' \ 172 -e 's;\$(LOCALBASE)/ssl/include;`%{l_prefix}/bin/pkg-config --cflags-only-I openssl`;g' \
173 -e 's;\$(LOCALBASE)/ssl/lib;`%{l_prefix}/bin/pkg-config --libs openssl`;g' \ 173 -e 's;\$(LOCALBASE)/ssl/lib;`%{l_prefix}/bin/pkg-config --libs openssl`;g' \
174 -e 's;\(data_dir\) *= *\(\$(MAIN_NAME)\);\1 = share/\2;g' \
175 -e 's;LOCALBASE *[\?:]*=.*;LOCALBASE = %{l_prefix};g' \ 174 -e 's;LOCALBASE *[\?:]*=.*;LOCALBASE = %{l_prefix};g' \
175 -e 's;\(data_dir\) *=.*;\1 = share/$(MAIN_NAME);g' \
176 -e 's;\(doc_dir\) *=.*;\1 = share/$(MAIN_NAME)/doc;g' \
177 -e 's;\(man_dir\) *=.*;\1 = man/;g' \
176 Makefile.defs 178 Makefile.defs
177 %{l_shtool} subst \ 179 %{l_shtool} subst \
178 -e 's;CFLAGS *= *$;CFLAGS = %{l_cflags -O};g' \ 180 -e 's;CFLAGS *= *$;CFLAGS = %{l_cflags -O};g' \
179 -e 's;LDFLAGS *= *$;LDFLAGS = %{l_ldflags};g' \ 181 -e 's;LDFLAGS *= *$;LDFLAGS = %{l_ldflags};g' \
180 -e 's;C_INCLUDES *= *$;C_INCLUDES = %{l_cppflags};g' \ 182 -e 's;C_INCLUDES *= *$;C_INCLUDES = %{l_cppflags};g' \
187 -e 's;-I$(LOCALBASE)/include[^ ]* *;;g' \ 189 -e 's;-I$(LOCALBASE)/include[^ ]* *;;g' \
188 -e 's;-I$(SYSBASE)/include[^ ]* *;;g' \ 190 -e 's;-I$(SYSBASE)/include[^ ]* *;;g' \
189 -e 's;LIBS=.*;LIBS=`%{l_prefix}/bin/pkg-config --libs db`;g' \ 191 -e 's;LIBS=.*;LIBS=`%{l_prefix}/bin/pkg-config --libs db`;g' \
190 utils/db_berkeley/Makefile 192 utils/db_berkeley/Makefile
191 %{l_shtool} subst \ 193 %{l_shtool} subst \
192 -e 's;\(mkdir.*\$(data_prefix)/\$(data_dir)/.*\)/kamailio;\1;g' \ 194 -e 's;\(\$(data_prefix)/\$(data_dir)/.*\)/kamailio;\1;g' \
193 utils/kamctl/Makefile 195 utils/kamctl/Makefile
194 %{l_shtool} subst \ 196 %{l_shtool} subst \
195 -e 's;\(radiusclient\)-ng;\1;g' \ 197 -e 's;\(radiusclient\)-ng;\1;g' \
196 -e 's;/usr/local\(/etc/radiusclient/radiusclient.conf\);%{l_prefix}\1;' \ 198 -e 's;/usr/local\(/etc/radiusclient/radiusclient.conf\);%{l_prefix}\1;' \
197 Makefile.radius \ 199 Makefile.radius \

mercurial