+# TODO
+# callweaver.x86_64: E: arch-dependent-file-in-usr-share /usr/share/callweaver/ogi/eogi-test
+# callweaver.x86_64: E: arch-dependent-file-in-usr-share /usr/share/callweaver/ogi/eogi-sphinx-test
+# callweaver.i486: E: arch-dependent-file-in-usr-share /usr/share/callweaver/ogi/eogi-test
+# callweaver.i486: E: arch-dependent-file-in-usr-share /usr/share/callweaver/ogi/eogi-sphinx-test
+# callweaver.i686: E: arch-dependent-file-in-usr-share /usr/share/callweaver/ogi/eogi-test
+# callweaver.i686: E: arch-dependent-file-in-usr-share /usr/share/callweaver/ogi/eogi-sphinx-test
#
# Conditional build:
%bcond_with simpledebug # for safe_callweaver core dump storing
%bcond_with zhone # with zhone hack
%bcond_with javascript # with javascript support
-#
-%define min_spandsp 1:0.0.4-0.pre16.1
-%define snap 20080209
+
+%define min_spandsp 1:0.0.6-0.pre12
Summary: PBX in software
Summary(pl.UTF-8): Programowy PBX
Name: callweaver
-Version: 1.2.0
-Release: 0.%{snap}.1
+Version: 1.2.1
+Release: 6.1
License: GPL v2+
Group: Applications
-Source0: http://devs.callweaver.org/1.2_snapshots/callweaver-RC-1.1.99.%{snap}.tar.gz
-# Source0-md5: 32b458754087f02de1b154043a838d09
+Source0: http://devs.callweaver.org/release/%{name}-%{version}.tar.bz2
+# Source0-md5: 54c2ba5852cbe43b802b4605584b5754
Source1: %{name}.init
Source2: %{name}.sysconfig
Source3: %{name}.logrotate
-Patch0: %{name}-paths.patch
URL: http://www.callweaver.org/
BuildRequires: bluez-libs-devel
BuildRequires: curl-devel
+BuildRequires: dahdi-linux-devel
BuildRequires: libcap-devel
BuildRequires: libogg-devel
BuildRequires: libpri-devel
BuildRequires: speex-devel
BuildRequires: sqlite3-devel
BuildRequires: unixODBC-devel
-BuildRequires: zaptel-devel >= 1.2
BuildRequires: zlib-devel
-Requires: spandsp >= %{min_spandsp}
Requires(post,preun): /sbin/chkconfig
+Requires: spandsp >= %{min_spandsp}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+%undefine __cxx
+%define skip_post_check_so libcwjb.so.0.0.0
+
%description
Open Source PBX and telephony toolkit. It is, in a sense, middleware
between Internet and telephony channels on the bottom, and Internet
%endif
%prep
-%setup -q -n %{name}-RC-1.1.99.%{snap}
-%patch0 -p1
+%setup -q
%{?with_zhone:sed -i -e 's|.*#define.*ZHONE_HACK.*|#define ZHONE_HACK 1|g' channels/chan_zap.c}
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
-install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
-install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
-install %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
+install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
+cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
+cp -p %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
%clean
rm -rf $RPM_BUILD_ROOT
/sbin/chkconfig --add %{name}
#%%service %%{name} restart
-
%preun
if [ "$1" = "0" ]; then
%service -q %{name} stop
%postun
if [ "$1" = "0" ]; then
- %userremove callweaver
+ %userremove %{name}
%groupremove %{name}
fi
%doc doc
%dir %{_sysconfdir}/%{name}
%attr(640,root,callweaver) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/*.*
-%attr(755,root,root) %{_bindir}/*
%attr(755,root,root) %{_sbindir}/*
%dir %{_libdir}/%{name}
%attr(755,root,root) %{_libdir}/%{name}/*.so.*