Search
j0ke.net Open Build Service
>
Projects
>
server:telephony
>
hylafax
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 12
[-]
[+]
Added
hylafax.spec
@@ -0,0 +1,321 @@ +# +# spec file for package hylafax (Version 6.0.2) +# +# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Portions Copyright (c) 2009 Johannes Engel <jcnengel@googlemail.com> +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +Name: hylafax +BuildRequires: gcc-c++ ghostscript-library libpng-devel libtiff-devel metamail mm postfix pwdutils +License: X11/MIT +Group: Hardware/Fax +Provides: fax_daemon +Requires: tiff gs_lib smtp_daemon a2ps %{name}-client +Recommends: cron +Conflicts: sendfax +Version: 6.0.2 +Release: 23 +Source: %{name}-%{version}.tar.bz2 +Source1: latex-cover-1.0.8.tar.bz2 +Source2: %{name}-openSUSE.tar.bz2 +Patch: %{name}-%{version}.diff +Patch1: %{name}-%{version}-i4l.diff +Patch2: %{name}-%{version}-pic.diff +Patch3: %{name}-%{version}-user.diff +Patch4: %{name}-%{version}-conv.diff +Patch5: %{name}-%{version}-initscript.diff +Url: http://www.hylafax.org +BuildRoot: %{_tmppath}/%{name}-%{version}-build +Summary: Very Powerful Fax Server +PreReq: sh-utils fileutils %insserv_prereq %fillup_prereq %{_sbindir}/useradd %{_sbindir}/usermod + +%description +Very powerful fax server. + + + +Authors: +-------- + Sam Leffler <sam@engr.sgi.com> + +%package -n %{name}-client +License: X11/MIT +Group: Hardware/Fax +Conflicts: sendfax +AutoReqProv: on +Summary: Linux client package for the Hylafax server + +%description -n %{name}-client +This is linux client part of the very powerful Hylafax fax server. If +you already run the Hylafax fax server on an other machine at your +network, you can use this package to access the server. + + + +Authors: +-------- + Sam Leffler <sam@engr.sgi.com> + +%package -n lib%{name}-6_0-2 +License: X11/MIT +Group: System/Libraries +Summary: Library for HylaFAX + +%description -n lib%{name}-6_0-2 +This is linux client part of the very powerful Hylafax fax server. If +you already run the Hylafax fax server on an other machine at your +network, you can use this package to access the server. + + + +Authors: +-------- + Sam Leffler <sam@engr.sgi.com> + + +%prep +%setup -q -n %{name}-%{version} -a 1 -a 2 +%patch +%patch1 -p1 +%patch2 +%patch3 +%patch4 +%patch5 +%ifarch x86_64 +mv openSUSE/usr/lib openSUSE/usr/lib64 +%endif +# need to be executable +chmod 755 openSUSE%{_libdir}/fax/a2pswrap +find ../ -name .cvsignore -exec rm {} \; + +%build +%{?suse_update_config:%{suse_update_config -f}} +./configure --with-OPTIMIZER="$RPM_OPT_FLAGS" --with-STRIP=: \ + ${RPM_ARCH}-suse-linux < /dev/null +make + +%install +install -d ${RPM_BUILD_ROOT}/var/spool/hylafax +install -d ${RPM_BUILD_ROOT}%{_libdir} +install -d ${RPM_BUILD_ROOT}%{_mandir} +install -d ${RPM_BUILD_ROOT}/etc/init.d +make install BIN=${RPM_BUILD_ROOT}%{_bindir} LIBDATA=${RPM_BUILD_ROOT}%{_libdir}/fax \ + LIBEXEC=${RPM_BUILD_ROOT}%{_libdir}/fax SBIN=${RPM_BUILD_ROOT}%{_sbindir} \ + SPOOL=${RPM_BUILD_ROOT}/var/spool/hylafax MAN=${RPM_BUILD_ROOT}%{_mandir}\ + DESTDIR=${RPM_BUILD_ROOT} \ + LIBDIR=${RPM_BUILD_ROOT}%{_libdir} +install -m755 etc/hylafax ${RPM_BUILD_ROOT}/etc/init.d +ln -sf ../../etc/init.d/hylafax ${RPM_BUILD_ROOT}%{_sbindir}/rchylafax +cp -af openSUSE/* ${RPM_BUILD_ROOT} +rm -f ${RPM_BUILD_ROOT}/README.SuSE +install -m755 faxsend ${RPM_BUILD_ROOT}/var/spool/hylafax/bin/ +install -d ${RPM_BUILD_ROOT}%{_defaultdocdir}/hylafax +mv ${RPM_BUILD_ROOT}%{_libdir}/fax/faxcover_example_sgi.ps ${RPM_BUILD_ROOT}%{_defaultdocdir}/hylafax + +%pre +%{_sbindir}/useradd -r -o -g uucp -u 33 -s /bin/bash -c "Facsimile agent" -d /var/spool/hylafax fax 2> /dev/null || : +%{_sbindir}/usermod -g uucp -G dialout fax 2> /dev/null || : + +%post +/bin/chown -f -R fax var/spool/hylafax/* +%{fillup_and_insserv hylafax} +ldconfig + +%preun +%stop_on_removal %{name} + +%postun +%{insserv_cleanup} +/sbin/ldconfig + +%post -n hylafax-client +/sbin/ldconfig + +%postun -n hylafax-client +/sbin/ldconfig + +%post -n lib%{name}-6_0-2 +/sbin/ldconfig + +%postun -n lib%{name}-6_0-2 +/sbin/ldconfig + +%clean +[ "${RPM_BUILD_ROOT}" != "/" ] && [ -d ${RPM_BUILD_ROOT} ] && rm -rf ${RPM_BUILD_ROOT}; + +%files +%defattr(-, root, root) +%doc COPYRIGHT README openSUSE/README.SuSE TODO VERSION latex-cover-1.08 +%config /etc/init.d/hylafax +%dir %{_libdir}/fax +%attr(700,root,root) /etc/cron.daily/suse.de-faxcron +%{_libdir}/fax/faxgetty +%{_libdir}/fax/faxsend +%{_libdir}/fax/hfaxd +%config(noreplace) %{_libdir}/fax/hfaxd.conf +%{_libdir}/fax/lockname +%{_libdir}/fax/ondelay +%{_libdir}/fax/pagesend +%doc %{_mandir}/man5/hylafax-config.5f.gz +%doc %{_mandir}/man5/doneq.5f.gz +%doc %{_mandir}/man5/dialrules.5f.gz +%doc %{_mandir}/man5/hosts.hfaxd.5f.gz +%doc %{_mandir}/man5/hylafax-server.5f.gz +%doc %{_mandir}/man5/hylafax-info.5f.gz +%doc %{_mandir}/man5/hylafax-log.5f.gz +%doc %{_mandir}/man5/pagermap.5f.gz +%doc %{_mandir}/man5/pagesizes.5f.gz +%doc %{_mandir}/man5/recvq.5f.gz +%doc %{_mandir}/man5/sendq.5f.gz +%doc %{_mandir}/man5/hylafax-shutdown.5f.gz +%doc %{_mandir}/man5/status.5f.gz +%doc %{_mandir}/man5/tsi.5f.gz +%doc %{_mandir}/man5/typerules.5f.gz +%doc %{_mandir}/man5/xferfaxlog.5f.gz +%doc %{_mandir}/man8/choptest.8c.gz +%doc %{_mandir}/man8/cqtest.8c.gz +%doc %{_mandir}/man8/dialtest.8c.gz +%doc %{_mandir}/man8/faxabort.8c.gz +%doc %{_mandir}/man8/faxaddmodem.8c.gz +%doc %{_mandir}/man8/faxadduser.8c.gz +%doc %{_mandir}/man8/faxanswer.8c.gz +%doc %{_mandir}/man8/faxconfig.8c.gz +%doc %{_mandir}/man8/faxcron.8c.gz +%doc %{_mandir}/man8/faxdeluser.8c.gz +%doc %{_mandir}/man8/faxgetty.8c.gz +%doc %{_mandir}/man8/faxinfo.8c.gz +%doc %{_mandir}/man8/faxlock.8c.gz +%doc %{_mandir}/man8/faxmodem.8c.gz