]> git.pld-linux.org Git - packages/hylafax.git/blame - hylafax.spec
- up to 4.4.4
[packages/hylafax.git] / hylafax.spec
CommitLineData
4922f335 1Summary: HylaFAX(tm) is a sophisticated enterprise strength fax package
bbd11f7f 2Summary(pl.UTF-8): HylaFAX(tm) to przemyślany, potężny pakiet do obsługi faksów
4922f335 3Name: hylafax
7f2b0cc0 4Version: 4.4.4
ceee74e1 5Release: 1
4922f335
TO
6License: distributable
7Group: Applications/Communications
86738cce 8Source0: ftp://ftp.hylafax.org/source/%{name}-%{version}.tar.gz
7f2b0cc0 9# Source0-md5: 4beb3d438ca6c4f00f1d94f9643e6668
86738cce 10#Source0: http://dl.sourceforge.net/hylafax/%{name}-%{version}.tar.gz
4922f335 11Source1: %{name}-cron_entries.tar.gz
e1621c51 12# Source1-md5: d5e2bd6447715654ba916b6f4d0d9343
4922f335 13Source2: %{name}-defaults.tar.gz
e1621c51 14# Source2-md5: 9fae3c4503ecd328a85cd23a430f4ddf
4922f335 15Source3: %{name}-dialrules_extras.tar.gz
e1621c51 16# Source3-md5: 092430f320963d31932b587152fb811b
6e915ae5 17Source4: %{name}-man-pages.tar.bz2
e1621c51 18# Source4-md5: 62772fbbce6cb3a918145ad8a836b4eb
4922f335
TO
19Source6: %{name}-logrotate
20Source7: %{name}-init
21Source8: %{name}-hyla.conf
eeae705f
PG
22Patch0: %{name}-no_libgl_man.patch
23Patch1: %{name}-topmargin.patch
6d85d5db 24Patch2: %{name}-pic.patch
9cb04cb8 25Patch3: %{name}-awk.patch
b3d3be84 26URL: http://www.hylafax.org/
4922f335 27BuildRequires: libjpeg-devel
6d85d5db 28BuildRequires: libstdc++-devel
4922f335 29BuildRequires: libtiff-devel
9c89b49a 30BuildRequires: libtiff-progs
8324c99e 31BuildRequires: rpmbuild(macros) >= 1.268
1c13117a 32BuildRequires: sed >= 4.1
6d85d5db
JB
33BuildRequires: zlib-devel
34Requires: %{name}-libs = %{version}-%{release}
2747653b 35Requires: fonts-Type1-urw
e4254b56 36Requires: ghostscript
4922f335
TO
37Requires: libtiff-progs
38Conflicts: mgetty-sendfax
39BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40
23a8813a 41%define faxspool /var/spool/fax
4922f335
TO
42
43%description
44HylaFAX(tm) is a sophisticated enterprise-strength fax package for
45class 1 and 2 fax modems on unix systems. It provides spooling
46services and numerous supporting fax management tools. The fax clients
47may reside on machines different from the server and client
b3d3be84 48implementations exist for a number of platforms including Windows.
4922f335
TO
49
50You need this package if you are going to install hylafax-client
51and/or hylafax server.
52
9e2519ed
JR
53%description -l pl.UTF-8
54HylaFAX(tm) to przemyślany, potężny pakiet do obsługi faksmodemów
55klasy 1 i 2 na systemach uniksowych. Dostarcza usług kolejkowania i
56wielu narzędzi do zarządzania faksami. Klienci mogą działać na
57maszynach innych niż serwer, dostępne są implementacje klientów na
58wiele platform, w tym na platformę Windows.
b3d3be84 59
9e2519ed 60Ten pakiet zawiera pliki wspólne dla serwera i klienta HylaFAX.
b3d3be84
JB
61
62%package server
63Summary: The files for the HylaFAX(tm) fax server
bbd11f7f 64Summary(pl.UTF-8): Pliki dla serwera faksów HylaFAX(tm)
4922f335 65Group: Applications/Communications
23a8813a
JB
66Requires(post): grep
67Requires(post): textutils
84a8a70f 68Requires(post,preun): /sbin/chkconfig
23a8813a 69Requires(preun): /sbin/telinit
8324c99e 70Requires(preun): sed >= 4.0
6d85d5db 71Requires: %{name} = %{version}-%{release}
8324c99e 72Requires: rc-scripts
4922f335
TO
73
74%description server
75HylaFAX(tm) is a sophisticated enterprise-strength fax package for
76class 1 and 2 fax modems on unix systems. It provides spooling
77services and numerous supporting fax management tools. The fax clients
78may reside on machines different from the server and client
ef478385 79implementations exist for a number of platforms including Windows.
4922f335
TO
80
81This is the server portion of HylaFAX.
82
9e2519ed
JR
83%description server -l pl.UTF-8
84HylaFAX(tm) to przemyślany, potężny pakiet do obsługi faksmodemów
85klasy 1 i 2 na systemach uniksowych. Dostarcza usług kolejkowania i
86wielu narzędzi do zarządzania faksami. Klienci mogą działać na
87maszynach innych niż serwer, implementacje klientów są dostępne na
88wiele platform, w tym na platformę Windows.
ef478385 89
9e2519ed 90Ten pakiet zawiera część serwerową HylaFAX.
b3d3be84
JB
91
92%package client
93Summary: The files for the HylaFAX(tm) fax client
bbd11f7f 94Summary(pl.UTF-8): Pliki dla klienta faksów HylaFAX(tm)
4922f335 95Group: Applications/Communications
6d85d5db 96Requires: %{name} = %{version}-%{release}
be984937 97Requires: metamail
4922f335
TO
98
99%description client
100HylaFAX(tm) is a sophisticated enterprise-strength fax package for
101class 1 and 2 fax modems on unix systems. It provides spooling
102services and numerous supporting fax management tools. The fax clients
103may reside on machines different from the server and client
ef478385 104implementations exist for a number of platforms including Windows.
4922f335
TO
105
106This is the client portion of HylaFAX.
107
9e2519ed
JR
108%description client -l pl.UTF-8
109HylaFAX(tm) to przemyślany, potężny pakiet do obsługi faksmodemów
110klasy 1 i 2 na systemach uniksowych. Dostarcza usług kolejkowania i
111wielu narzędzi do zarządzania faksami. Klienci mogą działać na
112maszynach innych niż serwer, implementacje klientów są dostępne na
113wiele platform, w tym na platformę Windows.
ef478385 114
9e2519ed 115Ten pakiet zawiera część kliencką HylaFAX.
b3d3be84
JB
116
117%package libs
4922f335 118Summary: Hylafax libraries
bbd11f7f 119Summary(pl.UTF-8): Biblioteki HylaFAX
b3d3be84 120Group: Libraries
4922f335
TO
121
122%description libs
123HylaFAX(tm) is a sophisticated enterprise-strength fax package for
124class 1 and 2 fax modems on unix systems. It provides spooling
125services and numerous supporting fax management tools. The fax clients
126may reside on machines different from the server and client
ef478385 127implementations exist for a number of platforms including Windows.
4922f335 128
b3d3be84
JB
129This package contains the shared libraries of HylaFAX.
130
9e2519ed
JR
131%description libs -l pl.UTF-8
132HylaFAX(tm) to przemyślany, potężny pakiet do obsługi faksmodemów
133klasy 1 i 2 na systemach uniksowych. Dostarcza usług kolejkowania i
134wielu narzędzi do zarządzania faksami. Klienci mogą działać na
135maszynach innych niż serwer, implementacje klientów są dostępne na
136wiele platform, w tym na platformę Windows.
ef478385 137
9e2519ed 138Ten pakiet zawiera biblioteki współdzielone HylaFAX.
b3d3be84
JB
139
140%package devel
141Summary: Hylafax libraries development part
bbd11f7f 142Summary(pl.UTF-8): Pakiet dla programistów używających bibliotek HylaFAX
b3d3be84 143Group: Development/Libraries
6d85d5db 144Requires: %{name}-libs = %{version}-%{release}
4922f335
TO
145
146%description devel
b3d3be84
JB
147This is development package for HylaFAX libraries.
148
9e2519ed
JR
149%description devel -l pl.UTF-8
150Pakiet dla programistów używających bibliotek HylaFAX.
4922f335
TO
151
152%prep
4b3ab81a 153%setup -q -a1 -a2 -a3
eeae705f 154%patch0 -p1
4922f335 155%patch1 -p1
6d85d5db 156%patch2 -p1
9cb04cb8 157%patch3 -p1
4922f335
TO
158
159%build
6d85d5db
JB
160# set dummy GCOPTS,GCXXOPTS to avoid adding "-g"
161GCOPTS=" " \
162GCXXOPTS=" " \
4922f335
TO
163./configure \
164 --with-DIR_BIN=%{_bindir} \
165 --with-DIR_SBIN=%{_sbindir} \
1f32b57f 166 --with-DIR_LIBEXEC=%{_sbindir} \
167 --with-DIR_LIBDIR=%{_libdir} \
4922f335
TO
168 --with-DIR_LIBDATA=%{_datadir}/fax \
169 --with-DIR_MAN=%{_mandir} \
170 --with-DIR_SPOOL=%{faxspool} \
8324c99e 171 --with-PATH_GSRIP=/usr/bin/gs \
4922f335 172 --with-AFM=no \
5d8eb27f 173 --with-DSO=auto \
4922f335
TO
174 --with-PATH_VGETTY=/sbin/vgetty \
175 --with-PATH_EGETTY=/sbin/egetty \
176 --with-PATH_GETTY=/sbin/mgetty \
177 --with-HTML=no \
178 --with-PAGESIZE=A4 \
179 --with-SYSVINIT=/etc/rc.d/init.d/hylafax \
180 --with-INTERACTIVE=no \
59e1f3ae 181 --with-SCRIPT_SH=/bin/bash \
182 --with-PATH_SENDMAIL=/usr/sbin/sendmail
4922f335 183
8324c99e 184%{__make} -j1 \
6d85d5db 185 OPTIMIZER="%{rpmcflags}"
4922f335
TO
186
187%install
188rm -rf $RPM_BUILD_ROOT
1f32b57f 189install -d $RPM_BUILD_ROOT/etc/{logrotate.d,cron.hourly,cron.daily,rc.d/init.d} \
b3d3be84
JB
190 $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_libdir},%{_datadir}/fax} \
191 $RPM_BUILD_ROOT%{faxspool}/{etc,config/defaults,bin} \
5d8eb27f 192 $RPM_BUILD_ROOT%{_mandir}/{man1,man5,man8}
4922f335
TO
193
194%{__make} install -e \
195 FAXUSER=`id -u` \
196 FAXGROUP=`id -g` \
197 SYSUSER=`id -u` \
198 SYSGROUP=`id -g` \
199 BIN=$RPM_BUILD_ROOT%{_bindir} \
200 SBIN=$RPM_BUILD_ROOT%{_sbindir} \
201 LIBDATA=$RPM_BUILD_ROOT%{_datadir}/fax \
1f32b57f 202 LIBEXEC=$RPM_BUILD_ROOT%{_sbindir} \
4922f335
TO
203 SPOOL=$RPM_BUILD_ROOT%{faxspool} \
204 MAN=$RPM_BUILD_ROOT%{_mandir} \
5d8eb27f 205 LIBDIR=$RPM_BUILD_ROOT%{_libdir} \
21ab1be9 206 INSTALL_ROOT=$RPM_BUILD_ROOT
4922f335 207
6e915ae5 208bzip2 -dc %{SOURCE4} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
209
4922f335 210# some hacks
1c13117a 211sed -i -e 's!%{_prefix}%{_sysconfdir}/inetd.conf!%{_sysconfdir}/inetd.conf!g' $RPM_BUILD_ROOT%{_sbindir}/faxsetup
212sed -i -e 's!%{_libdir}/aliases!%{_sysconfdir}/aliases!g' $RPM_BUILD_ROOT%{_sbindir}/faxsetup
4922f335 213
4922f335 214# init
b3d3be84 215install %{SOURCE7} $RPM_BUILD_ROOT/etc/rc.d/init.d/hylafax
4922f335 216
ef478385 217# defaults
8324c99e 218install defaults/* $RPM_BUILD_ROOT%{faxspool}/config/defaults
4922f335
TO
219
220# hyla.conf
b3d3be84 221install %{SOURCE8} $RPM_BUILD_ROOT%{_datadir}/fax/hyla.conf
4922f335
TO
222
223# cron entries
1f32b57f 224install hylafax_daily.cron $RPM_BUILD_ROOT/etc/cron.daily/hylafax
225install hylafax_hourly.cron $RPM_BUILD_ROOT/etc/cron.hourly/hylafax
4922f335
TO
226
227# logrotate
71808dca 228install %{SOURCE6} $RPM_BUILD_ROOT/etc/logrotate.d/hylafax
4922f335
TO
229
230# dialrules extras
1f32b57f 231install dialrules_extras/dialrules* $RPM_BUILD_ROOT%{faxspool}/etc
4922f335 232
8324c99e 233ln -sf ps2fax.gs $RPM_BUILD_ROOT%{faxspool}/bin/ps2fax
4922f335 234
4922f335 235# The Makefile puts the .so file in /usr/sbin. Move them to /usr/lib
5d8eb27f 236#mv -f $RPM_BUILD_ROOT%{_sbindir}/*.so.* $RPM_BUILD_ROOT%{_libdir}
237#mv -f $RPM_BUILD_ROOT%{_sbindir}/*.so $RPM_BUILD_ROOT%{_libdir}
4922f335
TO
238
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
241rm -rf $(find ./html -type d -name CVS)
242rm -f ./html/{.cvsignore,Makefile.in}
243
244# Some tools (manpage, man2html, unquote)
245rm -f html/tools/{unquote,man2html}
246
247# If Linux, what else...? :-), delete unnecessary files
248%ifos linux
249rm -f $RPM_BUILD_ROOT%{_sbindir}/{faxsetup.irix,faxsetup.bsdi}
250%endif
251
4922f335
TO
252%clean
253rm -rf $RPM_BUILD_ROOT
254
b3d3be84
JB
255%post libs -p /sbin/ldconfig
256%postun libs -p /sbin/ldconfig
4922f335 257
624ad560 258%if 0
8324c99e
ER
259%preun client
260%_preun_service hylafax
261
262%post client
263%_post_service hylafax
264%{_sbindir}/faxsetup -client
624ad560 265%endif
4922f335
TO
266
267%post server
b122b6ae 268/sbin/chkconfig --add hylafax
8324c99e
ER
269%service hylafax restart
270
271if [ "$1" = 1 ]; then
6a3677b6 272 grep -q -i "faxgetty entry" /etc/inittab || \
8324c99e
ER
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"
b122b6ae 277fi
4922f335 278
4922f335 279%preun server
b122b6ae 280if [ "$1" = "0" ] ; then
8324c99e 281 %service hylafax stop
23a8813a 282 /sbin/chkconfig --del hylafax
6a3677b6 283 %{__sed} -i -e 's!^.*[Ff]ax[Gg]etty.*$!!' /etc/inittab
b3d3be84 284 /sbin/telinit q
4922f335
TO
285fi
286
ef478385 287%files
4922f335 288%defattr(644,root,root,755)
ee4ed0fc 289%doc README TODO VERSION
4922f335
TO
290%attr(755,root,root) %{_sbindir}/faxsetup
291%attr(755,root,root) %{_sbindir}/faxsetup.linux
b3d3be84 292%dir %{_datadir}/fax
4922f335
TO
293
294%files client
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
1f32b57f 303%attr(755,root,root) %{_sbindir}/edit-faxcover
304%attr(755,root,root) %{_sbindir}/textfmt
305%attr(755,root,root) %{_sbindir}/faxlock
4922f335 306%{_datadir}/fax/pagesizes
84a8a70f
ER
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
4922f335
TO
310%{_mandir}/man1/*
311
4922f335
TO
312%files server
313%defattr(644,root,root,755)
314%attr(754,root,root) /etc/rc.d/init.d/hylafax
84a8a70f
ER
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
ef478385
TO
318%dir %{faxspool}
319%dir %{faxspool}/bin
f13e01a1 320%attr(755,uucp,uucp) %dir %{faxspool}/client
ef478385
TO
321%dir %{faxspool}/config
322%dir %{faxspool}/dev
0b9313d7 323%dir %{faxspool}/etc
83598832 324%dir %{faxspool}/etc/templates
fd2c3db7
AM
325%{faxspool}/etc/templates/README
326%{faxspool}/etc/templates/html-sample1
327%{faxspool}/etc/templates/en
83598832
AM
328%lang(de) %{faxspool}/etc/templates/de
329%lang(es) %{faxspool}/etc/templates/es
83598832
AM
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
ef478385
TO
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
346
347%attr(600,uucp,uucp) %{faxspool}/FIFO
348%{faxspool}/COPYRIGHT
0b9313d7
JB
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*
4922f335 355
f13e01a1 356%attr(755,root,root) %{faxspool}/bin/*
4922f335
TO
357%{faxspool}/config/*
358
1f32b57f 359%attr(755,root,root) %{_sbindir}/hfaxd
4922f335
TO
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
1f32b57f 371%attr(755,root,root) %{_sbindir}/faxgetty
4922f335 372%attr(755,root,root) %{_sbindir}/faxinfo
59e1f3ae 373%attr(755,root,root) %{_sbindir}/faxlock
4922f335
TO
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
1f32b57f 379%attr(755,root,root) %{_sbindir}/faxsend
4922f335
TO
380%attr(755,root,root) %{_sbindir}/faxstate
381%attr(755,root,root) %{_sbindir}/faxwatch
1f32b57f 382%attr(755,root,root) %{_sbindir}/lockname
383%attr(755,root,root) %{_sbindir}/ondelay
384%attr(755,root,root) %{_sbindir}/pagesend
4922f335
TO
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
392
393%{_datadir}/fax/faxmail.ps
84a8a70f 394%config(noreplace) %verify(not md5 mtime size) %{_datadir}/fax/hfaxd.conf
4922f335 395
ef478385 396%{_mandir}/man5/*
4922f335
TO
397%{_mandir}/man8/*
398
b3d3be84 399%files libs
4922f335 400%defattr(644,root,root,755)
ee4ed0fc 401%doc COPYRIGHT
b3d3be84 402%attr(755,root,root) %{_libdir}/*.so.*.*
4922f335 403
b3d3be84 404%files devel
4922f335 405%defattr(644,root,root,755)
1c2a089a 406#%doc html
b3d3be84 407%attr(755,root,root) %{_libdir}/*.so
This page took 0.287874 seconds and 4 git commands to generate.