packages: asterisk/asterisk.spec -bcond h323

aredridel aredridel at pld-linux.org
Wed Dec 8 21:39:19 CET 2010


Author: aredridel                    Date: Wed Dec  8 20:39:19 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
-bcond h323

---- Files affected:
packages/asterisk:
   asterisk.spec (1.186 -> 1.187) 

---- Diffs:

================================================================
Index: packages/asterisk/asterisk.spec
diff -u packages/asterisk/asterisk.spec:1.186 packages/asterisk/asterisk.spec:1.187
--- packages/asterisk/asterisk.spec:1.186	Mon Dec  6 22:30:01 2010
+++ packages/asterisk/asterisk.spec	Wed Dec  8 21:39:13 2010
@@ -30,6 +30,7 @@
 %bcond_with	zhone_hack	# huge hack workarounding broken zhone channel banks which start randomly
 				# issuing pulse-dialled calls to weird numbers
 %bcond_with	bristuff	# BRIstuff (Junghanns.NET BRI adapters) support
+%bcond_without	h323		# with h323 support
 %bcond_without	apidocs		# disable apidocs building
 %bcond_without	verbose		# verbose build
 
@@ -108,7 +109,9 @@
 BuildRequires:	net-snmp-devel
 BuildRequires:	newt-devel
 BuildRequires:	openais-devel
+%if %{with h323}
 BuildRequires:	openh323-devel >= 1.19.0
+%endif
 BuildRequires:	openldap-devel
 BuildRequires:	openssl-devel >= 0.9.7d
 BuildRequires:	pam-devel
@@ -116,7 +119,9 @@
 BuildRequires:	popt-devel
 BuildRequires:	portaudio-devel >= 19
 BuildRequires:	postgresql-devel
+%if %{with h323}
 BuildRequires:	pwlib-devel
+%endif
 BuildRequires:	radiusclient-ng-devel
 BuildRequires:	rpmbuild(macros) >= 1.268
 BuildRequires:	sed >= 4.0
@@ -595,6 +600,7 @@
 	%{?with_bristuff:--with-gsmat=%{_prefix}} \
 	--with-imap=system \
 	--with-gsm=/usr \
+	%{!?with_h3232:--without-h323} \
 	--with-lpc10=/usr \
 	--with-libedit=yes
 
@@ -603,9 +609,11 @@
 
 cp -f .cleancount .lastclean
 
+%if %{with h323}
 # included conditionally, so make sure its there first
 %{__make} -C channels/h323 Makefile.ast \
 	%{?with_verbose:NOISY_BUILD=yes} \
+%endif
 
 %{__make} DEBUG= \
 	OPTIMIZE= \
@@ -1149,8 +1157,10 @@
 
 %files h323
 %defattr(644,root,root,755)
+%if %{with h323}
 %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/h323.conf
 %attr(755,root,root) %{_libdir}/asterisk/modules/chan_h323.so
+%endif
 
 %files http
 %defattr(644,root,root,755)
@@ -1337,6 +1347,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.187  2010/12/08 20:39:13  aredridel
+-bcond h323
+
 Revision 1.186  2010/12/06 21:30:01  arekm
 - package more files
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/asterisk/asterisk.spec?r1=1.186&r2=1.187&f=u



More information about the pld-cvs-commit mailing list