rpms/openpbx/devel openpbx.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

David Woodhouse (dwmw2) fedora-extras-commits at redhat.com
Tue Oct 17 06:43:41 UTC 2006


Author: dwmw2

Update of /cvs/extras/rpms/openpbx/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv31998/devel

Modified Files:
	.cvsignore sources 
Added Files:
	openpbx.spec 
Log Message:
auto-import openpbx-1.2-1.rc1.svn1979.fc6 on branch devel from openpbx-1.2-1.rc1.svn1979.fc6.src.rpm


--- NEW FILE openpbx.spec ---
%define snap 1979

%bcond_with misdn
%bcond_without zaptel

%bcond_without	fedora

Name:		openpbx
Version:	1.2
Release:	1.rc1.svn%{snap}%{?dist}
Summary:	The Truly Open Source PBX

Group:		Applications/Internet
License:	GPL
URL:		http://www.openpbx.org/
# svn co -r %{snap} svn://svn.openpbx.org/openpbx/trunk openpbx
# tar cvfz openpbx-r%{snap}.tar.gz openpbx
Source0:	openpbx-r%{snap}.tar.gz
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:	spandsp-devel >= 0.0.3-1.pre24
BuildRequires:	%{?snap:libtool automake autoconf} zlib-devel
BuildRequires:	fedora-usermgmt-devel bluez-libs-devel openldap-devel
BuildRequires:	libjpeg-devel loudmouth-devel nspr-devel js-devel ncurses-devel
BuildRequires:	unixODBC-devel openssl-devel speex-devel alsa-lib-devel
BuildRequires:	isdn4k-utils-devel libcap-devel sqlite-devel
BuildRequires:	postgresql-devel libedit-devel %{?with_misdn:mISDN}
BuildRequires:	popt %{?with_zaptel:zaptel-devel libpri-devel}

Requires:	/sbin/chkconfig
%{?FE_USERADD_REQ}

%description
OpenPBX is an Open Source PBX and telephony development platform that
can both replace a conventional PBX and act as a platform for developing
custom telephony applications for delivering dynamic content over a
telephone similarly to how one can deliver dynamic content through a
web browser using CGI and a web server.

OpenPBX talks to a variety of telephony hardware including BRI, PRI,
POTS, Bluetooth headsets and IP telephony clients using SIP and IAX
protocols protocol (e.g. ekiga or kphone).  For more information and a
current list of supported hardware, see www.openpbx.org.


%package devel
Group:		Applications/Internet
Summary:	Development package for %{name}
Requires:	%{name} = %{version}-%{release}

%description devel
Use this package for developing and building modules for OpenPBX


%package postgresql
Group:		Applications/Internet
Summary:	PostgreSQL support for OpenPBX
Requires:	%{name} = %{version}-%{release}

%description postgresql
This package contains modules for OpenPBX which make use of PostgreSQL.

%package odbc
Group:		Applications/Internet
Summary:	ODBC support for OpenPBX
Requires:	%{name} = %{version}-%{release}

%description odbc
This package contains modules for OpenPBX which make use of ODBC.

%package ldap
Group:		Applications/Internet
Summary:	LDAP support for OpenPBX
Requires:	%{name} = %{version}-%{release}

%description ldap
This package contains modules for OpenPBX which make use of LDAP.

%package bluetooth
Group:		Applications/Internet
Summary:	Bluetooth channel driver for OpenPBX
Requires:	%{name} = %{version}-%{release}

%description bluetooth
This package contains a Bluetooth channel driver for OpenPBX, which
allows Bluetooth headsets and telephones to be used for communication.

%package capi
Group:		Applications/Internet
Summary:	CAPI channel driver for OpenPBX
Requires:	%{name} = %{version}-%{release}

%description capi
This package contains a CAPI (Common ISDN API) channel driver for
OpenPBX, allowing CAPI devices to be used for making and receiving calls.

