2 # callweaver.x86_64: E: arch-dependent-file-in-usr-share /usr/share/callweaver/ogi/eogi-test
3 # callweaver.x86_64: E: arch-dependent-file-in-usr-share /usr/share/callweaver/ogi/eogi-sphinx-test
4 # callweaver.i486: E: arch-dependent-file-in-usr-share /usr/share/callweaver/ogi/eogi-test
5 # callweaver.i486: E: arch-dependent-file-in-usr-share /usr/share/callweaver/ogi/eogi-sphinx-test
6 # callweaver.i686: E: arch-dependent-file-in-usr-share /usr/share/callweaver/ogi/eogi-test
7 # callweaver.i686: E: arch-dependent-file-in-usr-share /usr/share/callweaver/ogi/eogi-sphinx-test
10 %bcond_with simpledebug # for safe_callweaver core dump storing
11 %bcond_with zhone # with zhone hack
12 %bcond_with javascript # with javascript support
14 %define min_spandsp 1:0.0.6-0.pre12
15 Summary: PBX in software
16 Summary(pl.UTF-8): Programowy PBX
22 Source0: http://devs.callweaver.org/release/%{name}-%{version}.tar.bz2
23 # Source0-md5: 54c2ba5852cbe43b802b4605584b5754
25 Source2: %{name}.sysconfig
26 Source3: %{name}.logrotate
27 Source4: %{name}.tmpfiles
28 URL: http://www.callweaver.org/
29 BuildRequires: bluez-libs-devel
30 BuildRequires: curl-devel
31 BuildRequires: dahdi-linux-devel
32 BuildRequires: libcap-devel
33 BuildRequires: libogg-devel
34 BuildRequires: libpri-devel
35 BuildRequires: libsndfile-devel
36 BuildRequires: libtiff-devel
37 BuildRequires: libvorbis-devel
38 BuildRequires: loudmouth-devel
39 BuildRequires: mISDNuser-devel
40 BuildRequires: mysql-devel
41 BuildRequires: ncurses-devel
42 BuildRequires: pkgconfig
43 BuildRequires: popt-devel
44 BuildRequires: postgresql-devel
45 BuildRequires: readline-devel
46 BuildRequires: rpmbuild(macros) >= 1.268
47 BuildRequires: spandsp-devel >= %{min_spandsp}
48 BuildRequires: speex-devel
49 BuildRequires: sqlite3-devel
50 BuildRequires: unixODBC-devel
51 BuildRequires: zlib-devel
52 Requires(post,preun): /sbin/chkconfig
53 Requires: spandsp >= %{min_spandsp}
54 Conflicts: logrotate < 3.8.0
55 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
58 %define skip_post_check_so libcwjb.so.0.0.0
61 Open Source PBX and telephony toolkit. It is, in a sense, middleware
62 between Internet and telephony channels on the bottom, and Internet
63 and telephony applications at the top.
65 %description -l pl.UTF-8
66 PBX i zestaw narzędziowy do telefonii o otwartych źródłach. Jest to
67 middleware między kanałami internetowymi i telefonicznymi z dołu a
68 aplikacjami internetowymi i telefonicznymi z góry.
71 Summary: Header files for callweaver
72 Summary(pl.UTF-8): Pliki nagłówkowe callweavera
73 Group: Development/Libraries
74 Requires: %{name} = %{version}-%{release}
77 Header files for callweaver.
79 %description devel -l pl.UTF-8
80 Pliki nagłówkowe callweavera.
82 %if %{with simpledebug}
83 %define no_install_post_strip 1
89 %{?with_zhone:sed -i -e 's|.*#define.*ZHONE_HACK.*|#define ZHONE_HACK 1|g' channels/chan_zap.c}
95 --with-chan_bluetooth \
98 --with-res_config_odbc \
102 --with-res_config_mysql \
103 --enable-postgresql \
105 --with-res_config_pgsql \
106 --with-res_config_curl \
109 %if %{with javascript}
110 --enable-javascript \
114 --with-directory-layout=lsb
119 rm -rf $RPM_BUILD_ROOT
120 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig,logrotate.d} \
121 $RPM_BUILD_ROOT%{_var}/spool/callweaver/voicemail \
122 $RPM_BUILD_ROOT/usr/lib/tmpfiles.d
125 DESTDIR=$RPM_BUILD_ROOT
127 install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
128 cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
129 cp -p %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
131 install %{SOURCE4} $RPM_BUILD_ROOT/usr/lib/tmpfiles.d/%{name}.conf
134 rm -rf $RPM_BUILD_ROOT
137 %groupadd -g 192 %{name}
138 %useradd -u 192 -d /var/lib/callweaver -s /bin/false -c "callweaver" -g %{name} %{name}
141 /sbin/chkconfig --add %{name}
142 #%%service %%{name} restart
145 if [ "$1" = "0" ]; then
146 %service -q %{name} stop
147 /sbin/chkconfig --del %{name}
151 if [ "$1" = "0" ]; then
157 %defattr(644,root,root,755)
158 %doc AUTHORS BUGS CREDITS ChangeLog HARDWARE InstallGuide.txt README SECURITY sounds.txt
160 %dir %{_sysconfdir}/%{name}
161 %attr(640,root,callweaver) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/*.*
162 %attr(755,root,root) %{_sbindir}/*
163 %dir %{_libdir}/%{name}
164 %attr(755,root,root) %{_libdir}/%{name}/*.so.*
165 %{_libdir}/%{name}/*.la
166 %dir %{_libdir}/%{name}/modules
167 %attr(755,root,root) %{_libdir}/%{name}/modules/*.so
168 %{_libdir}/%{name}/modules/*.la
171 /usr/lib/tmpfiles.d/%{name}.conf
172 %attr(750,callweaver,root) %dir %{_var}/lib/callweaver
173 %attr(750,callweaver,root) %dir %{_var}/lib/callweaver/core
174 %attr(750,callweaver,root) %dir %{_var}/log/callweaver
175 %attr(750,callweaver,root) %dir %{_var}/log/callweaver/*
176 %attr(750,callweaver,root) %dir %{_var}/run/callweaver
177 %attr(750,callweaver,root) %dir %{_var}/spool/callweaver
178 %attr(750,callweaver,root) %dir %{_var}/spool/callweaver/voicemail
180 %attr(754,root,root) /etc/rc.d/init.d/%{name}
181 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
182 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}
185 %defattr(644,root,root,755)
186 %{_includedir}/%{name}