5 Summary: PBX in software
6 Summary(pl.UTF-8): Programowy PBX
12 Source0: http://devs.callweaver.org/trunk_snapshots/%{name}-%{version}.%{snap}.tar.gz
13 # Source0-md5: c784e7511e77d363b4282a6913f345c4
15 Source2: %{name}.sysconfig
16 Source3: %{name}.logrotate
17 URL: http://www.callweaver.org/
18 BuildRequires: bluez-libs-devel
19 BuildRequires: curl-devel
20 BuildRequires: libogg-devel
21 BuildRequires: libtiff-devel
22 BuildRequires: libvorbis-devel
23 BuildRequires: loudmouth-devel
24 %{?with_misdn:BuildRequires: mISDN-devel}
25 BuildRequires: mysql-devel
26 BuildRequires: ncurses-devel
27 BuildRequires: opendbx-devel
28 BuildRequires: popt-devel
29 BuildRequires: postgresql-devel
30 BuildRequires: readline-devel
31 BuildRequires: rpmbuild(macros) >= 1.268
32 BuildRequires: spandsp-devel >= 1:0.0.4
33 BuildRequires: speex-devel
34 BuildRequires: sqlite3-devel
35 BuildRequires: unixODBC-devel
36 BuildRequires: zaptel-devel
37 BuildRequires: zlib-devel
38 Requires(post,preun): /sbin/chkconfig
39 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42 Open Source PBX and telephony toolkit. It is, in a sense, middleware
43 between Internet and telephony channels on the bottom, and Internet
44 and telephony applications at the top.
46 %description -l pl.UTF-8
47 PBX i zestaw narzędziowy do telefonii o otwartych źródłach. Jest to
48 middleware między kanałami internetowymy i telefonicznymi z dołu a
49 aplikacjami internetowymi i telefonicznymi z góry.
52 Summary: Header files for callweaver
53 Summary(pl.UTF-8): Pliki nagłówkowe callweavera
54 Group: Development/Libraries
55 Requires: %{name} = %{version}-%{release}
58 Header files for callweaver.
60 %description devel -l pl.UTF-8
61 Pliki nagłówkowe callweavera.
64 %setup -q -n %{name}-%{version}.%{snap}
68 %{?with_misdn:--with-chan_misdn} \
70 --with-chan_bluetooth \
73 --with-res_config_odbc \
77 --with-res_config_mysql \
80 --with-res_config_pgsql \
81 --with-res_config_curl \
84 %if %{with javascript}
89 --with-directory-layout=lsb
94 rm -rf $RPM_BUILD_ROOT
95 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig,logrotate.d}
98 DESTDIR=$RPM_BUILD_ROOT
100 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
101 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
102 install %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
105 rm -rf $RPM_BUILD_ROOT
108 %groupadd -g 192 %{name}
109 %useradd -u 192 -d /var/lib/callweaver -s /bin/false -c "callweaver" -g %{name} %{name}
112 /sbin/chkconfig --add %{name}
113 %service %{name} restart
117 if [ "$1" = "0" ]; then
118 %service -q %{name} stop
119 /sbin/chkconfig --del %{name}
123 if [ "$1" = "0" ]; then
124 %userremove callweaver
129 %defattr(644,root,root,755)
130 %doc AUTHORS BUGS CREDITS ChangeLog HARDWARE InstallGuide.txt README SECURITY sounds.txt
132 %dir %{_sysconfdir}/%{name}
133 %attr(640,root,callweaver) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/*.*
134 %attr(755,root,root) %{_bindir}/*
135 %attr(755,root,root) %{_sbindir}/*
136 %dir %{_libdir}/%{name}
137 %attr(755,root,root) %{_libdir}/%{name}/*.so.*
138 %{_libdir}/%{name}/*.la
139 %dir %{_libdir}/%{name}/modules
140 %attr(755,root,root) %{_libdir}/%{name}/modules/*.so
141 %{_libdir}/%{name}/modules/*.la
145 %attr(750,callweaver,root) %dir %{_var}/lib/callweaver
146 %attr(750,callweaver,root) %dir %{_var}/log/callweaver
147 %attr(750,callweaver,root) %dir %{_var}/log/callweaver/*
148 %attr(750,callweaver,root) %dir %{_var}/run/callweaver
149 %attr(750,callweaver,root) %dir %{_var}/spool/callweaver
151 %attr(754,root,root) /etc/rc.d/init.d/%{name}
152 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
153 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}
156 %defattr(644,root,root,755)
157 %{_includedir}/%{name}