8 Summary: PBX in software
9 Summary(pl.UTF-8): Programowy PBX
15 Source0: http://devs.callweaver.org/trunk_snapshots/%{name}-%{version}.%{snap}.tar.gz
16 # Source0-md5: d27ff0129fb8b6058aa310e70dfd0410
18 Source2: %{name}.sysconfig
19 Source3: %{name}.logrotate
20 URL: http://www.callweaver.org/
21 BuildRequires: bluez-libs-devel
22 BuildRequires: curl-devel
23 BuildRequires: libogg-devel
24 BuildRequires: libtiff-devel
25 BuildRequires: libvorbis-devel
26 BuildRequires: loudmouth-devel
27 %{?with_misdn:BuildRequires: mISDN-devel}
28 BuildRequires: mysql-devel
29 BuildRequires: ncurses-devel
30 BuildRequires: opendbx-devel
31 BuildRequires: popt-devel
32 BuildRequires: postgresql-devel
33 BuildRequires: readline-devel
34 BuildRequires: rpmbuild(macros) >= 1.268
35 BuildRequires: spandsp-devel >= 1:0.0.4
36 BuildRequires: speex-devel
37 BuildRequires: sqlite3-devel
38 BuildRequires: unixODBC-devel
39 BuildRequires: zaptel-devel
40 BuildRequires: zlib-devel
41 Requires(post,preun): /sbin/chkconfig
42 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
45 Open Source PBX and telephony toolkit. It is, in a sense, middleware
46 between Internet and telephony channels on the bottom, and Internet
47 and telephony applications at the top.
49 %description -l pl.UTF-8
50 PBX i zestaw narzędziowy do telefonii o otwartych źródłach. Jest to
51 middleware między kanałami internetowymy i telefonicznymi z dołu a
52 aplikacjami internetowymi i telefonicznymi z góry.
55 Summary: Header files for callweaver
56 Summary(pl.UTF-8): Pliki nagłówkowe callweavera
57 Group: Development/Libraries
58 Requires: %{name} = %{version}-%{release}
61 Header files for callweaver.
63 %description devel -l pl.UTF-8
64 Pliki nagłówkowe callweavera.
67 %setup -q -n %{name}-%{version}.%{snap}
70 sed -i -e 's#^>EOF#EOF#' configure*
74 %{?with_misdn:--with-chan_misdn} \
76 --with-chan_bluetooth \
79 --with-res_config_odbc \
83 --with-res_config_mysql \
86 --with-res_config_pgsql \
87 --with-res_config_curl \
90 %if %{with javascript}
95 --with-directory-layout=lsb
100 rm -rf $RPM_BUILD_ROOT
101 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig,logrotate.d}
103 %{__make} -j1 install \
104 DESTDIR=$RPM_BUILD_ROOT
106 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
107 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
108 install %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
111 rm -rf $RPM_BUILD_ROOT
114 %groupadd -g 192 %{name}
115 %useradd -u 192 -d /var/lib/callweaver -s /bin/false -c "callweaver" -g %{name} %{name}
118 /sbin/chkconfig --add %{name}
119 %service %{name} restart
123 if [ "$1" = "0" ]; then
124 %service -q %{name} stop
125 /sbin/chkconfig --del %{name}
129 if [ "$1" = "0" ]; then
130 %userremove callweaver
135 %defattr(644,root,root,755)
136 %doc AUTHORS BUGS CREDITS ChangeLog HARDWARE InstallGuide.txt README SECURITY sounds.txt
138 %dir %{_sysconfdir}/%{name}
139 %attr(640,root,callweaver) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/*.*
140 %attr(755,root,root) %{_bindir}/*
141 %attr(755,root,root) %{_sbindir}/*
142 %dir %{_libdir}/%{name}
143 %attr(755,root,root) %{_libdir}/%{name}/*.so.*
144 %{_libdir}/%{name}/*.la
145 %dir %{_libdir}/%{name}/modules
146 %attr(755,root,root) %{_libdir}/%{name}/modules/*.so
147 %{_libdir}/%{name}/modules/*.la
150 %attr(750,root,callweaver) %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}