Added option to remove the H.323 subpackage.

git-svn-id: http://voip.null.ro/svn/yate@2033 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2008-06-19 21:37:18 +00:00
parent 8df26a72bf
commit 8516aae0a4
1 changed files with 14 additions and 0 deletions

View File

@ -1,11 +1,13 @@
# to add a distro release tag run rpmbuild --define 'dist value'
# to suppress auto dependencies run rpmbuild --define 'nodeps 1'
# to disable PSTN card drivers run rpmbuild --define 'nopstn 1'
# to disable H.323 support run rpmbuild --define 'noh323 1'
# to disable the GUI clients run rpmbuild --define 'nogui 1'
%{!?dist:%define dist %{nil}}
%{?nodeps:%define no_auto_deps 1}
%{?nopstn:%define no_pstn 1}
%{?noh323:%define no_h323 1}
%{?nogui:%define no_gui 1}
%if "%{dist}" == ""
@ -167,6 +169,8 @@ provides moderate compression and good voice quality.
%{_libdir}/yate/gsmcodec.yate
%if "%{no_h323}" != "1"
%package h323
Summary: H.323 protocol driver for Yate
Group: Applications/Communication
@ -178,6 +182,8 @@ Yate driver for the ITU-T H.323 VoIP protocol based on the OpenH323 library.
%{_libdir}/yate/h323chan.yate
%config(noreplace) %{_sysconfdir}/yate/h323chan.conf
%endif
%if "%{no_pstn}" != "1"
@ -313,7 +319,9 @@ Requires: %{name} = %{version}-%{release}
Requires: %{name}-alsa = %{version}-%{release}
%endif
Requires: %{name}-gsm = %{version}-%{release}
%if "%{no_h323}" != "1"
Requires: %{name}-h323 = %{version}-%{release}
%endif
%if "%{no_pstn}" != "1"
Requires: %{name}-isdn = %{version}-%{release}
%endif
@ -337,6 +345,9 @@ The devel package must still be installed separately.
%if "%{no_pstn}" == "1"
%define _unpackaged_files_terminate_build 0
%endif
%if "%{no_h323}" == "1"
%define _unpackaged_files_terminate_build 0
%endif
%if "%{no_gui}" == "1"
%define _unpackaged_files_terminate_build 0
%endif
@ -391,6 +402,9 @@ rm -rf %{buildroot}
%changelog
* Fri Jun 20 2008 Paul Chitescu <paulc@voip.null.ro>
- Option to remove H.323 subpackage
* Fri May 30 2008 Paul Chitescu <paulc@voip.null.ro>
- Removed GTK client