]> git.pld-linux.org Git - packages/hylafax.git/blob - hylafax.spec
- Release: 0.3
[packages/hylafax.git] / hylafax.spec
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
3 Name:           hylafax
4 Version:        4.1.5
5 Release:        0.3
6 License:        distributable
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
14 Source7:        %{name}-init
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}
26 Requires:       ghostscript
27 Requires:       ghostscript-fonts-std
28 Requires:       libtiff-progs
29 Conflicts:      mgetty-sendfax
30 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32 %define         faxspool        /var/spool/fax
33
34 %description
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.
40
41 You need this package if you are going to install hylafax-client
42 and/or hylafax server.
43
44 %description -l pl
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.
50
51 Ten pakiet zawiera pliki wspólne dla serwera i klienta HylaFAX.
52
53 %package server
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
59 Requires(post): grep
60 Requires(post): textutils
61 Requires(preun):        perl
62 Requires(preun):        /sbin/telinit
63
64 %description server
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.
70
71 This is the server portion of HylaFAX.
72
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.
79
80 Ten pakiet zawiera czê¶æ serwerow± HylaFAX.
81
82 %package client
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}
87
88 %description client
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.
94
95 This is the client portion of HylaFAX.
96
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.
103
104 Ten pakiet zawiera czê¶æ klienck± HylaFAX.
105
106 %package libs
107 Summary:        Hylafax libraries
108 Summary(pl):    Biblioteki HylaFAX
109 Group:          Libraries
110
111 %description libs
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.
117
118 This package contains the shared libraries of HylaFAX.
119
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.
126
127 Ten pakiet zawiera biblioteki wspó³dzielone HylaFAX
128
129 %package devel
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}
134
135 %description devel
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.
141
142 This is development package for HylaFAX libraries.
143
144 %description devel -l pl
145 Pakiet dla programistów u¿ywaj±cych bibliotek HylaFAX.
146
147 %prep
148 %setup -q -n %{name}-%{version} -a 1 -a 2 -a 3 -q
149 %patch0 -p1
150 %patch1 -p1
151 %patch2 -p1
152
153 %build
154 ./configure \
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 \
162         --with-AFM=no \
163         --with-DSO=auto \
164         --with-PATH_VGETTY=/sbin/vgetty \
165         --with-PATH_EGETTY=/sbin/egetty \
166         --with-PATH_GETTY=/sbin/mgetty \
167         --with-HTML=no \
168         --with-PAGESIZE=A4 \
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
173
174 %{__make} OPTIMIZER="$RPM_OPT_FLAGS"
175
176 %install
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}
182
183 %{__make} install -e \
184         FAXUSER=`id -u` \
185         FAXGROUP=`id -g` \
186         SYSUSER=`id -u` \
187         SYSGROUP=`id -g` \
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
196
197 bzip2 -dc %{SOURCE4} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
198
199 # some hacks
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
202
203 # init
204 install %{SOURCE7} $RPM_BUILD_ROOT/etc/rc.d/init.d/hylafax
205
206 # defaults
207 install defaults/* $RPM_BUILD_ROOT%{faxspool}/config/defaults/
208
209 # hyla.conf
210 install %{SOURCE8} $RPM_BUILD_ROOT%{_datadir}/fax/hyla.conf
211
212 # cron entries
213 install hylafax_daily.cron  $RPM_BUILD_ROOT%{_sysconfdir}/cron.daily/hylafax
214 install hylafax_hourly.cron $RPM_BUILD_ROOT%{_sysconfdir}/cron.hourly/hylafax
215
216 # logrotate
217 install %{SOURCE6} $RPM_BUILD_ROOT/etc/logrotate.d/hylafax
218
219 # dialrules extras
220 install dialrules_extras/dialrules* $RPM_BUILD_ROOT%{faxspool}%{_sysconfdir}
221
222 (cd $RPM_BUILD_ROOT%{faxspool}/bin; ln -sf ps2fax.gs ps2fax)
223
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}
227
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}
232
233 # Some tools (manpage, man2html, unquote)
234 rm -f html/tools/{unquote,man2html}
235
236 # If Linux, what else...? :-), delete unnecessary files
237 %ifos linux
238 rm -f $RPM_BUILD_ROOT%{_sbindir}/{faxsetup.irix,faxsetup.bsdi}
239 %endif
240
241 %clean
242 rm -rf $RPM_BUILD_ROOT
243
244 %post   libs -p /sbin/ldconfig
245 %postun libs -p /sbin/ldconfig
246
247 #%preun client
248 #%_preun_service hylafax
249 #
250 #%post client
251 #%_post_service hylafax
252 #%%{_sbindir}/faxsetup -client
253
254 %post server
255 /sbin/chkconfig --add hylafax
256 if [ -f /var/lock/subsys/hylafax ]; then
257         /etc/rc.d/init.d/hylafax restart
258 else
259         echo "Run \"/etc/rc.d/init.d/hylafax start\" to start hylafax daemons." >&2
260 fi
261
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"
267
268 %preun server
269 if [ "$1" = "0" ] ; then
270         if [ -f /var/lock/subsys/hylafax ]; then
271                 /etc/rc.d/init.d/hylafax stop >&2
272         fi
273         /sbin/chkconfig --del hylafax
274         perl -pi -e 's!^.*faxgetty.*$!!g' %{_sysconfdir}/inittab > %{_sysconfdir}/inittab.$$
275         /sbin/telinit q
276 fi
277
278 %files
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
283 %dir %{_datadir}/fax
284
285 %files client
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
299 %{_mandir}/man1/*
300
301 %files server
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
307 %dir %{faxspool}
308 %dir %{faxspool}/bin
309 %attr(755,uucp,uucp) %dir %{faxspool}/client
310 %dir %{faxspool}/config
311 %dir %{faxspool}/dev
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
323
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*
332
333 %attr(755,root,root) %{faxspool}/bin/*
334 %{faxspool}/config/*
335
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
369
370 %{_datadir}/fax/faxmail.ps
371 %{_datadir}/fax/hfaxd.conf
372
373 %{_mandir}/man5/*
374 %{_mandir}/man8/*
375
376 %files libs
377 %defattr(644,root,root,755)
378 %doc COPYRIGHT
379 %attr(755,root,root) %{_libdir}/*.so.*.*
380
381 %files devel
382 %defattr(644,root,root,755)
383 %doc html
384 %attr(755,root,root) %{_libdir}/*.so
This page took 0.106908 seconds and 3 git commands to generate.