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 \ |