1 Summary: HylaFAX(tm) is a sophisticated enterprise strength fax package
2 Summary(pl): HylaFAX(tm) to przemy¶lany, potê¿ny pakiet do obs³ugi faksów
7 Group: Applications/Communications
8 Source0: ftp://ftp.hylafax.org/source/%{name}-%{version}.tar.gz
9 Source1: %{name}-cron_entries.tar.gz
10 Source2: %{name}-defaults.tar.gz
11 Source3: %{name}-dialrules_extras.tar.gz
12 Source4: %{name}-man-pages.tar.bz2
13 Source6: %{name}-logrotate
15 Source8: %{name}-hyla.conf
16 Patch0: %{name}-no_libgl_man.patch
17 Patch1: %{name}-topmargin.patch
18 Patch2: %{name}-new-libtiff.patch
19 URL: http://www.hylafax.org/
20 BuildRequires: libjpeg-devel
21 BuildRequires: libtiff-devel
22 BuildRequires: zlib-devel
23 BuildRequires: gcc-c++
24 BuildRequires: libtiff-progs
25 Requires: %{name}-libs = %{version}
27 Requires: ghostscript-fonts-std
28 Requires: libtiff-progs
29 Conflicts: mgetty-sendfax
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 %define faxspool /var/spool/fax
35 HylaFAX(tm) is a sophisticated enterprise-strength fax package for
36 class 1 and 2 fax modems on unix systems. It provides spooling
37 services and numerous supporting fax management tools. The fax clients
38 may reside on machines different from the server and client
39 implementations exist for a number of platforms including Windows.
41 You need this package if you are going to install hylafax-client
42 and/or hylafax server.
45 HylaFAX(tm) to przemy¶lany, potê¿ny pakiet do obs³ugi faxmodemów klasy
46 1 i 2 na systemach uniksowych. Daje serwisy kolejkuj±ce i wiele
47 narzêdzi do zarz±dzania faksami. Klienci mog± dzia³aæ na maszynach
48 innych ni¿ serwer, implementacje klientów s± dostêpne na wiele
49 platform, w tym Windows.
51 Ten pakiet zawiera pliki wspólne dla serwera i klienta HylaFAX.
54 Summary: The files for the HylaFAX(tm) fax server
55 Summary(pl): Pliki dla serwera faksów HylaFAX(tm)
56 Group: Applications/Communications
57 Requires: %{name} = %{version}
58 Requires(post,preun): /sbin/chkconfig
60 Requires(post): textutils
62 Requires(preun): /sbin/telinit
65 HylaFAX(tm) is a sophisticated enterprise-strength fax package for
66 class 1 and 2 fax modems on unix systems. It provides spooling
67 services and numerous supporting fax management tools. The fax clients
68 may reside on machines different from the server and client
69 implementations exist for a number of platforms including Windows.
71 This is the server portion of HylaFAX.
73 %description server -l pl
74 HylaFAX(tm) to przemy¶lany, potê¿ny pakiet do obs³ugi faxmodemów klasy
75 1 i 2 na systemach uniksowych. Daje serwisy kolejkuj±ce i wiele
76 narzêdzi do zarz±dzania faksami. Klienci mog± dzia³aæ na maszynach
77 innych ni¿ serwer, implementacje klientów s± dostêpne na wiele
78 platform, w tym Windows.
80 Ten pakiet zawiera czê¶æ serwerow± HylaFAX.
83 Summary: The files for the HylaFAX(tm) fax client
84 Summary(pl): Pliki dla klienta faksów HylaFAX(tm)
85 Group: Applications/Communications
86 Requires: %{name} = %{version}
89 HylaFAX(tm) is a sophisticated enterprise-strength fax package for
90 class 1 and 2 fax modems on unix systems. It provides spooling
91 services and numerous supporting fax management tools. The fax clients
92 may reside on machines different from the server and client
93 implementations exist for a number of platforms including Windows.
95 This is the client portion of HylaFAX.
97 %description client -l pl
98 HylaFAX(tm) to przemy¶lany, potê¿ny pakiet do obs³ugi faxmodemów klasy
99 1 i 2 na systemach uniksowych. Daje serwisy kolejkuj±ce i wiele
100 narzêdzi do zarz±dzania faksami. Klienci mog± dzia³aæ na maszynach
101 innych ni¿ serwer, implementacje klientów s± dostêpne na wiele
102 platform, w tym Windows.
104 Ten pakiet zawiera czê¶æ klienck± HylaFAX.
107 Summary: Hylafax libraries
108 Summary(pl): Biblioteki HylaFAX
112 HylaFAX(tm) is a sophisticated enterprise-strength fax package for
113 class 1 and 2 fax modems on unix systems. It provides spooling
114 services and numerous supporting fax management tools. The fax clients
115 may reside on machines different from the server and client
116 implementations exist for a number of platforms including Windows.
118 This package contains the shared libraries of HylaFAX.
120 %description libs -l pl
121 HylaFAX(tm) to przemy¶lany, potê¿ny pakiet do obs³ugi faxmodemów klasy
122 1 i 2 na systemach uniksowych. Daje serwisy kolejkuj±ce i wiele
123 narzêdzi do zarz±dzania faksami. Klienci mog± dzia³aæ na maszynach
124 innych ni¿ serwer, implementacje klientów s± dostêpne na wiele
125 platform, w tym Windows.
127 Ten pakiet zawiera biblioteki wspó³dzielone HylaFAX
130 Summary: Hylafax libraries development part
131 Summary(pl): Pakiet dla programistów u¿ywaj±cych bibliotek HylaFAX
132 Group: Development/Libraries
133 Requires: %{name}-libs = %{version}
136 HylaFAX(tm) is a sophisticated enterprise-strength fax package for
137 class 1 and 2 fax modems on unix systems. It provides spooling
138 services and numerous supporting fax management tools. The fax clients
139 may reside on machines different from the server and client
140 implementations exist for a number of platforms including Windows.
142 This is development package for HylaFAX libraries.
144 %description devel -l pl
145 Pakiet dla programistów u¿ywaj±cych bibliotek HylaFAX.
148 %setup -q -n %{name}-%{version} -a 1 -a 2 -a 3 -q
155 --with-DIR_BIN=%{_bindir} \
156 --with-DIR_SBIN=%{_sbindir} \
157 --with-DIR_LIBEXEC=%{_bindir} \
158 --with-DIR_LIBDATA=%{_datadir}/fax \
159 --with-DIR_MAN=%{_mandir} \
160 --with-DIR_SPOOL=%{faxspool} \
161 --with-PATH_GSRIP=%{_bindir}/gs \
164 --with-PATH_VGETTY=/sbin/vgetty \
165 --with-PATH_EGETTY=/sbin/egetty \
166 --with-PATH_GETTY=/sbin/mgetty \
169 --with-SYSVINIT=/etc/rc.d/init.d/hylafax \
170 --with-INTERACTIVE=no \
171 --with-SCRIPT_SH=/bin/bash \
172 --with-PATH_SENDMAIL=/usr/sbin/sendmail
174 %{__make} OPTIMIZER="$RPM_OPT_FLAGS"
177 rm -rf $RPM_BUILD_ROOT
178 install -d $RPM_BUILD_ROOT%{_sysconfdir}/{logrotate.d,cron.hourly,cron.daily,rc.d/init.d} \
179 $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_libdir},%{_datadir}/fax} \
180 $RPM_BUILD_ROOT%{faxspool}/{etc,config/defaults,bin} \
181 $RPM_BUILD_ROOT%{_mandir}/{man1,man5,man8}
183 %{__make} install -e \
188 BIN=$RPM_BUILD_ROOT%{_bindir} \
189 SBIN=$RPM_BUILD_ROOT%{_sbindir} \
190 LIBDATA=$RPM_BUILD_ROOT%{_datadir}/fax \
191 LIBEXEC=$RPM_BUILD_ROOT%{_bindir} \
192 SPOOL=$RPM_BUILD_ROOT%{faxspool} \
193 MAN=$RPM_BUILD_ROOT%{_mandir} \
194 LIBDIR=$RPM_BUILD_ROOT%{_libdir} \
195 INSTALL_ROOT=$RPM_BUILD_ROOT
197 bzip2 -dc %{SOURCE4} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
200 perl -pi -e 's!%{_prefix}%{_sysconfdir}/inetd.conf!%{_sysconfdir}/inetd.conf!g' $RPM_BUILD_ROOT%{_sbindir}/faxsetup
201 perl -pi -e 's!%{_libdir}/aliases!%{_sysconfdir}/aliases!g' $RPM_BUILD_ROOT%{_sbindir}/faxsetup
204 install %{SOURCE7} $RPM_BUILD_ROOT/etc/rc.d/init.d/hylafax
207 install defaults/* $RPM_BUILD_ROOT%{faxspool}/config/defaults/
210 install %{SOURCE8} $RPM_BUILD_ROOT%{_datadir}/fax/hyla.conf
213 install hylafax_daily.cron $RPM_BUILD_ROOT%{_sysconfdir}/cron.daily/hylafax
214 install hylafax_hourly.cron $RPM_BUILD_ROOT%{_sysconfdir}/cron.hourly/hylafax
217 install %{SOURCE6} $RPM_BUILD_ROOT/etc/logrotate.d/hylafax
220 install dialrules_extras/dialrules* $RPM_BUILD_ROOT%{faxspool}%{_sysconfdir}
222 (cd $RPM_BUILD_ROOT%{faxspool}/bin; ln -sf ps2fax.gs ps2fax)
224 # The Makefile puts the .so file in /usr/sbin. Move them to /usr/lib
225 #mv -f $RPM_BUILD_ROOT%{_sbindir}/*.so.* $RPM_BUILD_ROOT%{_libdir}
226 #mv -f $RPM_BUILD_ROOT%{_sbindir}/*.so $RPM_BUILD_ROOT%{_libdir}
228 # Since now the html doc dir is managed by the doc macro and not installed
229 # by HylaFAX, the CVS stuff need to be deleted
230 rm -rf $(find ./html -type d -name CVS)
231 rm -f ./html/{.cvsignore,Makefile.in}
233 # Some tools (manpage, man2html, unquote)
234 rm -f html/tools/{unquote,man2html}
236 # If Linux, what else...? :-), delete unnecessary files
238 rm -f $RPM_BUILD_ROOT%{_sbindir}/{faxsetup.irix,faxsetup.bsdi}
242 rm -rf $RPM_BUILD_ROOT
244 %post libs -p /sbin/ldconfig
245 %postun libs -p /sbin/ldconfig
248 #%_preun_service hylafax
251 #%_post_service hylafax
252 #%%{_sbindir}/faxsetup -client
255 /sbin/chkconfig --add hylafax
256 if [ -f /var/lock/subsys/hylafax ]; then
257 /etc/rc.d/init.d/hylafax restart
259 echo "Run \"/etc/rc.d/init.d/hylafax start\" to start hylafax daemons." >&2
262 cat %{_sysconfdir}/inittab | grep -i "faxgetty entry" || \
263 echo -e "# FaxGetty Entry\n#t0:23:respawn:%{_sbindir}/faxgetty ttyS0" >> %{_sysconfdir}/inittab
264 echo "Please check if new fax entry in %{_sysconfdir}/inittab is correct."
265 echo "Run \"%{_sbindir}/faxsetup -server\" to configure your fax server"
266 echo "Run \"/sbin/telinit q\" to start faxgetty"
269 if [ "$1" = "0" ] ; then
270 if [ -f /var/lock/subsys/hylafax ]; then
271 /etc/rc.d/init.d/hylafax stop >&2
273 /sbin/chkconfig --del hylafax
274 perl -pi -e 's!^.*faxgetty.*$!!g' %{_sysconfdir}/inittab > %{_sysconfdir}/inittab.$$
279 %defattr(644,root,root,755)
280 %doc README TODO VERSION
281 %attr(755,root,root) %{_sbindir}/faxsetup
282 %attr(755,root,root) %{_sbindir}/faxsetup.linux
286 %defattr(644,root,root,755)
287 %attr(755,root,root) %{_bindir}/sendfax
288 %attr(755,root,root) %{_bindir}/sendpage
289 %attr(755,root,root) %{_bindir}/faxstat
290 %attr(755,root,root) %{_bindir}/faxalter
291 %attr(755,root,root) %{_bindir}/faxcover
292 %attr(755,root,root) %{_bindir}/faxmail
293 %attr(755,root,root) %{_bindir}/faxrm
294 %attr(755,root,root) %{_bindir}/textfmt
295 %{_datadir}/fax/pagesizes
296 %{_datadir}/fax/faxcover.ps
297 %{_datadir}/fax/typerules
298 %{_datadir}/fax/hyla.conf
302 %defattr(644,root,root,755)
303 %attr(754,root,root) /etc/rc.d/init.d/hylafax
304 %attr(750,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/cron.daily/hylafax
305 %attr(750,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/cron.hourly/hylafax
306 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/logrotate.d/hylafax
309 %attr(755,uucp,uucp) %dir %{faxspool}/client
310 %dir %{faxspool}/config
312 %dir %{faxspool}%{_sysconfdir}
313 %attr(755,uucp,uucp) %dir %{faxspool}/info
314 %attr(755,uucp,uucp) %dir %{faxspool}/log
315 %attr(755,uucp,uucp) %dir %{faxspool}/recvq
316 %attr(755,uucp,uucp) %dir %{faxspool}/status
317 %attr(755,uucp,uucp) %dir %{faxspool}/sendq
318 %attr(755,uucp,uucp) %dir %{faxspool}/doneq
319 %attr(755,uucp,uucp) %dir %{faxspool}/docq
320 %attr(755,uucp,uucp) %dir %{faxspool}/tmp
321 %attr(755,uucp,uucp) %dir %{faxspool}/pollq
322 %attr(755,uucp,uucp) %dir %{faxspool}/archive
324 %attr(600,uucp,uucp) %{faxspool}/FIFO
325 %{faxspool}/COPYRIGHT
326 %attr(644,uucp,uucp) %config(noreplace) %verify(not size mtime md5) %{faxspool}%{_sysconfdir}/xferfaxlog
327 %config(noreplace) %verify(not size mtime md5) %{faxspool}%{_sysconfdir}/hosts.hfaxd
328 %config(noreplace) %verify(not size mtime md5) %{faxspool}%{_sysconfdir}/lutRS18.pcf
329 %config(noreplace) %verify(not size mtime md5) %{faxspool}%{_sysconfdir}/dpsprinter.ps
330 %config(noreplace) %verify(not size mtime md5) %{faxspool}%{_sysconfdir}/cover.templ
331 %config(noreplace) %verify(not size mtime md5) %{faxspool}%{_sysconfdir}/dialrules*
333 %attr(755,root,root) %{faxspool}/bin/*
336 %attr(755,root,root) %{_bindir}/hfaxd
337 %attr(755,root,root) %{_sbindir}/hylafax
338 %attr(755,root,root) %{_sbindir}/faxdeluser
339 %attr(755,root,root) %{_sbindir}/faxadduser
340 %attr(755,root,root) %{_sbindir}/choptest
341 %attr(755,root,root) %{_sbindir}/cqtest
342 %attr(755,root,root) %{_sbindir}/dialtest
343 %attr(755,root,root) %{_sbindir}/faxabort
344 %attr(755,root,root) %{_sbindir}/faxaddmodem
345 %attr(755,root,root) %{_sbindir}/faxanswer
346 %attr(755,root,root) %{_sbindir}/faxconfig
347 %attr(755,root,root) %{_sbindir}/faxcron
348 %attr(755,root,root) %{_bindir}/faxgetty
349 %attr(755,root,root) %{_sbindir}/faxinfo
350 %attr(755,root,root) %{_sbindir}/faxlock
351 %attr(755,root,root) %{_sbindir}/faxmodem
352 %attr(755,root,root) %{_sbindir}/faxmsg
353 %attr(755,root,root) %{_sbindir}/faxq
354 %attr(755,root,root) %{_sbindir}/faxqclean
355 %attr(755,root,root) %{_sbindir}/faxquit
356 %attr(755,root,root) %{_bindir}/faxsend
357 %attr(755,root,root) %{_sbindir}/faxstate
358 %attr(755,root,root) %{_sbindir}/faxwatch
359 %attr(755,root,root) %{_bindir}/lockname
360 %attr(755,root,root) %{_bindir}/ondelay
361 %attr(755,root,root) %{_bindir}/pagesend
362 %attr(755,root,root) %{_sbindir}/probemodem
363 %attr(755,root,root) %{_sbindir}/recvstats
364 %attr(755,root,root) %{_sbindir}/tagtest
365 %attr(755,root,root) %{_sbindir}/tiffcheck
366 %attr(755,root,root) %{_sbindir}/tsitest
367 %attr(755,root,root) %{_sbindir}/typetest
368 %attr(755,root,root) %{_sbindir}/xferfaxstats
370 %{_datadir}/fax/faxmail.ps
371 %{_datadir}/fax/hfaxd.conf
377 %defattr(644,root,root,755)
379 %attr(755,root,root) %{_libdir}/*.so.*.*
382 %defattr(644,root,root,755)
384 %attr(755,root,root) %{_libdir}/*.so