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