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