1 Summary: HylaFAX(tm) is a sophisticated enterprise strength fax package
2 Summary(pl.UTF-8): 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 # Source0-md5: 2b34dbcb769f4d5bff07990c51adc0e8
10 #Source0: http://dl.sourceforge.net/hylafax/%{name}-%{version}.tar.gz
11 Source1: %{name}-cron_entries.tar.gz
12 # Source1-md5: d5e2bd6447715654ba916b6f4d0d9343
13 Source2: %{name}-defaults.tar.gz
14 # Source2-md5: 9fae3c4503ecd328a85cd23a430f4ddf
15 Source3: %{name}-dialrules_extras.tar.gz
16 # Source3-md5: 092430f320963d31932b587152fb811b
17 Source4: %{name}-man-pages.tar.bz2
18 # Source4-md5: 62772fbbce6cb3a918145ad8a836b4eb
19 Source6: %{name}-logrotate
21 Source8: %{name}-hyla.conf
22 Patch0: %{name}-no_libgl_man.patch
23 Patch1: %{name}-topmargin.patch
24 Patch2: %{name}-pic.patch
25 Patch3: %{name}-awk.patch
26 URL: http://www.hylafax.org/
27 BuildRequires: libjpeg-devel
28 BuildRequires: libstdc++-devel
29 BuildRequires: libtiff-devel
30 BuildRequires: libtiff-progs
31 BuildRequires: rpmbuild(macros) >= 1.268
32 BuildRequires: sed >= 4.1
33 BuildRequires: zlib-devel
34 Requires: %{name}-libs = %{version}-%{release}
36 Requires: fonts-Type1-urw
37 Requires: libtiff-progs
38 Conflicts: mgetty-sendfax
39 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41 %define faxspool /var/spool/fax
44 HylaFAX(tm) is a sophisticated enterprise-strength fax package for
45 class 1 and 2 fax modems on unix systems. It provides spooling
46 services and numerous supporting fax management tools. The fax clients
47 may reside on machines different from the server and client
48 implementations exist for a number of platforms including Windows.
50 You need this package if you are going to install hylafax-client
51 and/or hylafax server.
53 %description -l pl.UTF-8
54 HylaFAX(tm) to przemyślany, potężny pakiet do obsługi faksmodemów
55 klasy 1 i 2 na systemach uniksowych. Dostarcza usług kolejkowania i
56 wielu narzędzi do zarządzania faksami. Klienci mogą działać na
57 maszynach innych niż serwer, dostępne są implementacje klientów na
58 wiele platform, w tym na platformę Windows.
60 Ten pakiet zawiera pliki wspólne dla serwera i klienta HylaFAX.
63 Summary: The files for the HylaFAX(tm) fax server
64 Summary(pl.UTF-8): Pliki dla serwera faksów HylaFAX(tm)
65 Group: Applications/Communications
67 Requires(post): textutils
68 Requires(post,preun): /sbin/chkconfig
69 Requires(preun): /sbin/telinit
70 Requires(preun): sed >= 4.0
71 Requires: %{name} = %{version}-%{release}
75 HylaFAX(tm) is a sophisticated enterprise-strength fax package for
76 class 1 and 2 fax modems on unix systems. It provides spooling
77 services and numerous supporting fax management tools. The fax clients
78 may reside on machines different from the server and client
79 implementations exist for a number of platforms including Windows.
81 This is the server portion of HylaFAX.
83 %description server -l pl.UTF-8
84 HylaFAX(tm) to przemyślany, potężny pakiet do obsługi faksmodemów
85 klasy 1 i 2 na systemach uniksowych. Dostarcza usług kolejkowania i
86 wielu narzędzi do zarządzania faksami. Klienci mogą działać na
87 maszynach innych niż serwer, implementacje klientów są dostępne na
88 wiele platform, w tym na platformę Windows.
90 Ten pakiet zawiera część serwerową HylaFAX.
93 Summary: The files for the HylaFAX(tm) fax client
94 Summary(pl.UTF-8): Pliki dla klienta faksów HylaFAX(tm)
95 Group: Applications/Communications
96 Requires: %{name} = %{version}-%{release}
100 HylaFAX(tm) is a sophisticated enterprise-strength fax package for
101 class 1 and 2 fax modems on unix systems. It provides spooling
102 services and numerous supporting fax management tools. The fax clients
103 may reside on machines different from the server and client
104 implementations exist for a number of platforms including Windows.
106 This is the client portion of HylaFAX.
108 %description client -l pl.UTF-8
109 HylaFAX(tm) to przemyślany, potężny pakiet do obsługi faksmodemów
110 klasy 1 i 2 na systemach uniksowych. Dostarcza usług kolejkowania i
111 wielu narzędzi do zarządzania faksami. Klienci mogą działać na
112 maszynach innych niż serwer, implementacje klientów są dostępne na
113 wiele platform, w tym na platformę Windows.
115 Ten pakiet zawiera część kliencką HylaFAX.
118 Summary: Hylafax libraries
119 Summary(pl.UTF-8): Biblioteki HylaFAX
123 HylaFAX(tm) is a sophisticated enterprise-strength fax package for
124 class 1 and 2 fax modems on unix systems. It provides spooling
125 services and numerous supporting fax management tools. The fax clients
126 may reside on machines different from the server and client
127 implementations exist for a number of platforms including Windows.
129 This package contains the shared libraries of HylaFAX.
131 %description libs -l pl.UTF-8
132 HylaFAX(tm) to przemyślany, potężny pakiet do obsługi faksmodemów
133 klasy 1 i 2 na systemach uniksowych. Dostarcza usług kolejkowania i
134 wielu narzędzi do zarządzania faksami. Klienci mogą działać na
135 maszynach innych niż serwer, implementacje klientów są dostępne na
136 wiele platform, w tym na platformę Windows.
138 Ten pakiet zawiera biblioteki współdzielone HylaFAX.
141 Summary: Hylafax libraries development part
142 Summary(pl.UTF-8): Pakiet dla programistów używających bibliotek HylaFAX
143 Group: Development/Libraries
144 Requires: %{name}-libs = %{version}-%{release}
147 This is development package for HylaFAX libraries.
149 %description devel -l pl.UTF-8
150 Pakiet dla programistów używających bibliotek HylaFAX.
153 %setup -q -a1 -a2 -a3
160 # set dummy GCOPTS,GCXXOPTS to avoid adding "-g"
164 --with-DIR_BIN=%{_bindir} \
165 --with-DIR_SBIN=%{_sbindir} \
166 --with-DIR_LIBEXEC=%{_sbindir} \
167 --with-DIR_LIBDIR=%{_libdir} \
168 --with-DIR_LIBDATA=%{_datadir}/fax \
169 --with-DIR_MAN=%{_mandir} \
170 --with-DIR_SPOOL=%{faxspool} \
171 --with-PATH_GSRIP=/usr/bin/gs \
174 --with-PATH_VGETTY=/sbin/vgetty \
175 --with-PATH_EGETTY=/sbin/egetty \
176 --with-PATH_GETTY=/sbin/mgetty \
179 --with-SYSVINIT=/etc/rc.d/init.d/hylafax \
180 --with-INTERACTIVE=no \
181 --with-SCRIPT_SH=/bin/bash \
182 --with-PATH_SENDMAIL=/usr/sbin/sendmail
185 OPTIMIZER="%{rpmcflags}"
188 rm -rf $RPM_BUILD_ROOT
189 install -d $RPM_BUILD_ROOT/etc/{logrotate.d,cron.hourly,cron.daily,rc.d/init.d} \
190 $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_libdir},%{_datadir}/fax} \
191 $RPM_BUILD_ROOT%{faxspool}/{etc,config/defaults,bin} \
192 $RPM_BUILD_ROOT%{_mandir}/{man1,man5,man8}
194 %{__make} install -e \
199 BIN=$RPM_BUILD_ROOT%{_bindir} \
200 SBIN=$RPM_BUILD_ROOT%{_sbindir} \
201 LIBDATA=$RPM_BUILD_ROOT%{_datadir}/fax \
202 LIBEXEC=$RPM_BUILD_ROOT%{_sbindir} \
203 SPOOL=$RPM_BUILD_ROOT%{faxspool} \
204 MAN=$RPM_BUILD_ROOT%{_mandir} \
205 LIBDIR=$RPM_BUILD_ROOT%{_libdir} \
206 INSTALL_ROOT=$RPM_BUILD_ROOT
208 bzip2 -dc %{SOURCE4} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
211 sed -i -e 's!%{_prefix}%{_sysconfdir}/inetd.conf!%{_sysconfdir}/inetd.conf!g' $RPM_BUILD_ROOT%{_sbindir}/faxsetup
212 sed -i -e 's!%{_libdir}/aliases!%{_sysconfdir}/aliases!g' $RPM_BUILD_ROOT%{_sbindir}/faxsetup
215 install %{SOURCE7} $RPM_BUILD_ROOT/etc/rc.d/init.d/hylafax
218 install defaults/* $RPM_BUILD_ROOT%{faxspool}/config/defaults
221 install %{SOURCE8} $RPM_BUILD_ROOT%{_datadir}/fax/hyla.conf
224 install hylafax_daily.cron $RPM_BUILD_ROOT/etc/cron.daily/hylafax
225 install hylafax_hourly.cron $RPM_BUILD_ROOT/etc/cron.hourly/hylafax
228 install %{SOURCE6} $RPM_BUILD_ROOT/etc/logrotate.d/hylafax
231 install dialrules_extras/dialrules* $RPM_BUILD_ROOT%{faxspool}/etc
233 ln -sf ps2fax.gs $RPM_BUILD_ROOT%{faxspool}/bin/ps2fax
235 # The Makefile puts the .so file in /usr/sbin. Move them to /usr/lib
236 #mv -f $RPM_BUILD_ROOT%{_sbindir}/*.so.* $RPM_BUILD_ROOT%{_libdir}
237 #mv -f $RPM_BUILD_ROOT%{_sbindir}/*.so $RPM_BUILD_ROOT%{_libdir}
239 # Since now the html doc dir is managed by the doc macro and not installed
240 # by HylaFAX, the CVS stuff need to be deleted
241 rm -rf $(find ./html -type d -name CVS)
242 rm -f ./html/{.cvsignore,Makefile.in}
244 # Some tools (manpage, man2html, unquote)
245 rm -f html/tools/{unquote,man2html}
247 # If Linux, what else...? :-), delete unnecessary files
249 rm -f $RPM_BUILD_ROOT%{_sbindir}/{faxsetup.irix,faxsetup.bsdi}
253 rm -rf $RPM_BUILD_ROOT
255 %post libs -p /sbin/ldconfig
256 %postun libs -p /sbin/ldconfig
260 %_preun_service hylafax
263 %_post_service hylafax
264 %{_sbindir}/faxsetup -client
268 /sbin/chkconfig --add hylafax
269 %service hylafax restart
271 if [ "$1" = 1 ]; then
272 grep -q -i "faxgetty entry" /etc/inittab || \
273 echo -e "# FaxGetty Entry\n#t0:23:respawn:%{_sbindir}/faxgetty ttyS0" >> /etc/inittab
274 echo "Please check if new fax entry in /etc/inittab is correct."
275 echo "Run \"%{_sbindir}/faxsetup -server\" to configure your fax server"
276 echo "Run \"/sbin/telinit q\" to start faxgetty"
280 if [ "$1" = "0" ] ; then
281 %service hylafax stop
282 /sbin/chkconfig --del hylafax
283 %{__sed} -i -e 's!^.*[Ff]ax[Gg]etty.*$!!' /etc/inittab
288 %defattr(644,root,root,755)
289 %doc README TODO VERSION
290 %attr(755,root,root) %{_sbindir}/faxsetup
291 %attr(755,root,root) %{_sbindir}/faxsetup.linux
295 %defattr(644,root,root,755)
296 %attr(755,root,root) %{_bindir}/sendfax
297 %attr(755,root,root) %{_bindir}/sendpage
298 %attr(755,root,root) %{_bindir}/faxstat
299 %attr(755,root,root) %{_bindir}/faxalter
300 %attr(755,root,root) %{_bindir}/faxcover
301 %attr(755,root,root) %{_bindir}/faxmail
302 %attr(755,root,root) %{_bindir}/faxrm
303 %attr(755,root,root) %{_sbindir}/edit-faxcover
304 %attr(755,root,root) %{_sbindir}/textfmt
305 %attr(755,root,root) %{_sbindir}/faxlock
306 %{_datadir}/fax/pagesizes
307 %config(noreplace) %verify(not md5 mtime size) %{_datadir}/fax/faxcover.ps
308 %config(noreplace) %verify(not md5 mtime size) %{_datadir}/fax/typerules
309 %config(noreplace) %verify(not md5 mtime size) %{_datadir}/fax/hyla.conf
313 %defattr(644,root,root,755)
314 %attr(754,root,root) /etc/rc.d/init.d/hylafax
315 %attr(750,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/cron.daily/hylafax
316 %attr(750,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/cron.hourly/hylafax
317 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/hylafax
320 %attr(755,uucp,uucp) %dir %{faxspool}/client
321 %dir %{faxspool}/config
324 %dir %{faxspool}/etc/templates
325 %{faxspool}/etc/templates/README
326 %{faxspool}/etc/templates/html-sample1
327 %{faxspool}/etc/templates/en
328 %lang(de) %{faxspool}/etc/templates/de
329 %lang(es) %{faxspool}/etc/templates/es
330 %lang(fr) %{faxspool}/etc/templates/fr
331 %lang(it) %{faxspool}/etc/templates/it
332 %lang(pl) %{faxspool}/etc/templates/pl
333 %lang(pt) %{faxspool}/etc/templates/pt
334 %lang(pt_BR) %{faxspool}/etc/templates/pt_BR
335 %lang(ro) %{faxspool}/etc/templates/ro
336 %attr(755,uucp,uucp) %dir %{faxspool}/info
337 %attr(755,uucp,uucp) %dir %{faxspool}/log
338 %attr(755,uucp,uucp) %dir %{faxspool}/recvq
339 %attr(755,uucp,uucp) %dir %{faxspool}/status
340 %attr(755,uucp,uucp) %dir %{faxspool}/sendq
341 %attr(755,uucp,uucp) %dir %{faxspool}/doneq
342 %attr(755,uucp,uucp) %dir %{faxspool}/docq
343 %attr(755,uucp,uucp) %dir %{faxspool}/tmp
344 %attr(755,uucp,uucp) %dir %{faxspool}/pollq
345 %attr(755,uucp,uucp) %dir %{faxspool}/archive
347 %attr(600,uucp,uucp) %{faxspool}/FIFO
348 %{faxspool}/COPYRIGHT
349 %attr(644,uucp,uucp) %config(noreplace) %verify(not md5 mtime size) %{faxspool}/etc/xferfaxlog
350 %attr(600,uucp,root) %config(noreplace) %verify(not md5 mtime size) %{faxspool}/etc/hosts.hfaxd
351 %config(noreplace) %verify(not md5 mtime size) %{faxspool}/etc/lutRS18.pcf
352 %config(noreplace) %verify(not md5 mtime size) %{faxspool}/etc/dpsprinter.ps
353 %config(noreplace) %verify(not md5 mtime size) %{faxspool}/etc/cover.templ
354 %config(noreplace) %verify(not md5 mtime size) %{faxspool}/etc/dialrules*
356 %attr(755,root,root) %{faxspool}/bin/*
359 %attr(755,root,root) %{_sbindir}/hfaxd
360 %attr(755,root,root) %{_sbindir}/hylafax
361 %attr(755,root,root) %{_sbindir}/faxdeluser
362 %attr(755,root,root) %{_sbindir}/faxadduser
363 %attr(755,root,root) %{_sbindir}/choptest
364 %attr(755,root,root) %{_sbindir}/cqtest
365 %attr(755,root,root) %{_sbindir}/dialtest
366 %attr(755,root,root) %{_sbindir}/faxabort
367 %attr(755,root,root) %{_sbindir}/faxaddmodem
368 %attr(755,root,root) %{_sbindir}/faxanswer
369 %attr(755,root,root) %{_sbindir}/faxconfig
370 %attr(755,root,root) %{_sbindir}/faxcron
371 %attr(755,root,root) %{_sbindir}/faxgetty
372 %attr(755,root,root) %{_sbindir}/faxinfo
373 %attr(755,root,root) %{_sbindir}/faxlock
374 %attr(755,root,root) %{_sbindir}/faxmodem
375 %attr(755,root,root) %{_sbindir}/faxmsg
376 %attr(755,root,root) %{_sbindir}/faxq
377 %attr(755,root,root) %{_sbindir}/faxqclean
378 %attr(755,root,root) %{_sbindir}/faxquit
379 %attr(755,root,root) %{_sbindir}/faxsend
380 %attr(755,root,root) %{_sbindir}/faxstate
381 %attr(755,root,root) %{_sbindir}/faxwatch
382 %attr(755,root,root) %{_sbindir}/lockname
383 %attr(755,root,root) %{_sbindir}/ondelay
384 %attr(755,root,root) %{_sbindir}/pagesend
385 %attr(755,root,root) %{_sbindir}/probemodem
386 %attr(755,root,root) %{_sbindir}/recvstats
387 %attr(755,root,root) %{_sbindir}/tagtest
388 %attr(755,root,root) %{_sbindir}/tiffcheck
389 %attr(755,root,root) %{_sbindir}/tsitest
390 %attr(755,root,root) %{_sbindir}/typetest
391 %attr(755,root,root) %{_sbindir}/xferfaxstats
393 %{_datadir}/fax/faxmail.ps
394 %config(noreplace) %verify(not md5 mtime size) %{_datadir}/fax/hfaxd.conf
400 %defattr(644,root,root,755)
402 %attr(755,root,root) %{_libdir}/*.so.*.*
405 %defattr(644,root,root,755)
407 %attr(755,root,root) %{_libdir}/*.so