8 Summary: PBX in software
14 # pending name change; for now use old-name tarballs
15 Source0: http://www.openpbx.org/releases/openpbx.org-%{version}_%{_rc}.tar.gz
16 # Source0-md5: e270c40626dfa2131cc39dd1352b46f9
18 Source2: %{name}.sysconfig
19 URL: http://www.callweaver.org/
20 BuildRequires: bluez-libs-devel
21 BuildRequires: curl-devel
22 BuildRequires: libogg-devel
23 BuildRequires: libtiff-devel
24 BuildRequires: libvorbis-devel
25 BuildRequires: loudmouth-devel
26 %{?with_misdn:BuildRequires: mISDN-devel}
27 BuildRequires: mysql-devel
28 BuildRequires: popt-devel
29 BuildRequires: postgresql-devel
30 BuildRequires: rpmbuild(macros) >= 1.268
31 BuildRequires: spandsp-devel >= 1:0.0.3
32 BuildRequires: speex-devel
33 BuildRequires: sqlite3-devel
34 BuildRequires: unixODBC-devel
35 BuildRequires: zaptel-devel
36 BuildRequires: zlib-devel
37 Requires(post,preun): /sbin/chkconfig
38 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41 Open Source PBX and telephony toolkit. It is, in a sense, middleware
42 between Internet and telephony channels on the bottom, and Internet
43 and telephony applications at the top.
46 Summary: Header files and develpment documentation for callweaver
47 Group: Development/Libraries
48 Requires: %{name} = %{epoch}:%{version}-%{release}
51 Header files and develpment documentation for callweaver.
54 %setup -q -n openpbx.org-%{version}_%{_rc}
58 %{?with_misdn:--with-chan_misdn} \
60 --with-chan_bluetooth \
63 --with-res_config_odbc \
67 --with-res_config_mysql \
70 --with-res_config_pgsql \
71 --with-res_config_curl \
74 %if %{with javascript}
79 --with-directory-layout=lsb
84 rm -rf $RPM_BUILD_ROOT
86 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
88 %{__make} -j1 install \
89 DESTDIR=$RPM_BUILD_ROOT
91 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
92 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
95 rm -rf $RPM_BUILD_ROOT
98 /sbin/chkconfig --add %{name}
99 %service %{name} restart
102 if [ "$1" = "0" ]; then
103 %service -q %{name} stop
104 /sbin/chkconfig --del %{name}
108 %defattr(644,root,root,755)
109 %doc AUTHORS BUGS CREDITS ChangeLog HARDWARE InstallGuide.txt README SECURITY sounds.txt
110 %dir /etc/openpbx.org
111 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/openpbx.org/*.*
112 %attr(755,root,root) %{_bindir}/*
113 %attr(755,root,root) %{_sbindir}/*
114 %dir %{_libdir}/openpbx.org
115 %attr(755,root,root) %{_libdir}/openpbx.org/*.so.*
116 %{_libdir}/openpbx.org/*.la
117 %dir %{_libdir}/openpbx.org/modules
118 %attr(755,root,root) %{_libdir}/openpbx.org/modules/*.so
119 %{_libdir}/openpbx.org/modules/*.la
120 %{_datadir}/openpbx.org
124 %defattr(644,root,root,755)
125 %{_includedir}/openpbx