]>
Commit | Line | Data |
---|---|---|
88b0e30f | 1 | |
2 | # TODO: | |
3 | # -move vocpweb.cgi to cgi-bin directory or adding | |
4 | # <Directory %{_vocpwebdir}> | |
5 | # Options ExecCGI | |
6 | # </Directory> | |
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, | |
10 | # -full test package, | |
11 | # -translate description, | |
12 | # -play with secure stuff, attr for examle, luzik is to lame in sec, | |
13 | # -fix BR, for each package | |
83b8b2e6 | 14 | # -try runing on perl-5.6.1 |
88b0e30f | 15 | |
88b0e30f | 16 | |
80dbddcf | 17 | %define _vocpwebdir /home/services/httpd/html/vocp |
88b0e30f | 18 | |
90f57e1d | 19 | Summary: VOCP is a complete messaging solution for voice modems |
9a1616a2 | 20 | Summary(pl.UTF-8): VOCP to pełna obsługa wiadomości dla modemów głosowych |
7f0ca3e7 | 21 | Name: VOCP |
90f57e1d | 22 | Version: 0.9.3 |
23 | Release: 0.1 | |
24 | License: GPL | |
25 | Group: Applications/Communications | |
81fbc1ea | 26 | Source0: http://dl.sourceforge.net/vocp/%{name}-%{version}.tar.bz2 |
381ad17c | 27 | # Source0-md5: 1a570a1f5af11786b39f6aed4304b5c3 |
90f57e1d | 28 | Source1: %{name}.logrotate |
29 | Patch0: %{name}-vars.patch | |
30 | Patch1: %{name}-bin.patch | |
83b8b2e6 | 31 | Patch2: %{name}-vocpweb.patch |
90f57e1d | 32 | Patch3: %{name}-doc.patch |
81fbc1ea | 33 | URL: http://www.vocpsystem.com/ |
90f57e1d | 34 | Requires: festival |
a6f3541c | 35 | Requires: lame |
9d177251 ER |
36 | Requires: logrotate |
37 | Requires: perl-Modem-Vgetty | |
a6f3541c | 38 | Requires: vorbis-tools |
90f57e1d | 39 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
88b0e30f | 40 | |
41 | %description | |
42 | Much more than an answering machine, VOCP transforms your computer | |
43 | into a full-featured call answering and voice messaging system. | |
44 | ||
9a434405 JR |
45 | %description -l pl.UTF-8 |
46 | VOCP to dużo więcej niż automatyczna sekretarka - zamienia komputer na | |
47 | w pełni funkcjonalny system odpowiedzi i komunikatów głosowych. | |
88b0e30f | 48 | |
49 | %package perl-modules | |
90f57e1d | 50 | Summary: Perl modules for VOCP |
9a1616a2 | 51 | Summary(pl.UTF-8): Moduły Perla dla VOCP |
90f57e1d | 52 | Group: Applications/Communications |
53 | Requires: perl >= 5.8.0 | |
88b0e30f | 54 | |
55 | %description perl-modules | |
7f0ca3e7 | 56 | Perl modules for VOCP. |
88b0e30f | 57 | |
9a434405 JR |
58 | %description perl-modules -l pl.UTF-8 |
59 | Moduły Perla dla VOCP. | |
88b0e30f | 60 | |
61 | %package vocpweb | |
90f57e1d | 62 | Summary: Web GUI for VOCP |
9a1616a2 | 63 | Summary(pl.UTF-8): Interfejs graficzny WWW dla VOCP |
90f57e1d | 64 | Group: Applications/Communications |
83b8b2e6 | 65 | Requires: %{name}-perl-modules |
88b0e30f | 66 | |
67 | %description vocpweb | |
7f0ca3e7 | 68 | Web GUI for VOCP. |
88b0e30f | 69 | |
9a434405 | 70 | %description vocpweb -l pl.UTF-8 |
81fbc1ea | 71 | Interfejs graficzny WWW dla VOCP. |
88b0e30f | 72 | |
73 | %prep | |
83b8b2e6 | 74 | %setup -q -n vocp-%{version} |
88b0e30f | 75 | %patch0 -p1 |
76 | %patch1 -p1 | |
77 | %patch2 -p1 | |
78 | %patch3 -p1 | |
79 | ||
80 | %build | |
81 | cd prog/bin | |
83b8b2e6 | 82 | %{__cc} %{rpmcflags} %{rpmldflags} -o pwcheck pwcheck.c |
83 | %{__cc} %{rpmcflags} %{rpmldflags} -o xfer_to_vocp xfer_to_vocp.c | |
88b0e30f | 84 | |
85 | cd ../VOCP | |
86 | %{__perl} Makefile.PL INSTALLDIRS=vendor | |
87 | %{__make} | |
88 | ||
89 | %install | |
90 | rm -rf $RPM_BUILD_ROOT | |
88b0e30f | 91 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/vocp \ |
80dbddcf | 92 | $RPM_BUILD_ROOT%{_datadir}/vocp/{images,messages,run,sounds,lib} \ |
93 | $RPM_BUILD_ROOT%{_var}/spool/voice/{commands,incoming/cache,messages} \ | |
94 | $RPM_BUILD_ROOT%{_bindir} \ | |
95 | $RPM_BUILD_ROOT%{_vocpwebdir}/{img,sounds,tpl} \ | |
96 | $RPM_BUILD_ROOT/etc/logrotate.d \ | |
97 | $RPM_BUILD_ROOT/var/log | |
88b0e30f | 98 | |
7f0ca3e7 | 99 | %{__make} install -C prog/VOCP \ |
100 | DESTDIR=$RPM_BUILD_ROOT | |
101 | ||
83b8b2e6 | 102 | rm -rf $RPM_BUILD_ROOT%%{perl_vendorlib}/auto |
88b0e30f | 103 | cp -R images $RPM_BUILD_ROOT%{_datadir}/vocp |
104 | cp -R sounds $RPM_BUILD_ROOT%{_datadir}/vocp | |
105 | cp -R messages $RPM_BUILD_ROOT%{_datadir}/vocp | |
106 | cp -R prog/lib $RPM_BUILD_ROOT%{_datadir}/vocp | |
107 | cp prog/bin/README prog/bin/README-bin | |
108 | cp -R commands $RPM_BUILD_ROOT%{_var}/spool/voice | |
109 | cp -R messages/*.rmd $RPM_BUILD_ROOT%{_var}/spool/voice/messages | |
110 | install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/%{name} | |
111 | install vocpweb/*.html $RPM_BUILD_ROOT%{_vocpwebdir} | |
112 | install vocpweb/styles.css $RPM_BUILD_ROOT%{_vocpwebdir} | |
113 | install vocpweb/img/*.gif $RPM_BUILD_ROOT%{_vocpwebdir}/img | |
114 | install vocpweb/sounds/*.html $RPM_BUILD_ROOT%{_vocpwebdir}/sounds | |
115 | install vocpweb/tpl/*.html $RPM_BUILD_ROOT%{_vocpwebdir}/tpl | |
116 | install vocpweb/vocpweb.cgi $RPM_BUILD_ROOT%{_vocpwebdir} | |
117 | touch $RPM_BUILD_ROOT/var/log/{vocp-calls.log,vocp.log,voicelog} | |
118 | for i in boxconf.pl convert_boxconf.pl pvftomp3 pwcheck \ | |
119 | toggleEmail2Vm.pl vocphax.pl xfer_to_vocp xvocp.pl \ | |
120 | callcenter.pl convert_fax.sh email2vm.pl pvftoogg \ | |
121 | pwcheck.pl txttopvf vocplocal.pl xfer_to_vocp \ | |
122 | cnd-logger.pl cryptpass.pl messages.pl pwcheck \ | |
123 | view_fax.sh wav2rmd.pl xfer_to_vocp.pl ../vocp.pl; do | |
80dbddcf | 124 | install prog/bin/$i $RPM_BUILD_ROOT%{_bindir} |
88b0e30f | 125 | done |
126 | for i in boxes.conf boxes.conf.sample boxes.conf.shadow cid-filter.conf vocp.conf; do | |
80dbddcf | 127 | install prog/$i $RPM_BUILD_ROOT%{_sysconfdir}/vocp |
88b0e30f | 128 | done |
129 | ||
3cc6e4f7 | 130 | install prog/lib/XVOCP.pm $RPM_BUILD_ROOT%{perl_vendorlib} |
a6373434 | 131 | |
88b0e30f | 132 | %clean |
133 | rm -rf $RPM_BUILD_ROOT | |
134 | ||
135 | %files | |
136 | %defattr(644,root,root,755) | |
76bddba7 | 137 | %doc INSTALL CHANGELOG prog/bin/README-bin doc/* |
9d177251 | 138 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vocp/* |
88b0e30f | 139 | %attr(755,root,root) %{_bindir}/* |
83b8b2e6 | 140 | %{_datadir}/vocp |
88b0e30f | 141 | %attr(1777,root,root) %dir /var/spool/voice/incoming/cache |
142 | %attr(755,root,root) /var/spool/voice/commands/* | |
143 | %{_var}/spool/voice/messages/* | |
9d177251 | 144 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name} |
88b0e30f | 145 | %attr(640,root,root) /var/log/*log |
146 | ||
147 | %files perl-modules | |
148 | %defattr(644,root,root,755) | |
149 | %{perl_vendorlib}/VOCP.pm | |
a6373434 | 150 | %{perl_vendorlib}/XVOCP.pm |
7f0ca3e7 | 151 | %{perl_vendorlib}/VOCP |
a6373434 | 152 | %{perl_vendorlib}/auto/VOCP/autosplit.ix |
88b0e30f | 153 | %{_mandir}/man3/* |
154 | ||
88b0e30f | 155 | %files vocpweb |
156 | %defattr(644,root,root,755) | |
157 | %doc vocpweb/INSTALL vocpweb/README vocpweb/SECURITY | |
158 | %dir %{_vocpwebdir} | |
159 | %attr(1777,root,root) %dir %{_vocpwebdir}/sounds | |
160 | %{_vocpwebdir}/index.html | |
161 | %{_vocpwebdir}/styles.css | |
162 | %{_vocpwebdir}/vocpwebhelp.html | |
163 | %{_vocpwebdir}/img/*.gif | |
164 | %{_vocpwebdir}/sounds/index.html | |
165 | %{_vocpwebdir}/tpl/*.html | |
166 | %attr(4755,root,root) %{_vocpwebdir}/vocpweb.cgi |