]> git.pld-linux.org Git - packages/hylafax.git/blob - hylafax.spec
missing patch
[packages/hylafax.git] / hylafax.spec
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
3 Name:           hylafax
4 Version:        6.0.7
5 Release:        1
6 License:        distributable
7 Group:          Applications/Communications
8 Source0:        ftp://ftp.hylafax.org/source/%{name}-%{version}.tar.gz
9 # Source0-md5:  7602e98b882fa61a0722109c2706d1f1
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
20 Source7:        %{name}-init
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 Patch4:         %{name}-format.patch
27 Patch5:         %{name}-FaxRecvInfo.patch
28 Patch6:         tiff.patch
29 URL:            http://www.hylafax.org/
30 BuildRequires:  jbigkit-devel
31 BuildRequires:  libstdc++-devel
32 BuildRequires:  libtiff-devel
33 BuildRequires:  libtiff-progs
34 BuildRequires:  pam-devel
35 BuildRequires:  rpmbuild(macros) >= 1.268
36 BuildRequires:  sed >= 4.1
37 BuildRequires:  zlib-devel
38 Requires:       %{name}-libs = %{version}-%{release}
39 Requires:       fonts-Type1-urw
40 Requires:       ghostscript
41 Requires:       libtiff-progs
42 Conflicts:      mgetty-sendfax
43 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
44
45 %define         faxspool        /var/spool/fax
46
47 %description
48 HylaFAX(tm) is a sophisticated enterprise-strength fax package for
49 class 1 and 2 fax modems on Unix systems. It provides spooling
50 services and numerous supporting fax management tools. The fax clients
51 may reside on machines different from the server and client
52 implementations exist for a number of platforms including Windows.
53
54 You need this package if you are going to install hylafax-client
55 and/or hylafax server.
56
57 %description -l pl.UTF-8
58 HylaFAX(tm) to przemyślany, potężny pakiet do obsługi faksmodemów
59 klasy 1 i 2 na systemach uniksowych. Dostarcza usług kolejkowania i
60 wielu narzędzi do zarządzania faksami. Klienci mogą działać na
61 maszynach innych niż serwer, dostępne są implementacje klientów na
62 wiele platform, w tym na platformę Windows.
63
64 Ten pakiet zawiera pliki wspólne dla serwera i klienta HylaFAX.
65
66 %package server
67 Summary:        The files for the HylaFAX(tm) fax server
68 Summary(pl.UTF-8):      Pliki dla serwera faksów HylaFAX(tm)
69 Group:          Applications/Communications
70 Requires(post): grep
71 Requires(post): textutils
72 Requires(post,preun):   /sbin/chkconfig
73 Requires(preun):        /sbin/telinit
74 Requires(preun):        sed >= 4.0
75 Requires:       %{name} = %{version}-%{release}
76 Requires:       rc-scripts
77
78 %description server
79 HylaFAX(tm) is a sophisticated enterprise-strength fax package for
80 class 1 and 2 fax modems on Unix systems. It provides spooling
81 services and numerous supporting fax management tools. The fax clients
82 may reside on machines different from the server and client
83 implementations exist for a number of platforms including Windows.
84
85 This is the server portion of HylaFAX.
86
87 %description server -l pl.UTF-8
88 HylaFAX(tm) to przemyślany, potężny pakiet do obsługi faksmodemów
89 klasy 1 i 2 na systemach uniksowych. Dostarcza usług kolejkowania i
90 wielu narzędzi do zarządzania faksami. Klienci mogą działać na
91 maszynach innych niż serwer, implementacje klientów są dostępne na
92 wiele platform, w tym na platformę Windows.
93
94 Ten pakiet zawiera część serwerową HylaFAX.
95
96 %package client
97 Summary:        The files for the HylaFAX(tm) fax client
98 Summary(pl.UTF-8):      Pliki dla klienta faksów HylaFAX(tm)
99 Group:          Applications/Communications
100 Requires:       %{name} = %{version}-%{release}
101 Requires:       metamail
102
103 %description client
104 HylaFAX(tm) is a sophisticated enterprise-strength fax package for
105 class 1 and 2 fax modems on Unix systems. It provides spooling
106 services and numerous supporting fax management tools. The fax clients
107 may reside on machines different from the server and client
108 implementations exist for a number of platforms including Windows.
109
110 This is the client portion of HylaFAX.
111
112 %description client -l pl.UTF-8
113 HylaFAX(tm) to przemyślany, potężny pakiet do obsługi faksmodemów
114 klasy 1 i 2 na systemach uniksowych. Dostarcza usług kolejkowania i
115 wielu narzędzi do zarządzania faksami. Klienci mogą działać na
116 maszynach innych niż serwer, implementacje klientów są dostępne na
117 wiele platform, w tym na platformę Windows.
118
119 Ten pakiet zawiera część kliencką HylaFAX.
120
121 %package libs
122 Summary:        Hylafax shared library
123 Summary(pl.UTF-8):      Biblioteka współdzielona HylaFAX
124 Group:          Libraries
125 # no development package in 6.x
126 Obsoletes:      hylafax-devel < 6
127
128 %description libs
129 HylaFAX(tm) is a sophisticated enterprise-strength fax package for
130 class 1 and 2 fax modems on Unix systems. It provides spooling
131 services and numerous supporting fax management tools. The fax clients
132 may reside on machines different from the server and client
133 implementations exist for a number of platforms including Windows.
134
135 This package contains the HylaFAX shared library.
136
137 %description libs -l pl.UTF-8
138 HylaFAX(tm) to przemyślany, potężny pakiet do obsługi faksmodemów
139 klasy 1 i 2 na systemach uniksowych. Dostarcza usług kolejkowania i
140 wielu narzędzi do zarządzania faksami. Klienci mogą działać na
141 maszynach innych niż serwer, implementacje klientów są dostępne na
142 wiele platform, w tym na platformę Windows.
143
144 Ten pakiet zawiera bibliotekę współdzieloną HylaFAX.
145
146 %prep
147 %setup -q -a1 -a2 -a3
148 %patch0 -p1
149 %patch1 -p1
150 %patch2 -p1
151 %patch3 -p1
152 %patch4 -p1
153 %patch5 -p1
154 %patch6 -p1
155
156 %ifarch sparc64
157 sed -i -e 's/-fpic/-fPIC/g' configure
158 %endif
159
160 %build
161 # set dummy GCOPTS,GCXXOPTS to avoid adding "-g"
162 # the configure is too stupid to keep spaces in CC/CXX, so strip ccache if any
163 CC="%{__cc}"
164 CXX="%{__cxx}"
165 CC=${CC#ccache } \
166 CXX=${CXX#ccache } \
167 GCOPTS=" " \
168 GCXXOPTS=" " \
169 STRIP=/bin/true \
170 ./configure \
171         --with-DIR_BIN=%{_bindir} \
172         --with-DIR_SBIN=%{_sbindir} \
173         --with-DIR_LIBEXEC=%{_sbindir} \
174         --with-DIR_LIBDIR=%{_libdir} \
175         --with-DIR_LIBDATA=%{_datadir}/fax \
176         --with-DIR_MAN=%{_mandir} \
177         --with-DIR_SPOOL=%{faxspool} \
178         --with-PATH_GSRIP=/usr/bin/gs \
179         --with-AFM=no \
180         --with-DSO=auto \
181         --with-PATH_VGETTY=/sbin/vgetty \
182         --with-PATH_EGETTY=/sbin/egetty \
183         --with-PATH_GETTY=/sbin/mgetty \
184         --with-HTML=no \
185         --with-PAGESIZE=A4 \
186         --with-SYSVINIT=/etc/rc.d/init.d/hylafax \
187         --with-INTERACTIVE=no \
188         --with-SCRIPT_SH=/bin/bash \
189         --with-PATH_SENDMAIL=/usr/sbin/sendmail
190
191 %{__make} -j1 \
192         OPTIMIZER="%{rpmcflags} %{rpmcppflags}"
193
194 %install
195 rm -rf $RPM_BUILD_ROOT
196 install -d $RPM_BUILD_ROOT/etc/{logrotate.d,cron.hourly,cron.daily,rc.d/init.d} \
197         $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_libdir},%{_datadir}/fax} \
198         $RPM_BUILD_ROOT%{faxspool}/{etc,config/defaults,bin} \
199         $RPM_BUILD_ROOT%{_mandir}/{man1,man5,man8}
200
201 %{__make} install -e \
202         FAXUSER=$(id -u) \
203         FAXGROUP=$(id -g) \
204         SYSUSER=$(id -u) \
205         SYSGROUP=$(id -g) \
206         BIN=$RPM_BUILD_ROOT%{_bindir} \
207         SBIN=$RPM_BUILD_ROOT%{_sbindir} \
208         LIBDATA=$RPM_BUILD_ROOT%{_datadir}/fax \
209         LIBEXEC=$RPM_BUILD_ROOT%{_sbindir} \
210         SPOOL=$RPM_BUILD_ROOT%{faxspool} \
211         MAN=$RPM_BUILD_ROOT%{_mandir} \
212         LIBDIR=$RPM_BUILD_ROOT%{_libdir} \
213         INSTALL_ROOT=$RPM_BUILD_ROOT
214
215 bzip2 -dc %{SOURCE4} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
216 %{__rm} $RPM_BUILD_ROOT%{_mandir}/{README,diff}.*
217
218 # some hacks
219 sed -i -e 's!%{_prefix}%{_sysconfdir}/inetd.conf!%{_sysconfdir}/inetd.conf!g' $RPM_BUILD_ROOT%{_sbindir}/faxsetup
220 sed -i -e 's!%{_libdir}/aliases!%{_sysconfdir}/aliases!g' $RPM_BUILD_ROOT%{_sbindir}/faxsetup
221
222 # init
223 install -p %{SOURCE7} $RPM_BUILD_ROOT/etc/rc.d/init.d/hylafax
224
225 # defaults
226 install -p defaults/* $RPM_BUILD_ROOT%{faxspool}/config/defaults
227
228 # hyla.conf
229 cp -a %{SOURCE8} $RPM_BUILD_ROOT%{_datadir}/fax/hyla.conf
230
231 # cron entries
232 install -p hylafax_daily.cron  $RPM_BUILD_ROOT/etc/cron.daily/hylafax
233 install -p hylafax_hourly.cron $RPM_BUILD_ROOT/etc/cron.hourly/hylafax
234
235 # logrotate
236 cp -a %{SOURCE6} $RPM_BUILD_ROOT/etc/logrotate.d/hylafax
237
238 # dialrules extras
239 install -p dialrules_extras/dialrules* $RPM_BUILD_ROOT%{faxspool}/etc
240
241 ln -sf ps2fax.gs $RPM_BUILD_ROOT%{faxspool}/bin/ps2fax
242
243 # If Linux, what else...? :-), delete unnecessary files
244 %ifos linux
245 %{__rm} $RPM_BUILD_ROOT%{_sbindir}/{faxsetup.irix,faxsetup.bsdi} \
246         $RPM_BUILD_ROOT%{_datadir}/fax/faxcover_example_sgi.ps
247 %endif
248
249 %clean
250 rm -rf $RPM_BUILD_ROOT
251
252 %post   libs -p /sbin/ldconfig
253 %postun libs -p /sbin/ldconfig
254
255 %if 0
256 %preun client
257 %_preun_service hylafax
258
259 %post client
260 %_post_service hylafax
261 %{_sbindir}/faxsetup -client
262 %endif
263
264 %post server
265 /sbin/chkconfig --add hylafax
266 %service hylafax restart
267
268 if [ "$1" = 1 ]; then
269         grep -q -i "faxgetty entry" /etc/inittab || \
270         echo -e "# FaxGetty Entry\n#t0:23:respawn:%{_sbindir}/faxgetty ttyS0" >> /etc/inittab
271         echo "Please check if new fax entry in /etc/inittab is correct."
272         echo "Run \"%{_sbindir}/faxsetup -server\" to configure your fax server"
273         echo "Run \"/sbin/telinit q\" to start faxgetty"
274 fi
275
276 %preun server
277 if [ "$1" = "0" ] ; then
278         %service hylafax stop
279         /sbin/chkconfig --del hylafax
280         %{__sed} -i -e 's!^.*[Ff]ax[Gg]etty.*$!!' /etc/inittab
281         /sbin/telinit q
282 fi
283
284 %files
285 %defattr(644,root,root,755)
286 %doc README TODO VERSION
287 %attr(755,root,root) %{_sbindir}/faxsetup
288 %attr(755,root,root) %{_sbindir}/faxsetup.linux
289 %dir %{_datadir}/fax
290
291 %files client
292 %defattr(644,root,root,755)
293 %attr(755,root,root) %{_bindir}/sendfax
294 %attr(755,root,root) %{_bindir}/sendpage
295 %attr(755,root,root) %{_bindir}/faxstat
296 %attr(755,root,root) %{_bindir}/faxalter
297 %attr(755,root,root) %{_bindir}/faxcover
298 %attr(755,root,root) %{_bindir}/faxmail
299 %attr(755,root,root) %{_bindir}/faxrm
300 %attr(755,root,root) %{_sbindir}/edit-faxcover
301 %attr(755,root,root) %{_sbindir}/textfmt
302 %{_datadir}/fax/pagesizes
303 %config(noreplace) %verify(not md5 mtime size) %{_datadir}/fax/faxcover.ps
304 %config(noreplace) %verify(not md5 mtime size) %{_datadir}/fax/typerules
305 %config(noreplace) %verify(not md5 mtime size) %{_datadir}/fax/hyla.conf
306 %{_mandir}/man1/edit-faxcover.1*
307 %{_mandir}/man1/faxalter.1*
308 %{_mandir}/man1/faxcover.1*
309 %{_mandir}/man1/faxmail.1*
310 %{_mandir}/man1/faxrm.1*
311 %{_mandir}/man1/faxstat.1*
312 %{_mandir}/man1/hylafax-client.1*
313 %{_mandir}/man1/sendfax.1*
314 %{_mandir}/man1/sendpage.1*
315 %{_mandir}/man1/textfmt.1*
316
317 %files server
318 %defattr(644,root,root,755)
319 %attr(754,root,root) /etc/rc.d/init.d/hylafax
320 %attr(750,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/cron.daily/hylafax
321 %attr(750,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/cron.hourly/hylafax
322 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/hylafax
323 %dir %{faxspool}
324 %dir %{faxspool}/bin
325 %attr(755,uucp,uucp) %dir %{faxspool}/client
326 %dir %{faxspool}/config
327 %dir %{faxspool}/dev
328 %dir %{faxspool}/etc
329 %dir %{faxspool}/etc/templates
330 %{faxspool}/etc/templates/README
331 %{faxspool}/etc/templates/html-sample1
332 %{faxspool}/etc/templates/en
333 %lang(de) %{faxspool}/etc/templates/de
334 %lang(es) %{faxspool}/etc/templates/es
335 %lang(fr) %{faxspool}/etc/templates/fr
336 %lang(it) %{faxspool}/etc/templates/it
337 %lang(pl) %{faxspool}/etc/templates/pl
338 %lang(pt) %{faxspool}/etc/templates/pt
339 %lang(pt_BR) %{faxspool}/etc/templates/pt_BR
340 %lang(ro) %{faxspool}/etc/templates/ro
341 %attr(755,uucp,uucp) %dir %{faxspool}/info
342 %attr(755,uucp,uucp) %dir %{faxspool}/log
343 %attr(755,uucp,uucp) %dir %{faxspool}/recvq
344 %attr(755,uucp,uucp) %dir %{faxspool}/status
345 %attr(755,uucp,uucp) %dir %{faxspool}/sendq
346 %attr(755,uucp,uucp) %dir %{faxspool}/doneq
347 %attr(755,uucp,uucp) %dir %{faxspool}/docq
348 %attr(755,uucp,uucp) %dir %{faxspool}/tmp
349 %attr(755,uucp,uucp) %dir %{faxspool}/pollq
350 %attr(755,uucp,uucp) %dir %{faxspool}/archive
351
352 %attr(600,uucp,uucp) %{faxspool}/FIFO
353 %{faxspool}/COPYRIGHT
354 %attr(644,uucp,uucp) %config(noreplace) %verify(not md5 mtime size) %{faxspool}/etc/xferfaxlog
355 %attr(600,uucp,root) %config(noreplace) %verify(not md5 mtime size) %{faxspool}/etc/hosts.hfaxd
356 %config(noreplace) %verify(not md5 mtime size) %{faxspool}/etc/lutRS18.pcf
357 %config(noreplace) %verify(not md5 mtime size) %{faxspool}/etc/dpsprinter.ps
358 %config(noreplace) %verify(not md5 mtime size) %{faxspool}/etc/cover.templ
359 %config(noreplace) %verify(not md5 mtime size) %{faxspool}/etc/dialrules*
360
361 %attr(755,root,root) %{faxspool}/bin/*
362 %{faxspool}/config/*
363
364 %attr(755,root,root) %{_sbindir}/choptest
365 %attr(755,root,root) %{_sbindir}/cqtest
366 %attr(755,root,root) %{_sbindir}/dialtest
367 %attr(755,root,root) %{_sbindir}/faxabort
368 %attr(755,root,root) %{_sbindir}/faxaddmodem
369 %attr(755,root,root) %{_sbindir}/faxadduser
370 %attr(755,root,root) %{_sbindir}/faxanswer
371 %attr(755,root,root) %{_sbindir}/faxconfig
372 %attr(755,root,root) %{_sbindir}/faxcron
373 %attr(755,root,root) %{_sbindir}/faxdeluser
374 %attr(755,root,root) %{_sbindir}/faxgetty
375 %attr(755,root,root) %{_sbindir}/faxinfo
376 %attr(755,root,root) %{_sbindir}/faxlock
377 %attr(755,root,root) %{_sbindir}/faxmodem
378 %attr(755,root,root) %{_sbindir}/faxmsg
379 %attr(755,root,root) %{_sbindir}/faxq
380 %attr(755,root,root) %{_sbindir}/faxqclean
381 %attr(755,root,root) %{_sbindir}/faxquit
382 %attr(755,root,root) %{_sbindir}/faxsend
383 %attr(755,root,root) %{_sbindir}/faxstate
384 %attr(755,root,root) %{_sbindir}/faxwatch
385 %attr(755,root,root) %{_sbindir}/hfaxd
386 %attr(755,root,root) %{_sbindir}/hylafax
387 %attr(755,root,root) %{_sbindir}/lockname
388 %attr(755,root,root) %{_sbindir}/ondelay
389 %attr(755,root,root) %{_sbindir}/pagesend
390 %attr(755,root,root) %{_sbindir}/probemodem
391 %attr(755,root,root) %{_sbindir}/recvstats
392 %attr(755,root,root) %{_sbindir}/tagtest
393 %attr(755,root,root) %{_sbindir}/tiffcheck
394 %attr(755,root,root) %{_sbindir}/tsitest
395 %attr(755,root,root) %{_sbindir}/typetest
396 %attr(755,root,root) %{_sbindir}/xferfaxstats
397
398 %{_datadir}/fax/faxmail.ps
399 %config(noreplace) %verify(not md5 mtime size) %{_datadir}/fax/hfaxd.conf
400
401 %{_mandir}/man5/dialrules.5f*
402 %{_mandir}/man5/doneq.5f*
403 %{_mandir}/man5/hosts.hfaxd.5f*
404 %{_mandir}/man5/hylafax-config.5f*
405 %{_mandir}/man5/hylafax-info.5f*
406 %{_mandir}/man5/hylafax-log.5f*
407 %{_mandir}/man5/hylafax-server.5f*
408 %{_mandir}/man5/hylafax-shutdown.5f*
409 %{_mandir}/man5/pagermap.5f*
410 %{_mandir}/man5/pagesizes.5f*
411 %{_mandir}/man5/recvq.5f*
412 %{_mandir}/man5/sendq.5f*
413 %{_mandir}/man5/status.5f*
414 %{_mandir}/man5/tsi.5f*
415 %{_mandir}/man5/typerules.5f*
416 %{_mandir}/man5/xferfaxlog.5f*
417 %{_mandir}/man8/choptest.8c*
418 %{_mandir}/man8/cqtest.8c*
419 %{_mandir}/man8/dialtest.8c*
420 %{_mandir}/man8/faxabort.8c*
421 %{_mandir}/man8/faxaddmodem.8c*
422 %{_mandir}/man8/faxadduser.8c*
423 %{_mandir}/man8/faxanswer.8c*
424 %{_mandir}/man8/faxconfig.8c*
425 %{_mandir}/man8/faxcron.8c*
426 %{_mandir}/man8/faxdeluser.8c*
427 %{_mandir}/man8/faxgetty.8c*
428 %{_mandir}/man8/faxinfo.8c*
429 %{_mandir}/man8/faxlock.8c*
430 %{_mandir}/man8/faxmodem.8c*
431 %{_mandir}/man8/faxmsg.8c*
432 %{_mandir}/man8/faxq.8c*
433 %{_mandir}/man8/faxqclean.8c*
434 %{_mandir}/man8/faxquit.8c*
435 %{_mandir}/man8/faxrcvd.8c*
436 %{_mandir}/man8/faxsend.8c*
437 %{_mandir}/man8/faxsetup.8c*
438 %{_mandir}/man8/faxstate.8c*
439 %{_mandir}/man8/faxwatch.8c*
440 %{_mandir}/man8/hfaxd.8c*
441 %{_mandir}/man8/jobcontrol.8c*
442 %{_mandir}/man8/lockname.8c*
443 %{_mandir}/man8/mkcover.8c*
444 %{_mandir}/man8/notify.8c*
445 %{_mandir}/man8/ondelay.8c*
446 %{_mandir}/man8/pagesend.8c*
447 %{_mandir}/man8/pdf2fax.8c*
448 %{_mandir}/man8/pollrcvd.8c*
449 %{_mandir}/man8/probemodem.8c*
450 %{_mandir}/man8/ps2fax.8c*
451 %{_mandir}/man8/recvstats.8c*
452 %{_mandir}/man8/tagtest.8c*
453 %{_mandir}/man8/tiff2fax.8c*
454 %{_mandir}/man8/tiffcheck.8c*
455 %{_mandir}/man8/tsitest.8c*
456 %{_mandir}/man8/typetest.8c*
457 %{_mandir}/man8/wedged.8c*
458 %{_mandir}/man8/xferfaxstats.8c*
459
460 %files libs
461 %defattr(644,root,root,755)
462 %doc COPYRIGHT
463 %attr(755,root,root) %{_libdir}/libhylafax-6.0.so.7
This page took 0.127621 seconds and 4 git commands to generate.