3 # -move vocpweb.cgi to cgi-bin directory or adding
4 # <Directory %{_vocpwebdir}>
7 # to httpd.conf, what with diff in locaton confs between apatche 1.x and 2.x ?,
8 # -make to work pass checking in xvocp.pl, luzik is to lame in perl,
9 # -add .desktop files and icons, min. for callcenter & boxconf,
11 # -translate description,
12 # -play with secure stuff, attr for examle, luzik is to lame in sec,
13 # -fix BR, for each package
15 %include /usr/lib/rpm/macros.perl
17 %define _vocpwebdir /home/services/httpd/html/vocp
19 Summary: VOCP is a complete messaging solution for voice modems
20 Summary(pl): VOCP jest a complete messaging solution dla voice modems
25 Group: Applications/Communications
26 Source0: http://prdownloads.sourceforge.net/vocp/VOCP-%{version}.tar.bz2
27 Source1: %{name}.logrotate
28 Patch0: %{name}-vars.patch
29 Patch1: %{name}-bin.patch
30 Patch2: %{name}-%{name}web.patch
31 Patch3: %{name}-doc.patch
32 URL: http://www.vocpsystem.com
33 Requires: perl-Modem-Vgetty
35 Requires: perl-Audio-DSP
36 Requires: perl-XML-Mini
37 Requires: perl-Tk-JPEG
38 Requires: perl-Crypt-CBC
39 Requires: perl-Crypt-Blowfish
40 Requires: perl-MIME-tools
43 Requires: vorbis-tools
44 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47 Much more than an answering machine, VOCP transforms your computer
48 into a full-featured call answering and voice messaging system.
51 Du¿o wiêcej ni¿ automatyczna sekretarka, VOCP zmieni twój komputer w
52 pe³ni funkcjonalny setem do voice messaging
53 system!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
56 Summary: Perl modules for VOCP
57 Summary(pl): Modlu³y perla dla VOCP
58 Group: Applications/Communications
59 Requires: perl >= 5.8.0
61 %description perl-modules
64 %description perl-modules -l pl
65 Modlu³y perla dla VOCP
69 Summary: Web GUI for VOCP
70 Summary(pl): Web GUI for VOCP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
71 Group: Applications/Communications
72 Requires: %{name}-modules
77 %description vocpweb -l pl
78 Web GUI for VOCP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
92 gcc -o pwcheck pwcheck.c
93 gcc -o xfer_to_vocp xfer_to_vocp.c
96 %{__perl} Makefile.PL INSTALLDIRS=vendor
100 rm -rf $RPM_BUILD_ROOT
102 install -d $RPM_BUILD_ROOT%{_sysconfdir}/vocp \
103 $RPM_BUILD_ROOT%{_datadir}/vocp/{images,messages,run,sounds,lib} \
104 $RPM_BUILD_ROOT%{_var}/spool/voice/{commands,incoming/cache,messages} \
105 $RPM_BUILD_ROOT%{_bindir} \
106 $RPM_BUILD_ROOT%{_vocpwebdir}/{img,sounds,tpl} \
107 $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d \
108 $RPM_BUILD_ROOT/var/log
110 cp -R images $RPM_BUILD_ROOT%{_datadir}/vocp
111 cp -R sounds $RPM_BUILD_ROOT%{_datadir}/vocp
112 cp -R messages $RPM_BUILD_ROOT%{_datadir}/vocp
113 cp -R prog/lib $RPM_BUILD_ROOT%{_datadir}/vocp
114 cp prog/bin/README prog/bin/README-bin
115 cp -R commands $RPM_BUILD_ROOT%{_var}/spool/voice
116 cp -R messages/*.rmd $RPM_BUILD_ROOT%{_var}/spool/voice/messages
117 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/%{name}
118 install vocpweb/*.html $RPM_BUILD_ROOT%{_vocpwebdir}
119 install vocpweb/styles.css $RPM_BUILD_ROOT%{_vocpwebdir}
120 install vocpweb/img/*.gif $RPM_BUILD_ROOT%{_vocpwebdir}/img
121 install vocpweb/sounds/*.html $RPM_BUILD_ROOT%{_vocpwebdir}/sounds
122 install vocpweb/tpl/*.html $RPM_BUILD_ROOT%{_vocpwebdir}/tpl
123 install vocpweb/vocpweb.cgi $RPM_BUILD_ROOT%{_vocpwebdir}
124 touch $RPM_BUILD_ROOT/var/log/{vocp-calls.log,vocp.log,voicelog}
125 for i in boxconf.pl convert_boxconf.pl pvftomp3 pwcheck \
126 toggleEmail2Vm.pl vocphax.pl xfer_to_vocp xvocp.pl \
127 callcenter.pl convert_fax.sh email2vm.pl pvftoogg \
128 pwcheck.pl txttopvf vocplocal.pl xfer_to_vocp \
129 cnd-logger.pl cryptpass.pl messages.pl pwcheck \
130 view_fax.sh wav2rmd.pl xfer_to_vocp.pl ../vocp.pl; do
131 install prog/bin/$i $RPM_BUILD_ROOT%{_bindir}
133 for i in boxes.conf boxes.conf.sample boxes.conf.shadow cid-filter.conf vocp.conf; do
134 install prog/$i $RPM_BUILD_ROOT%{_sysconfdir}/vocp
139 DESTDIR=$RPM_BUILD_ROOT
143 rm -rf $RPM_BUILD_ROOT
146 %defattr(644,root,root,755)
147 %doc README INSTALL LICENSE CHANGELOG prog/bin/README-bin doc
148 %attr(644,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/vocp/*
149 %attr(755,root,root) %{_bindir}/*
150 %{_datadir}/%{name}/*
151 %attr(1777,root,root) %dir /var/spool/voice/incoming/cache
152 %attr(755,root,root) /var/spool/voice/commands/*
153 %{_var}/spool/voice/messages/*
154 %attr(640,root,root) %config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
155 %attr(640,root,root) /var/log/*log
158 %defattr(644,root,root,755)
159 %{perl_vendorlib}/VOCP.pm
160 %{perl_vendorlib}/VOCP/*
161 %{perl_vendorlib}/auto/VOCP/autosplit.ix
166 %defattr(644,root,root,755)
167 %doc vocpweb/INSTALL vocpweb/README vocpweb/SECURITY
169 %attr(1777,root,root) %dir %{_vocpwebdir}/sounds
170 %{_vocpwebdir}/index.html
171 %{_vocpwebdir}/styles.css
172 %{_vocpwebdir}/vocpwebhelp.html
173 %{_vocpwebdir}/img/*.gif
174 %{_vocpwebdir}/sounds/index.html
175 %{_vocpwebdir}/tpl/*.html
176 %attr(4755,root,root) %{_vocpwebdir}/vocpweb.cgi