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: libogg-devel
22 BuildRequires: libtiff-devel
23 BuildRequires: libvorbis-devel
24 BuildRequires: loudmouth-devel
25 %{?with_misdn:BuildRequires: mISDN-devel}
26 BuildRequires: mysql-devel
27 BuildRequires: ncurses-devel
28 BuildRequires: pkgconfig
29 BuildRequires: popt-devel
30 BuildRequires: postgresql-devel
31 BuildRequires: readline-devel
32 BuildRequires: rpmbuild(macros) >= 1.268
33 BuildRequires: spandsp-devel >= %{min_spandsp}
34 BuildRequires: speex-devel
35 BuildRequires: sqlite3-devel
36 BuildRequires: unixODBC-devel
37 BuildRequires: zaptel-devel >= 1.2
38 BuildRequires: zlib-devel
39 Requires: spandsp >= %{min_spandsp}
40 Requires(post,preun): /sbin/chkconfig
41 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
44 Open Source PBX and telephony toolkit. It is, in a sense, middleware
45 between Internet and telephony channels on the bottom, and Internet
46 and telephony applications at the top.
48 %description -l pl.UTF-8
49 PBX i zestaw narzędziowy do telefonii o otwartych źródłach. Jest to
50 middleware między kanałami internetowymy i telefonicznymi z dołu a
51 aplikacjami internetowymi i telefonicznymi z góry.
54 Summary: Header files for callweaver
55 Summary(pl.UTF-8): Pliki nagłówkowe callweavera
56 Group: Development/Libraries
57 Requires: %{name} = %{version}-%{release}
60 Header files for callweaver.
62 %description devel -l pl.UTF-8
63 Pliki nagłówkowe callweavera.
66 %setup -q -n %{name}-RC-1.1.99.%{snap}
70 %{?with_misdn:--with-chan_misdn} \
72 --with-chan_bluetooth \
75 --with-res_config_odbc \
79 --with-res_config_mysql \
82 --with-res_config_pgsql \
83 --with-res_config_curl \
86 %if %{with javascript}
91 --with-directory-layout=lsb
96 rm -rf $RPM_BUILD_ROOT
97 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig,logrotate.d}
100 DESTDIR=$RPM_BUILD_ROOT
102 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
103 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
104 install %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
107 rm -rf $RPM_BUILD_ROOT
110 %groupadd -g 192 %{name}
111 %useradd -u 192 -d /var/lib/callweaver -s /bin/false -c "callweaver" -g %{name} %{name}
114 /sbin/chkconfig --add %{name}
115 %service %{name} restart
119 if [ "$1" = "0" ]; then
120 %service -q %{name} stop
121 /sbin/chkconfig --del %{name}
125 if [ "$1" = "0" ]; then
126 %userremove callweaver
131 %defattr(644,root,root,755)
132 %doc AUTHORS BUGS CREDITS ChangeLog HARDWARE InstallGuide.txt README SECURITY sounds.txt
134 %dir %{_sysconfdir}/%{name}
135 %attr(640,root,callweaver) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/*.*
136 %attr(755,root,root) %{_bindir}/*
137 %attr(755,root,root) %{_sbindir}/*
138 %dir %{_libdir}/%{name}
139 %attr(755,root,root) %{_libdir}/%{name}/*.so.*
140 %{_libdir}/%{name}/*.la
141 %dir %{_libdir}/%{name}/modules
142 %attr(755,root,root) %{_libdir}/%{name}/modules/*.so
143 %{_libdir}/%{name}/modules/*.la
147 %attr(750,callweaver,root) %dir %{_var}/lib/callweaver
148 %attr(750,callweaver,root) %dir %{_var}/log/callweaver
149 %attr(750,callweaver,root) %dir %{_var}/log/callweaver/*
150 %attr(750,callweaver,root) %dir %{_var}/run/callweaver
151 %attr(750,callweaver,root) %dir %{_var}/spool/callweaver
153 %attr(754,root,root) /etc/rc.d/init.d/%{name}
154 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
155 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}
158 %defattr(644,root,root,755)
159 %{_includedir}/%{name}