%package misdn
Group:		Applications/Internet
Summary:	mISDN channel driver for OpenPBX
Requires:	%{name} = %{version}-%{release}

%description misdn
This package contains the mISDN channel driver for OpenPBX. mISDN is
the replacement modular ISDN stack for Linux, intended to be merged
into the 2.6 kernel.

%package zaptel
Group:		Applications/Internet
Summary:	Zaptel modules for OpenPBX
Requires:	%{name} = %{version}-%{release}
Requires:	zaptel >= 1.4.0-1

%description zaptel
This package contains the Zap channel driver and MeetMe application
for OpenPBX. Zaptel is Digium's telephony driver package.

%package jabber
Group:		Applications/Internet
Summary:	Jabber support for OpenPBX
Requires:	%{name} = %{version}-%{release}

%description jabber
This package contains Jabber protocol support for OpenPBX.

%package javascript
Group:		Applications/Internet
Summary:	JavaScript support for OpenPBX
Requires:	%{name} = %{version}-%{release}

%description javascript
This package contains JavaScript support for OpenPBX.

%package alsa
Group:		Applications/Internet
Summary:	ALSA channel driver for OpenPBX
Requires:	%{name} = %{version}-%{release}

%description alsa
This package contains an ALSA console driver for OpenPBX, which allows
the local sound devices to be used for making and receiving calls.

%package ogi
Group:		Applications/Internet
Summary:	OpenPBX Gateway Interface
Requires:	%{name} = %{version}-%{release}

%description ogi
This package contains files support for the OpenPBX Gateway Interface; a
convenient interface between OpenPBX and external scripts or programs.


%prep
%setup -q -n openpbx

%build
%if 0%{?snap}
./bootstrap.sh
%endif
# res_sqlite seems to use internal functions of sqlite3 which don't 
# even _exist_ in current versions. Disable it until it's fixed.

%configure --with-directory-layout=lsb --with-chan_bluetooth \
	   --with-chan_fax --with-chan_capi --with-chan_alsa --with-app_ldap \
	   --disable-zaptel --enable-t38 --enable-postgresql --with-cdr-pgsql \
	   --with-res_config_pqsql --with-cdr-odbc --with-res_config_odbc \
	   --with-perl-shebang='#! /usr/bin/perl' --disable-builtin-sqlite3 \
	   --enable-javascript --with-res_js --enable-fast-install \
	   %{?with_misdn:--with-chan_misdn} \
	   %{?with_zaptel:--enable-zaptel} \
	   --enable-jabber --with-res_jabber # --with-res_sqlite

# Poxy fscking libtool is _such_ a pile of crap...
sed -i 's/^CC="gcc"/CC="gcc -Wl,--as-needed"/' libtool

# Poxy fscking autocrap isn't much better
sed -i 's:^/usr/bin/perl:#! /usr/bin/perl:' ogi/fastogi-test ogi/ogi-test.ogi

make %{?_smp_mflags} CCLD="gcc -Wl,--as-needed"

mkdir doc2
mv doc/README.{misdn,chan_capi,res_jabber,odbcstorage} doc2

