4 %define min_spandsp 1:0.0.4-0.pre8.1
6 Summary: PBX in software
7 Summary(pl.UTF-8): Programowy PBX
13 Source0: http://devs.callweaver.org/1.2_snapshots/callweaver-RC-1.1.99.%{snap}.tar.gz
14 # Source0-md5: e20e3f1df7837e3abb8e90eb2f3a8120
16 Source2: %{name}.sysconfig
17 Source3: %{name}.logrotate
18 URL: http://www.callweaver.org/
19 BuildRequires: bluez-libs-devel
20 BuildRequires: curl-devel
21 BuildRequires: libcap-devel
22 BuildRequires: libogg-devel
23 BuildRequires: libpri-devel
24 BuildRequires: libsndfile-devel
25 BuildRequires: libtiff-devel
26 BuildRequires: libvorbis-devel
27 BuildRequires: loudmouth-devel
28 %{?with_misdn:BuildRequires: mISDN-devel}
29 BuildRequires: mysql-devel
30 BuildRequires: ncurses-devel
31 BuildRequires: pkgconfig
32 BuildRequires: popt-devel
33 BuildRequires: postgresql-devel
34 BuildRequires: readline-devel
35 BuildRequires: rpmbuild(macros) >= 1.268
36 BuildRequires: spandsp-devel >= %{min_spandsp}
37 BuildRequires: speex-devel
38 BuildRequires: sqlite3-devel
39 BuildRequires: unixODBC-devel
40 BuildRequires: zaptel-devel >= 1.2
41 BuildRequires: zlib-devel
42 Requires: spandsp >= %{min_spandsp}
43 Requires(post,preun): /sbin/chkconfig
44 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47 Open Source PBX and telephony toolkit. It is, in a sense, middleware
48 between Internet and telephony channels on the bottom, and Internet
49 and telephony applications at the top.
51 %description -l pl.UTF-8
52 PBX i zestaw narzędziowy do telefonii o otwartych źródłach. Jest to
53 middleware między kanałami internetowymy i telefonicznymi z dołu a
54 aplikacjami internetowymi i telefonicznymi z góry.
57 Summary: Header files for callweaver
58 Summary(pl.UTF-8): Pliki nagłówkowe callweavera
59 Group: Development/Libraries
60 Requires: %{name} = %{version}-%{release}
63 Header files for callweaver.
65 %description devel -l pl.UTF-8
66 Pliki nagłówkowe callweavera.
69 %setup -q -n %{name}-RC-1.1.99.%{snap}
73 %{?with_misdn:--with-chan_misdn} \
75 --with-chan_bluetooth \
78 --with-res_config_odbc \
82 --with-res_config_mysql \
85 --with-res_config_pgsql \
86 --with-res_config_curl \
89 %if %{with javascript}
94 --with-directory-layout=lsb
99 rm -rf $RPM_BUILD_ROOT
100 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig,logrotate.d}
103 DESTDIR=$RPM_BUILD_ROOT
105 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
106 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
107 install %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
110 rm -rf $RPM_BUILD_ROOT
113 %groupadd -g 192 %{name}
114 %useradd -u 192 -d /var/lib/callweaver -s /bin/false -c "callweaver" -g %{name} %{name}
117 /sbin/chkconfig --add %{name}
118 %service %{name} restart
122 if [ "$1" = "0" ]; then
123 %service -q %{name} stop
124 /sbin/chkconfig --del %{name}
128 if [ "$1" = "0" ]; then
129 %userremove callweaver
134 %defattr(644,root,root,755)
135 %doc AUTHORS BUGS CREDITS ChangeLog HARDWARE InstallGuide.txt README SECURITY sounds.txt
137 %dir %{_sysconfdir}/%{name}
138 %attr(640,root,callweaver) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/*.*
139 %attr(755,root,root) %{_bindir}/*
140 %attr(755,root,root) %{_sbindir}/*
141 %dir %{_libdir}/%{name}
142 %attr(755,root,root) %{_libdir}/%{name}/*.so.*
143 %{_libdir}/%{name}/*.la
144 %dir %{_libdir}/%{name}/modules
145 %attr(755,root,root) %{_libdir}/%{name}/modules/*.so
146 %{_libdir}/%{name}/modules/*.la
150 %attr(750,callweaver,root) %dir %{_var}/lib/callweaver
151 %attr(750,callweaver,root) %dir %{_var}/log/callweaver
152 %attr(750,callweaver,root) %dir %{_var}/log/callweaver/*
153 %attr(750,callweaver,root) %dir %{_var}/run/callweaver
154 %attr(750,callweaver,root) %dir %{_var}/spool/callweaver
156 %attr(754,root,root) /etc/rc.d/init.d/%{name}
157 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
158 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}
161 %defattr(644,root,root,755)
162 %{_includedir}/%{name}