]> git.pld-linux.org Git - packages/hylafax.git/blame - hylafax.spec
- Version: 4.4.5
[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
d87177fb 4Version: 4.4.5
ceee74e1 5Release: 1
4922f335
TO
6License: distributable
7Group: Applications/Communications
86738cce 8Source0: ftp://ftp.hylafax.org/source/%{name}-%{version}.tar.gz
d87177fb 9# Source0-md5: 4e6099aba8edff4256ccc9e59490a92e
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
f83a08ac 45class 1 and 2 fax modems on Unix systems. It provides spooling
4922f335
TO
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
f83a08ac 76class 1 and 2 fax modems on Unix systems. It provides spooling
4922f335
TO
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
f83a08ac 101class 1 and 2 fax modems on Unix systems. It provides spooling
4922f335
TO
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
f83a08ac 124class 1 and 2 fax modems on Unix systems. It provides spooling
4922f335
TO
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 158
1f23ec26 159%ifarch sparc64
160sed -i -e 's/-fpic/-fPIC/g' configure
161%endif
162
4922f335 163%build
6d85d5db
JB
164# set dummy GCOPTS,GCXXOPTS to avoid adding "-g"
165GCOPTS=" " \
166GCXXOPTS=" " \
4922f335
TO
167./configure \
168 --with-DIR_BIN=%{_bindir} \
169 --with-DIR_SBIN=%{_sbindir} \
1f32b57f 170 --with-DIR_LIBEXEC=%{_sbindir} \
171 --with-DIR_LIBDIR=%{_libdir} \
4922f335
TO
172 --with-DIR_LIBDATA=%{_datadir}/fax \
173 --with-DIR_MAN=%{_mandir} \
174 --with-DIR_SPOOL=%{faxspool} \
8324c99e 175 --with-PATH_GSRIP=/usr/bin/gs \
4922f335 176 --with-AFM=no \
5d8eb27f 177 --with-DSO=auto \
4922f335
TO
178 --with-PATH_VGETTY=/sbin/vgetty \
179 --with-PATH_EGETTY=/sbin/egetty \
180 --with-PATH_GETTY=/sbin/mgetty \
181 --with-HTML=no \
182 --with-PAGESIZE=A4 \
183 --with-SYSVINIT=/etc/rc.d/init.d/hylafax \
184 --with-INTERACTIVE=no \
59e1f3ae 185 --with-SCRIPT_SH=/bin/bash \
186 --with-PATH_SENDMAIL=/usr/sbin/sendmail
4922f335 187
8324c99e 188%{__make} -j1 \
6d85d5db 189 OPTIMIZER="%{rpmcflags}"
4922f335
TO
190
191%install
192rm -rf $RPM_BUILD_ROOT
1f32b57f 193install -d $RPM_BUILD_ROOT/etc/{logrotate.d,cron.hourly,cron.daily,rc.d/init.d} \
b3d3be84
JB
194 $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_libdir},%{_datadir}/fax} \
195 $RPM_BUILD_ROOT%{faxspool}/{etc,config/defaults,bin} \
5d8eb27f 196 $RPM_BUILD_ROOT%{_mandir}/{man1,man5,man8}
4922f335
TO
197
198%{__make} install -e \
199 FAXUSER=`id -u` \
200 FAXGROUP=`id -g` \
201 SYSUSER=`id -u` \
202 SYSGROUP=`id -g` \
203 BIN=$RPM_BUILD_ROOT%{_bindir} \
204 SBIN=$RPM_BUILD_ROOT%{_sbindir} \
205 LIBDATA=$RPM_BUILD_ROOT%{_datadir}/fax \
1f32b57f 206 LIBEXEC=$RPM_BUILD_ROOT%{_sbindir} \
4922f335
TO
207 SPOOL=$RPM_BUILD_ROOT%{faxspool} \
208 MAN=$RPM_BUILD_ROOT%{_mandir} \
5d8eb27f 209 LIBDIR=$RPM_BUILD_ROOT%{_libdir} \
21ab1be9 210 INSTALL_ROOT=$RPM_BUILD_ROOT
4922f335 211
6e915ae5 212bzip2 -dc %{SOURCE4} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
213
4922f335 214# some hacks
1c13117a 215sed -i -e 's!%{_prefix}%{_sysconfdir}/inetd.conf!%{_sysconfdir}/inetd.conf!g' $RPM_BUILD_ROOT%{_sbindir}/faxsetup
216sed -i -e 's!%{_libdir}/aliases!%{_sysconfdir}/aliases!g' $RPM_BUILD_ROOT%{_sbindir}/faxsetup
4922f335 217
4922f335 218# init
b3d3be84 219install %{SOURCE7} $RPM_BUILD_ROOT/etc/rc.d/init.d/hylafax
4922f335 220
ef478385 221# defaults
8324c99e 222install defaults/* $RPM_BUILD_ROOT%{faxspool}/config/defaults
4922f335
TO
223
224# hyla.conf
b3d3be84 225install %{SOURCE8} $RPM_BUILD_ROOT%{_datadir}/fax/hyla.conf
4922f335
TO
226
227# cron entries
1f32b57f 228install hylafax_daily.cron $RPM_BUILD_ROOT/etc/cron.daily/hylafax
229install hylafax_hourly.cron $RPM_BUILD_ROOT/etc/cron.hourly/hylafax
4922f335
TO
230
231# logrotate
71808dca 232install %{SOURCE6} $RPM_BUILD_ROOT/etc/logrotate.d/hylafax
4922f335
TO
233
234# dialrules extras
1f32b57f 235install dialrules_extras/dialrules* $RPM_BUILD_ROOT%{faxspool}/etc
4922f335 236
8324c99e 237ln -sf ps2fax.gs $RPM_BUILD_ROOT%{faxspool}/bin/ps2fax
4922f335 238
4922f335 239# The Makefile puts the .so file in /usr/sbin. Move them to /usr/lib
5d8eb27f 240#mv -f $RPM_BUILD_ROOT%{_sbindir}/*.so.* $RPM_BUILD_ROOT%{_libdir}
241#mv -f $RPM_BUILD_ROOT%{_sbindir}/*.so $RPM_BUILD_ROOT%{_libdir}
4922f335
TO
242
243# Since now the html doc dir is managed by the doc macro and not installed
244# by HylaFAX, the CVS stuff need to be deleted
245rm -rf $(find ./html -type d -name CVS)
246rm -f ./html/{.cvsignore,Makefile.in}
247
248# Some tools (manpage, man2html, unquote)
249rm -f html/tools/{unquote,man2html}
250
251# If Linux, what else...? :-), delete unnecessary files
252%ifos linux
253rm -f $RPM_BUILD_ROOT%{_sbindir}/{faxsetup.irix,faxsetup.bsdi}
254%endif
255
4922f335
TO
256%clean
257rm -rf $RPM_BUILD_ROOT
258
b3d3be84
JB
259%post libs -p /sbin/ldconfig
260%postun libs -p /sbin/ldconfig
4922f335 261
624ad560 262%if 0
8324c99e
ER
263%preun client
264%_preun_service hylafax
265
266%post client
267%_post_service hylafax
268%{_sbindir}/faxsetup -client
624ad560 269%endif
4922f335
TO
270
271%post server
b122b6ae 272/sbin/chkconfig --add hylafax
8324c99e
ER
273%service hylafax restart
274
275if [ "$1" = 1 ]; then
6a3677b6 276 grep -q -i "faxgetty entry" /etc/inittab || \
8324c99e
ER
277 echo -e "# FaxGetty Entry\n#t0:23:respawn:%{_sbindir}/faxgetty ttyS0" >> /etc/inittab
278 echo "Please check if new fax entry in /etc/inittab is correct."
279 echo "Run \"%{_sbindir}/faxsetup -server\" to configure your fax server"
280 echo "Run \"/sbin/telinit q\" to start faxgetty"
b122b6ae 281fi
4922f335 282
4922f335 283%preun server
b122b6ae 284if [ "$1" = "0" ] ; then
8324c99e 285 %service hylafax stop
23a8813a 286 /sbin/chkconfig --del hylafax
6a3677b6 287 %{__sed} -i -e 's!^.*[Ff]ax[Gg]etty.*$!!' /etc/inittab
b3d3be84 288 /sbin/telinit q
4922f335
TO
289fi
290
ef478385 291%files
4922f335 292%defattr(644,root,root,755)
ee4ed0fc 293%doc README TODO VERSION
4922f335
TO
294%attr(755,root,root) %{_sbindir}/faxsetup
295%attr(755,root,root) %{_sbindir}/faxsetup.linux
b3d3be84 296%dir %{_datadir}/fax
4922f335
TO
297
298%files client
299%defattr(644,root,root,755)
300%attr(755,root,root) %{_bindir}/sendfax
301%attr(755,root,root) %{_bindir}/sendpage
302%attr(755,root,root) %{_bindir}/faxstat
303%attr(755,root,root) %{_bindir}/faxalter
304%attr(755,root,root) %{_bindir}/faxcover
305%attr(755,root,root) %{_bindir}/faxmail
306%attr(755,root,root) %{_bindir}/faxrm
1f32b57f 307%attr(755,root,root) %{_sbindir}/edit-faxcover
308%attr(755,root,root) %{_sbindir}/textfmt
309%attr(755,root,root) %{_sbindir}/faxlock
4922f335 310%{_datadir}/fax/pagesizes
84a8a70f
ER
311%config(noreplace) %verify(not md5 mtime size) %{_datadir}/fax/faxcover.ps
312%config(noreplace) %verify(not md5 mtime size) %{_datadir}/fax/typerules
313%config(noreplace) %verify(not md5 mtime size) %{_datadir}/fax/hyla.conf
4922f335
TO
314%{_mandir}/man1/*
315
4922f335
TO
316%files server
317%defattr(644,root,root,755)
318%attr(754,root,root) /etc/rc.d/init.d/hylafax
84a8a70f
ER
319%attr(750,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/cron.daily/hylafax
320%attr(750,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/cron.hourly/hylafax
321%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/hylafax
ef478385
TO
322%dir %{faxspool}
323%dir %{faxspool}/bin
f13e01a1 324%attr(755,uucp,uucp) %dir %{faxspool}/client
ef478385
TO
325%dir %{faxspool}/config
326%dir %{faxspool}/dev
0b9313d7 327%dir %{faxspool}/etc
83598832 328%dir %{faxspool}/etc/templates
fd2c3db7
AM
329%{faxspool}/etc/templates/README
330%{faxspool}/etc/templates/html-sample1
331%{faxspool}/etc/templates/en
83598832
AM
332%lang(de) %{faxspool}/etc/templates/de
333%lang(es) %{faxspool}/etc/templates/es
83598832
AM
334%lang(fr) %{faxspool}/etc/templates/fr
335%lang(it) %{faxspool}/etc/templates/it
336%lang(pl) %{faxspool}/etc/templates/pl
337%lang(pt) %{faxspool}/etc/templates/pt
338%lang(pt_BR) %{faxspool}/etc/templates/pt_BR
339%lang(ro) %{faxspool}/etc/templates/ro
ef478385
TO
340%attr(755,uucp,uucp) %dir %{faxspool}/info
341%attr(755,uucp,uucp) %dir %{faxspool}/log
342%attr(755,uucp,uucp) %dir %{faxspool}/recvq
343%attr(755,uucp,uucp) %dir %{faxspool}/status
344%attr(755,uucp,uucp) %dir %{faxspool}/sendq
345%attr(755,uucp,uucp) %dir %{faxspool}/doneq
346%attr(755,uucp,uucp) %dir %{faxspool}/docq
347%attr(755,uucp,uucp) %dir %{faxspool}/tmp
348%attr(755,uucp,uucp) %dir %{faxspool}/pollq
349%attr(755,uucp,uucp) %dir %{faxspool}/archive
350
351%attr(600,uucp,uucp) %{faxspool}/FIFO
352%{faxspool}/COPYRIGHT
0b9313d7
JB
353%attr(644,uucp,uucp) %config(noreplace) %verify(not md5 mtime size) %{faxspool}/etc/xferfaxlog
354%attr(600,uucp,root) %config(noreplace) %verify(not md5 mtime size) %{faxspool}/etc/hosts.hfaxd
355%config(noreplace) %verify(not md5 mtime size) %{faxspool}/etc/lutRS18.pcf
356%config(noreplace) %verify(not md5 mtime size) %{faxspool}/etc/dpsprinter.ps
357%config(noreplace) %verify(not md5 mtime size) %{faxspool}/etc/cover.templ
358%config(noreplace) %verify(not md5 mtime size) %{faxspool}/etc/dialrules*
4922f335 359
f13e01a1 360%attr(755,root,root) %{faxspool}/bin/*
4922f335
TO
361%{faxspool}/config/*
362
1f32b57f 363%attr(755,root,root) %{_sbindir}/hfaxd
4922f335
TO
364%attr(755,root,root) %{_sbindir}/hylafax
365%attr(755,root,root) %{_sbindir}/faxdeluser
366%attr(755,root,root) %{_sbindir}/faxadduser
367%attr(755,root,root) %{_sbindir}/choptest
368%attr(755,root,root) %{_sbindir}/cqtest
369%attr(755,root,root) %{_sbindir}/dialtest
370%attr(755,root,root) %{_sbindir}/faxabort
371%attr(755,root,root) %{_sbindir}/faxaddmodem
372%attr(755,root,root) %{_sbindir}/faxanswer
373%attr(755,root,root) %{_sbindir}/faxconfig
374%attr(755,root,root) %{_sbindir}/faxcron
1f32b57f 375%attr(755,root,root) %{_sbindir}/faxgetty
4922f335 376%attr(755,root,root) %{_sbindir}/faxinfo
59e1f3ae 377%attr(755,root,root) %{_sbindir}/faxlock
4922f335
TO
378%attr(755,root,root) %{_sbindir}/faxmodem
379%attr(755,root,root) %{_sbindir}/faxmsg
380%attr(755,root,root) %{_sbindir}/faxq
381%attr(755,root,root) %{_sbindir}/faxqclean
382%attr(755,root,root) %{_sbindir}/faxquit
1f32b57f 383%attr(755,root,root) %{_sbindir}/faxsend
4922f335
TO
384%attr(755,root,root) %{_sbindir}/faxstate
385%attr(755,root,root) %{_sbindir}/faxwatch
1f32b57f 386%attr(755,root,root) %{_sbindir}/lockname
387%attr(755,root,root) %{_sbindir}/ondelay
388%attr(755,root,root) %{_sbindir}/pagesend
4922f335
TO
389%attr(755,root,root) %{_sbindir}/probemodem
390%attr(755,root,root) %{_sbindir}/recvstats
391%attr(755,root,root) %{_sbindir}/tagtest
392%attr(755,root,root) %{_sbindir}/tiffcheck
393%attr(755,root,root) %{_sbindir}/tsitest
394%attr(755,root,root) %{_sbindir}/typetest
395%attr(755,root,root) %{_sbindir}/xferfaxstats
396
397%{_datadir}/fax/faxmail.ps
84a8a70f 398%config(noreplace) %verify(not md5 mtime size) %{_datadir}/fax/hfaxd.conf
4922f335 399
ef478385 400%{_mandir}/man5/*
4922f335
TO
401%{_mandir}/man8/*
402
b3d3be84 403%files libs
4922f335 404%defattr(644,root,root,755)
ee4ed0fc 405%doc COPYRIGHT
b3d3be84 406%attr(755,root,root) %{_libdir}/*.so.*.*
4922f335 407
b3d3be84 408%files devel
4922f335 409%defattr(644,root,root,755)
1c2a089a 410#%doc html
b3d3be84 411%attr(755,root,root) %{_libdir}/*.so
This page took 0.937117 seconds and 4 git commands to generate.