%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
rm -f $RPM_BUILD_ROOT/%{_libdir}/openpbx.org/modules/*.la
rm -f $RPM_BUILD_ROOT/%{_libdir}/openpbx.org/*.a
rm -f $RPM_BUILD_ROOT/%{_libdir}/openpbx.org/*.la
mkdir -p $RPM_BUILD_ROOT%{_initrddir}
install -m0755 contrib/fedora/openpbx $RPM_BUILD_ROOT%{_initrddir}/openpbx
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d
install -m0644 contrib/fedora/openpbx.logrotate $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/openpbx

mv $RPM_BUILD_ROOT/%{_datadir}/openpbx.org/ogi/eogi-*test $RPM_BUILD_ROOT/%{_sbindir}

# More autocrap insanity. We can't just move confdefs.h into the openpbx/ subdir
# because then autocrap will add that subdir to the compiler's include path and
# many things break. So let's just clean up after it.
sed -i 's:"confdefs.h":<openpbx/confdefs.h>:' $RPM_BUILD_ROOT/%{_includedir}/openpbx/*.h
install -m0644 include/confdefs.h $RPM_BUILD_ROOT/%{_includedir}/openpbx/confdefs.h

%clean
rm -rf $RPM_BUILD_ROOT

%pre
%__fe_groupadd 30 -r openpbx &>/dev/null || :
%__fe_useradd  30 -r -s /sbin/nologin -d %{_sysconfdir}/openpbx.org -M \
                    -c 'OpenPBX user' -g openpbx openpbx &>/dev/null || :
%post
/sbin/chkconfig --add openpbx

%preun
test "$1" != 0 || /sbin/chkconfig --del openpbx

%postun
%__fe_userdel  openpbx &>/dev/null || :
%__fe_groupdel openpbx &>/dev/null || :

%pre zaptel
%{_sbindir}/usermod -G `id -G openpbx | tr " " , `,zaptel openpbx

%files
%defattr(-,root,root,-)
%doc COPYING CREDITS LICENSE BUGS AUTHORS SECURITY README HARDWARE
%doc doc/README.* doc/*.txt doc/*.html sample.call ChangeLog
%doc BUGS InstallGuide.txt
%config(noreplace) %{_sysconfdir}/logrotate.d/openpbx
%{_initrddir}/openpbx
%{_sbindir}/openpbx
%{_bindir}/smsq
%{_bindir}/streamplayer
%dir %{_libdir}/openpbx.org
%{_libdir}/openpbx.org/lib*.so.*
%dir %{_libdir}/openpbx.org/modules
%{_libdir}/openpbx.org/modules/*.so
%{_mandir}/man8/openpbx.8.gz
%dir %{_datadir}/openpbx.org
%dir %attr(0755,openpbx,openpbx) %{_sysconfdir}/openpbx.org
%config(noreplace) %attr(0644,openpbx,openpbx) %{_sysconfdir}/openpbx.org/*
%attr(2755,openpbx,openpbx) %{_localstatedir}/spool/openpbx.org
%attr(0755,openpbx,openpbx) %{_localstatedir}/log/openpbx.org
%attr(0755,openpbx,openpbx) %{_localstatedir}/run/openpbx.org
# Unneeded
%exclude %{_sysconfdir}/openpbx.org/cdr_tds.conf
# Separately packaged
%exclude %{_libdir}/openpbx.org/modules/*pgsql.so
%exclude %{_libdir}/openpbx.org/modules/app_sql_postgres.so
%exclude %{_libdir}/openpbx.org/modules/app_ldap.so
%exclude %{_libdir}/openpbx.org/modules/cdr_odbc.so
%exclude %{_libdir}/openpbx.org/modules/chan_bluetooth.so
%exclude %{_libdir}/openpbx.org/modules/res_jabber.so
%exclude %{_libdir}/openpbx.org/modules/res_js.so
%exclude %{_libdir}/openpbx.org/modules/chan_alsa.so
%exclude %{_libdir}/openpbx.org/modules/res_ogi.so
%exclude %{_libdir}/openpbx.org/modules/chan_capi.so
%exclude %{_sysconfdir}/openpbx.org/cdr_pgsql.conf
%exclude %{_sysconfdir}/openpbx.org/cdr_odbc.conf
%exclude %{_sysconfdir}/openpbx.org/chan_bluetooth.conf
%exclude %{_sysconfdir}/openpbx.org/res_jabber.conf
%exclude %{_sysconfdir}/openpbx.org/alsa.conf
%exclude %{_sysconfdir}/openpbx.org/capi.conf
%if 0%{?with_misdn:1}
%exclude %{_libdir}/openpbx.org/modules/chan_misdn.so
%exclude %{_sysconfdir}/openpbx.org/misdn.conf
%endif
%if 0%{?with_zaptel:1}
%exclude %{_libdir}/openpbx.org/modules/chan_zap.so
%exclude %{_libdir}/openpbx.org/modules/app_meetme.so
%exclude %{_libdir}/openpbx.org/modules/app_flash.so
%exclude %{_sysconfdir}/openpbx.org/zapata.conf
%exclude %{_sysconfdir}/openpbx.org/meetme.conf
%endif

%files devel
%defattr(-,root,root,-)
%dir %{_includedir}/openpbx
%{_includedir}/openpbx/*.h
%{_libdir}/openpbx.org/lib*.so

%files postgresql
%{_libdir}/openpbx.org/modules/*pgsql.so
%{_libdir}/openpbx.org/modules/app_sql_postgres.so
%config(noreplace) %attr(0644,openpbx,openpbx) %{_sysconfdir}/openpbx.org/cdr_pgsql.conf

%files odbc
%{_libdir}/openpbx.org/modules/cdr_odbc.so
%config(noreplace) %attr(0644,openpbx,openpbx) %{_sysconfdir}/openpbx.org/cdr_odbc.conf
%doc doc2/README.odbcstorage

%files ldap
%{_libdir}/openpbx.org/modules/app_ldap.so

%files bluetooth
%{_libdir}/openpbx.org/modules/chan_bluetooth.so
%config(noreplace) %attr(0644,openpbx,openpbx) %{_sysconfdir}/openpbx.org/chan_bluetooth.conf

%files capi
%{_libdir}/openpbx.org/modules/chan_capi.so
%config(noreplace) %attr(0644,openpbx,openpbx) %{_sysconfdir}/openpbx.org/capi.conf
%doc doc2/README.chan_capi

%if 0%{?with_misdn:1}
%files misdn
%{_libdir}/openpbx.org/modules/chan_misdn.so
%config(noreplace) %attr(0644,openpbx,openpbx) %{_sysconfdir}/openpbx.org/misdn.conf
%doc doc2/README.misdn
%endif

%if 0%{?with_zaptel:1}
%files zaptel
%{_libdir}/openpbx.org/modules/chan_zap.so
%{_libdir}/openpbx.org/modules/app_meetme.so
%{_libdir}/openpbx.org/modules/app_flash.so
%config(noreplace) %attr(0644,openpbx,openpbx) %{_sysconfdir}/openpbx.org/zapata.conf
%config(noreplace) %attr(0644,openpbx,openpbx) %{_sysconfdir}/openpbx.org/meetme.conf
%endif

%files jabber
%{_libdir}/openpbx.org/modules/res_jabber.so
%config(noreplace) %attr(0644,openpbx,openpbx) %{_sysconfdir}/openpbx.org/res_jabber.conf
%doc doc2/README.res_jabber

%files javascript
%{_libdir}/openpbx.org/modules/res_js.so

%files alsa
%{_libdir}/openpbx.org/modules/chan_alsa.so
%config(noreplace) %attr(0644,openpbx,openpbx) %{_sysconfdir}/openpbx.org/alsa.conf

%files ogi
%{_libdir}/openpbx.org/modules/res_ogi.so
%dir %attr(0755,root,root) %{_datadir}/openpbx.org/ogi
%{_datadir}/openpbx.org/ogi/*
%{_sbindir}/eogi*

%changelog
* Thu Oct  5 2006 David Woodhouse <dwmw2 at infradead.org> 1.2-1.rc1.svn1979
- Initial build


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/openpbx/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	17 Oct 2006 06:40:06 -0000	1.1
+++ .cvsignore	17 Oct 2006 06:43:10 -0000	1.2
@@ -0,0 +1 @@
+openpbx-r1979.tar.gz


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/openpbx/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	17 Oct 2006 06:40:06 -0000	1.1
+++ sources	17 Oct 2006 06:43:10 -0000	1.2
@@ -0,0 +1 @@
+b863cbd1e90338b05439267be3eccb44  openpbx-r1979.tar.gz




More information about the fedora-extras-commits mailing list