5 Summary: PBX in software
6 Summary(pl.UTF-8): Programowy PBX
12 Source0: http://devs.callweaver.org/1.2_snapshots/callweaver-RC-1.1.99.20070911.tar.gz
13 # Source0-md5: 89ea97f5935d77ae14035f17d5468c90
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: pkgconfig
29 BuildRequires: popt-devel
30 BuildRequires: postgresql-devel
31 BuildRequires: readline-devel
32 BuildRequires: rpmbuild(macros) >= 1.268
33 BuildRequires: spandsp-devel >= 1:0.0.4-0.pre3.1
34 BuildRequires: speex-devel
35 BuildRequires: sqlite3-devel
36 BuildRequires: unixODBC-devel
37 BuildRequires: zaptel-devel >= 1.2
38 BuildRequires: zlib-devel
39 Requires(post,preun): /sbin/chkconfig
40 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
43 Open Source PBX and telephony toolkit. It is, in a sense, middleware
44 between Internet and telephony channels on the bottom, and Internet
45 and telephony applications at the top.
47 %description -l pl.UTF-8
48 PBX i zestaw narzędziowy do telefonii o otwartych źródłach. Jest to
49 middleware między kanałami internetowymy i telefonicznymi z dołu a
50 aplikacjami internetowymi i telefonicznymi z góry.
53 Summary: Header files for callweaver
54 Summary(pl.UTF-8): Pliki nagłówkowe callweavera
55 Group: Development/Libraries
56 Requires: %{name} = %{version}-%{release}
59 Header files for callweaver.
61 %description devel -l pl.UTF-8
62 Pliki nagłówkowe callweavera.
65 %setup -q -n %{name}-RC-1.1.99.%{snap}
69 %{?with_misdn:--with-chan_misdn} \
71 --with-chan_bluetooth \
74 --with-res_config_odbc \
78 --with-res_config_mysql \
81 --with-res_config_pgsql \
82 --with-res_config_curl \
85 %if %{with javascript}
90 --with-directory-layout=lsb
95 rm -rf $RPM_BUILD_ROOT
96 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig,logrotate.d}
99 DESTDIR=$RPM_BUILD_ROOT
101 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
102 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
103 install %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
106 rm -rf $RPM_BUILD_ROOT
109 %groupadd -g 192 %{name}
110 %useradd -u 192 -d /var/lib/callweaver -s /bin/false -c "callweaver" -g %{name} %{name}
113 /sbin/chkconfig --add %{name}
114 %service %{name} restart
118 if [ "$1" = "0" ]; then
119 %service -q %{name} stop
120 /sbin/chkconfig --del %{name}
124 if [ "$1" = "0" ]; then
125 %userremove callweaver
130 %defattr(644,root,root,755)
131 %doc AUTHORS BUGS CREDITS ChangeLog HARDWARE InstallGuide.txt README SECURITY sounds.txt
133 %dir %{_sysconfdir}/%{name}
134 %attr(640,root,callweaver) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/*.*
135 %attr(755,root,root) %{_bindir}/*
136 %attr(755,root,root) %{_sbindir}/*
137 %dir %{_libdir}/%{name}
138 %attr(755,root,root) %{_libdir}/%{name}/*.so.*
139 %{_libdir}/%{name}/*.la
140 %dir %{_libdir}/%{name}/modules
141 %attr(755,root,root) %{_libdir}/%{name}/modules/*.so
142 %{_libdir}/%{name}/modules/*.la
146 %attr(750,callweaver,root) %dir %{_var}/lib/callweaver
147 %attr(750,callweaver,root) %dir %{_var}/log/callweaver
148 %attr(750,callweaver,root) %dir %{_var}/log/callweaver/*
149 %attr(750,callweaver,root) %dir %{_var}/run/callweaver
150 %attr(750,callweaver,root) %dir %{_var}/spool/callweaver
152 %attr(754,root,root) /etc/rc.d/init.d/%{name}
153 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
154 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}
157 %defattr(644,root,root,755)
158 %{_includedir}/%{name}