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 URL: http://www.callweaver.org/
20 BuildRequires: bluez-libs-devel
21 BuildRequires: curl-devel
22 BuildRequires: libogg-devel
23 BuildRequires: libtiff-devel
24 BuildRequires: libvorbis-devel
25 BuildRequires: loudmouth-devel
26 %{?with_misdn:BuildRequires: mISDN-devel}
27 BuildRequires: mysql-devel
28 BuildRequires: ncurses-devel
29 BuildRequires: opendbx-devel
30 BuildRequires: popt-devel
31 BuildRequires: postgresql-devel
32 BuildRequires: readline-devel
33 BuildRequires: rpmbuild(macros) >= 1.268
34 BuildRequires: spandsp-devel >= 1:0.0.4
35 BuildRequires: speex-devel
36 BuildRequires: sqlite3-devel
37 BuildRequires: unixODBC-devel
38 BuildRequires: zaptel-devel
39 BuildRequires: zlib-devel
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}-%{version}.%{snap}
69 sed -i -e 's#^>EOF#EOF#' configure*
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}
102 %{__make} -j1 install \
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}
109 rm -rf $RPM_BUILD_ROOT
112 %groupadd -g 192 %{name}
113 %useradd -u 192 -d /usr/share/empty -s /bin/false -c "callweaver" -g %{name} %{name}
116 /sbin/chkconfig --add %{name}
117 %service %{name} restart
121 if [ "$1" = "0" ]; then
122 %service -q %{name} stop
123 /sbin/chkconfig --del %{name}
127 if [ "$1" = "0" ]; then
128 %userremove callweaver
133 %defattr(644,root,root,755)
134 %doc AUTHORS BUGS CREDITS ChangeLog HARDWARE InstallGuide.txt README SECURITY sounds.txt
136 %dir %{_sysconfdir}/%{name}
137 %attr(640,root,callweaver) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/*.*
138 %attr(755,root,root) %{_bindir}/*
139 %attr(755,root,root) %{_sbindir}/*
140 %dir %{_libdir}/%{name}
141 %attr(755,root,root) %{_libdir}/%{name}/*.so.*
142 %{_libdir}/%{name}/*.la
143 %dir %{_libdir}/%{name}/modules
144 %attr(755,root,root) %{_libdir}/%{name}/modules/*.so
145 %{_libdir}/%{name}/modules/*.la
148 %attr(754,root,root) /etc/rc.d/init.d/%{name}
149 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
152 %defattr(644,root,root,755)
153 %{_includedir}/%{name}