# # spec file for package hylafax plus # # Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # # 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/ %global faxspool /var/spool/hylafax Summary: An enterprise-strength fax server Name: hylafax+ Version: 5.5.4 Release: 24.1 License: libtiff and BSD with advertising Group: Productivity/Telephony/Servers URL: http://hylafax.sourceforge.net Source0: http://downloads.sourceforge.net/hylafax/hylafax-%{version}.tar.gz Source1: hylafax+_rh.init Source2: hylafax+_daily.cron Source3: hylafax+_hourly.cron Source4: hylafax_hfaxd_systemd.service Source5: hylafax_faxq_systemd.service Patch: eisfair-hylafax-5.5.0.patch #BuildRequires: libjpeg-devel #BuildRequires: libtiff-devel #BuildRequires: zlib-devel #BuildRequires: lcms2-devel #BuildRequires: libtiff-tools #BuildRequires: jbigkit-devel Conflicts: mgetty-sendfax Provides: hylafax = %{version}-%{release} Obsoletes: hylafax < 5.5.3-1 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) # former hylafax+: # BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-%(%{__id_u} -n) BuildArch: i486 %description HylaFAX(tm) is a enterprise-strength fax server supporting Class 1 and 2 fax modems on UNIX systems. It provides spooling services and numerous supporting fax management tools. The fax clients may reside on machines different from the server and client implementations exist for a number of platforms including windows. %prep %setup -q -n hylafax-%{version} %patch -p1 %build export CFLAGS='-O2 -march=i486' export CXXFLAGS="${CFLAGS}" # - Can't use the configure macro because HylaFAX configure script does # not understand the config options used by that macro #STRIP=':' \ ./configure \ --with-DIR_BIN=%{_bindir} \ --with-DIR_SBIN=%{_sbindir} \ --with-DIR_LIB=%{_libdir} \ --with-DIR_LIBEXEC=%{_sbindir} \ --with-DIR_LIBDATA=%{_libdir}/fax \ --with-DIR_LOCKS=/run/lock \ --with-LIBDIR=%{_libdir} \ --with-TIFFBIN=%{_bindir} \ --with-DIR_MAN=%{_mandir} \ --with-PATH_GSRIP=/usr/local/bin/gs \ --with-TIFFINC=-L%{_includedir} \ --with-LIBTIFF="-ltiff" \ --with-DIR_SPOOL=%{faxspool} \ --with-AFM=no \ --with-AWK=%{_bindir}/gawk \ --with-PATH_VGETTY=/sbin/vgetty \ --with-PATH_GETTY=/sbin/mgetty \ --with-PAGESIZE=A4 \ --with-PATH_DPSRIP=%{faxspool}/bin/ps2fax \ --with-PATH_IMPRIP="" \ --with-SYSVINIT=%{_initrddir}/hylafax+ \ --with-INTERACTIVE=no \ --disable-pam \ --disable-ldap # can't use %{?_smp_mflags} because it breaks libfaxutil dso building make OPTIMIZER="$RPM_OPT_FLAGS" %install rm -rf $RPM_BUILD_ROOT # install: make some dirs... #mkdir -p -m 755 $RPM_BUILD_ROOT%{_sysconfdir}/{cron.daily,cron.hourly} mkdir -p -m 755 $RPM_BUILD_ROOT%{_sysconfdir}/hylafax %if 0%{?fedora} >= 16 || 0%{?suse_version} > 1200 mkdir -p -m 755 $RPM_BUILD_ROOT%{_unitdir} %endif mkdir -p -m 755 $RPM_BUILD_ROOT%{_initrddir} mkdir -p -m 755 $RPM_BUILD_ROOT%{_bindir} mkdir -p -m 755 $RPM_BUILD_ROOT%{_sbindir} mkdir -p -m 755 $RPM_BUILD_ROOT%{_libdir} mkdir -p -m 755 $RPM_BUILD_ROOT%{_mandir} mkdir -p -m 755 $RPM_BUILD_ROOT%{faxspool}/config # install: binaries and man pages # FAXUSER, FAXGROUP, SYSUSER and SYSGROUP are set to the current user to # avoid warnings about chown/chgrp if the user building the SRPM is not root; # they are set to the correct values with the RPM attr macro make install -e \ FAXUSER=`id -u` \ FAXGROUP=`id -g` \ SYSUSER=`id -u` \ SYSGROUP=`id -g` \ BIN=$RPM_BUILD_ROOT%{_bindir} \ SBIN=$RPM_BUILD_ROOT%{_sbindir} \ LIBDIR=$RPM_BUILD_ROOT%{_libdir} \ LIBDATA=$RPM_BUILD_ROOT%{_libdir}/fax \ LIBEXEC=$RPM_BUILD_ROOT%{_sbindir} \ SPOOL=$RPM_BUILD_ROOT%{faxspool} \ MAN=$RPM_BUILD_ROOT%{_mandir} \ INSTALL_ROOT=$RPM_BUILD_ROOT # install: remaining files %if 0%{?fedora} >= 16 install -p -m 644 %{SOURCE4} $RPM_BUILD_ROOT%{_unitdir}/hylafax-hfaxd.service install -p -m 644 %{SOURCE5} $RPM_BUILD_ROOT%{_unitdir}/hylafax-faxq.service %endif %if 0%{?suse_version} >= 1200 #install -p -m 644 %{SOURCE4} $RPM_BUILD_ROOT%{_unitdir}/hylafax-hfaxd.service #install -p -m 644 %{SOURCE5} $RPM_BUILD_ROOT%{_unitdir}/hylafax-faxq.service %endif #%if 0%{?fedora} < 16 install -p -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_initrddir}/hylafax+ #%endif # Suse needs the script anyway? #%if 0%{?suse_version} #install -p -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_initrddir}/hylafax+ #%endif mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/cron.{daily,hourly} install -p -m 755 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/cron.daily/hylafax install -p -m 755 %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/cron.hourly/hylafax # Prepare docdir by removing non-doc files # Remove files that are not needed on Linux rm -f $RPM_BUILD_ROOT%{_sbindir}/faxsetup.{irix,bsdi,linux} rm -f $RPM_BUILD_ROOT%{faxspool}/bin/{ps2fax.imp,ps2fax.dps} rm -f $RPM_BUILD_ROOT%{faxspool}/COPYRIGHT rm -rf %{buildroot}%{faxspool}/archive rm -rf %{buildroot}%{faxspool}/client rm -rf %{buildroot}%{faxspool}/dev rm -rf %{buildroot}%{faxspool}/docq rm -rf %{buildroot}%{faxspool}/doneq rm -rf %{buildroot}%{faxspool}/info rm -rf %{buildroot}%{faxspool}/log rm -rf %{buildroot}%{faxspool}/pollq rm -rf %{buildroot}%{faxspool}/sendq rm -rf %{buildroot}%{faxspool}/recvq rm -rf %{buildroot}%{faxspool}/status rm -rf %{buildroot}%{faxspool}/tmp mkdir -p %{buildroot}/usr/local/eisfax mv %{buildroot}%{_sbindir}/faxdeluser %{buildroot}/usr/local/eisfax/faxdeluser mv %{buildroot}%{_sbindir}/faxadduser %{buildroot}/usr/local/eisfax/faxadduser mv %{buildroot}%{_bindir}/faxrm %{buildroot}/usr/local/eisfax/faxrm mv %{buildroot}%{_bindir}/faxstat %{buildroot}/usr/local/eisfax/faxstat rm -f %{buildroot}%{_sbindir}/hylafax %files %if 0%{?fedora} >= 16 || 0%{?suse_version} > 1200 %{_unitdir}/hylafax-hfaxd.service %{_unitdir}/hylafax-faxq.service %endif %defattr(-,fax,uucp,-) %doc CHANGES CONTRIBUTORS COPYRIGHT README TODO VERSION %{_libdir}/libfax* %{_mandir}/*/* %dir %{_libdir}/fax %dir %{_libdir}/fax/faxmail %dir %{_libdir}/fax/faxmail/application %dir %{_libdir}/fax/faxmail/image %config(noreplace) %{_libdir}/fax/faxcover.ps %config(noreplace) %{_libdir}/fax/faxmail.ps %config(noreplace) %{_libdir}/fax/hfaxd.conf %config(noreplace) %{_libdir}/fax/pagesizes %config(noreplace) %{_libdir}/fax/typerules %dir %{faxspool}/config %{faxspool}/config/* %{faxspool}/bin/dict/* %{faxspool}/bin/genfontmap.ps %{faxspool}/bin/auto-rotate.ps %{faxspool}/etc/dpsprinter.ps %{faxspool}/etc/cover.templ %{faxspool}/etc/lutRS18.pcf %{faxspool}/etc/LiberationSans-25.pcf %config(noreplace) %{faxspool}/etc/dialrules* %defattr(755,root,root,-) %if 0%{?fedora} < 16 || 0%{?suse_version} < 1200 %{_initrddir}/hylafax+ %endif %config(noreplace) %{_sysconfdir}/cron.daily/hylafax %config(noreplace) %{_sysconfdir}/cron.hourly/hylafax #%{_bindir}/* - is now in client package # %{_sbindir}/* - needs to go out because of edit-faxcover /usr/bin/faxalter /usr/bin/faxcover /usr/bin/faxmail /usr/bin/sendfax /usr/bin/sendpage /usr/sbin/choptest /usr/sbin/cqtest /usr/sbin/dialtest /usr/sbin/edit-faxcover /usr/sbin/faxabort /usr/sbin/faxaddmodem /usr/sbin/faxanswer /usr/sbin/faxconfig %config(noreplace) %attr(700,root,root) /usr/sbin/faxcron /usr/sbin/faxfetch /usr/sbin/faxgetty /usr/sbin/faxinfo /usr/sbin/faxlock /usr/sbin/faxmodem /usr/sbin/faxmsg /usr/sbin/faxq /usr/sbin/faxqclean /usr/sbin/faxquit /usr/sbin/faxsend /usr/sbin/faxsetup /usr/sbin/faxstate /usr/sbin/faxwatch /usr/sbin/hfaxd /usr/sbin/lockname /usr/sbin/ondelay /usr/sbin/pagesend /usr/sbin/probemodem /usr/sbin/recvstats /usr/sbin/tagtest /usr/sbin/textfmt /usr/sbin/tiffcheck /usr/sbin/tsitest /usr/sbin/typetest /usr/sbin/xferfaxstats #/usr/sbin/hylafax /usr/local/eisfax/faxdeluser /usr/local/eisfax/faxadduser /usr/local/eisfax/faxrm /usr/local/eisfax/faxstat %{faxspool}/bin/archive %{faxspool}/bin/common-functions %{faxspool}/bin/dictionary %{faxspool}/bin/faxrcvd %{faxspool}/bin/mkcover %{faxspool}/bin/notify %{faxspool}/bin/pcl2fax %{faxspool}/bin/pdf2fax.gs %{faxspool}/bin/pollrcvd %{faxspool}/bin/ps2fax.gs %{faxspool}/bin/qp-encode.awk %{faxspool}/bin/rfc2047-encode.awk %{faxspool}/bin/tiff2fax %{faxspool}/bin/tiff2pdf %{faxspool}/bin/wedged %{_libdir}/fax/faxmail/application/pdf %{_libdir}/fax/faxmail/application/octet-stream %{_libdir}/fax/faxmail/image/tiff %dir %{faxspool} %dir %{faxspool}/bin %dir %{faxspool}/bin/dict %dir %{faxspool}/etc %config(noreplace) %{faxspool}/etc/xferfaxlog %config(noreplace) %{faxspool}/etc/hosts.hfaxd #%files -n hylafax+-client #%defattr(-, root, root) #%{_libdir}/libhylafax*.so.* #/usr/bin/faxalter #/usr/bin/faxcover #/usr/bin/faxmail #/usr/bin/sendfax #/usr/bin/sendpage #%dir /usr/lib/fax # Some files need rework: Greyed out #/usr/lib/fax/a2pswrap #%config /usr/lib/fax/faxcover.ps #/usr/lib/fax/faxmail.ps #%config /usr/lib/fax/pagesizes #%config(noreplace) /usr/lib/fax/sendfax.conf #/usr/lib/fax/textfmt #%config /usr/lib/fax/typerules #/usr/lib/fax/typetest #/usr/sbin/edit-faxcover %changelog * Thu Nov 28 2013 axel.braun@gmx.de - Split out hylafax client * Tue Oct 29 2013 axel.braun@gmx.de - New release 5.5.4 * Tue Jan 15 2013 Axel Braun - adapt spec for use with open Build service * Tue Dec 11 2012 Lee Howard - 5.5.2-6 - make dependency on systemd-units and system instead of /bin/systemctl - modify systemd scriptlets - use defattr to accomodate correct permissions for mock builds * Sat Dec 8 2012 Lee Howard - 5.5.2-5 - remove defattr from files - rename patches and all but Source0 to hylafax+ - remove config(noreplace) from FIFO - add /bin/systemctl build dependency for Fedora > 16 * Mon Dec 3 2012 Lee Howard - 5.5.2-4 - add missing man pages * Sun Nov 4 2012 Lee Howard - 5.5.2-3 - spec optimizations - clarify linkage in libfaxserver - add systemd support * Thu Nov 1 2012 Lee Howard - 5.5.2-2 - change package name to hylafax+ - add Provides: hylafax * Sat Oct 13 2012 Lee Howard - 5.5.2-1 - update to 5.5.2 * Thu Jan 12 2012 Lee Howard - 5.5.1-1 - update to 5.5.1 * Sat Dec 18 2010 Lee Howard - 5.5.0-1 - update to 5.5.0 * Wed Oct 13 2010 Lee Howard - 5.4.3-1 - update to 5.4.3 * Sun May 2 2010 Lee Howard - 5.4.2-1 - update to 5.4.2 * Mon Feb 22 2010 Lee Howard - 5.4.1-1 - update to 5.4.1 * Wed Dec 23 2009 Lee Howard - 5.4.0-1 - update to 5.4.0 - add lcms-devel build dependency * Sun Oct 25 2009 Lee Howard - 5.3.0-1 - update to 5.3.0 * Sat Feb 28 2009 Lee Howard - 5.2.9-1 - update to 5.2.9 - remove "Provides: hylafax" * Sun Dec 21 2008 Lee Howard - 5.2.8-1 - update to 5.2.8 * Mon Apr 28 2008 Lee Howard - 5.2.4-3 - openldap-devel and pam-devel build dependencies * Wed Apr 23 2008 Lee Howard - 5.2.4-1 - update to 5.2.4 * Sat Mar 29 2008 Lee Howard - 5.2.3-1 - update to 5.2.3 * Fri Jan 18 2008 Lee Howard - 5.2.2-1 - make licensing BSD, initscript is not config, remove libtiff dependency * Thu Nov 8 2007 Lee Howard - 5.1.11-1 - add libtiff dependency * Thu Aug 2 2007 Lee Howard - 5.1.7-1 - update to 5.1.7 * Sat Jul 14 2007 Lee Howard - 5.1.6-1 - accomodate MIMEConverter script location change * Fri Mar 23 2007 Lee Howard - 5.1.2-1 - made faxq's FIFO "noreplace" to keep upgrades from messing up a running faxq * Thu Mar 8 2007 Lee Howard - 5.1.1-1 - update to 5.1.1 * Thu Feb 22 2007 Lee Howard - 5.1.0-1 - update to 5.1.0 * Thu Jan 11 2007 Lee Howard - 5.0.4-1 - update to 5.0.4 * Mon Jan 1 2007 Lee Howard - 5.0.3-1 - update to 5.0.3 * Wed Dec 13 2006 Lee Howard - 5.0.2-1 - update to 5.0.2 * Wed Nov 1 2006 Lee Howard - 5.0.0-1 - update to 5.0.0 - disable build of debuginfo package - change ownership of config and dev to root,root - move changelog to the end of the spec file * Mon Sep 18 2006 Lee Howard - 4.3.0.11-1 - update to 4.3.0.1 * Tue Apr 11 2006 Lee Howard - 4.2.5.6-1 - update to 4.2.5.6 * Tue Apr 11 2006 Lee Howard - 4.2.5.5-1 - initial 4.2.5.5 build