/[smecontribs]/rpms/smeserver-hylafax/contribs9/smeserver-hylafax.spec
ViewVC logotype

Contents of /rpms/smeserver-hylafax/contribs9/smeserver-hylafax.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (show annotations) (download)
Thu May 5 03:25:19 2016 UTC (8 years ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-hylafax-0_9-8_el6_sme
Changes since 1.2: +13 -7 lines
* Wed May 04 2016 Jean-Philipe Pialasse <tests@pialasse.com> 0.9-8.sme
- fix permission problem on xferfaxlog [SME: 7828]

1 # $Id: smeserver-hylafax.spec,v 1.2 2016/05/03 05:29:10 unnilennium Exp $
2 # Authority: dungog
3 # Name: Stephen Noble
4
5 %define name smeserver-hylafax
6 %define version 0.9
7 %define release 8
8 Summary: Set up hylafax for sending and receiving facsimiles.
9 Name: %{name}
10 Version: %{version}
11 Release: %{release}%{?dist}
12 License: GNU GPL version 2
13 URL: http://www.hylafax.org/
14 Group: SMEserver/addon
15 Source: %{name}-%{version}.tar.gz
16 Patch1: smeserver-hylafax-0.9-6.symlink.patch
17 Patch2: smeserver-hylafax-0.9.sme9.patch
18 BuildRoot: /var/tmp/%{name}-%{version}
19 BuildArchitectures: noarch
20 BuildRequires: e-smith-devtools >= 1.13.1-03
21 Requires: e-smith-release >= 7.1
22 Requires: hylafax >= 4.3
23 AutoReqProv: no
24
25 %description
26 HylaFAX is an enterprise-class system for sending and receiving facsimiles
27
28 %changelog
29 * Wed May 04 2016 Jean-Philipe Pialasse <tests@pialasse.com> 0.9-8.sme
30 - fix permission problem on xferfaxlog [SME: 7828]
31
32 * Tue May 03 2016 Jean-Philipe Pialasse <tests@pialasse.com> 0.9-7.sme
33 - fix hylafax does not start on SME9 [SME: 9485]
34 - thank to bunkobugsy for reporting and providing the solution
35
36 * Wed Sep 12 2007 John H. Bennett III <bennettj@johnbennettservices.com> 0.9-6
37 - Patch to move the files that were being copied to
38 /etc/hylafax/etx to var/spool/hylafax/etc/ so that
39 a yum install will install all RPM's without any errors
40 - Modify spec file to change directory where the permissions
41 are applied to for mailfax
42
43 * Thu Jul 05 2007 Stephen Noble <support@dungog.net>
44 - Build on lordsfam
45
46 * Mon Jun 11 2007 Stephen Noble <support@dungog.net> 0.9-5
47 - mimetype/application/pdf fixed [SME: 3000]
48 - FaxNotify fixed [SME: 3000]
49 - if (status eq disabled) hylafax is removed from inittab
50
51 * Wed Feb 28 2007 Stephen Noble <support@dungog.net> 0.9-4
52 - rename to /var/spool/hylafax/mimetype/image/tiff
53 - touch /var/spool/hylafax/etc/xferfaxlog
54
55 * Wed Feb 14 2007 Stephen Noble <support@dungog.net> 0.9-3
56 - FaxSender user added
57
58 * Sun Feb 11 2007 Stephen Noble <support@dungog.net> 0.9-2
59 - FaxNotify added, virtualdomains altered
60
61 * Sat Feb 10 2007 Stephen Noble <support@dungog.net> 0.9-1
62 - initial release
63
64 %prep
65 %setup
66
67 %patch1 -p1
68 %patch2 -p1
69
70
71 %build
72 perl createlinks
73
74 mkdir -p root/etc/e-smith/db/configuration/defaults/hylafax
75 echo "service" > root/etc/e-smith/db/configuration/defaults/hylafax/type
76 echo "enabled" > root/etc/e-smith/db/configuration/defaults/hylafax/status
77 echo "ttyS0" > root/etc/e-smith/db/configuration/defaults/hylafax/port
78 /bin/touch root/var/spool/hylafax/etc/xferfaxlog
79
80 %install
81 rm -rf $RPM_BUILD_ROOT
82 (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
83 rm -f %{name}-%{version}-filelist
84 /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
85 --file '/var/spool/hylafax/mimetype/application/pdf' 'attr(0755,root,root)' \
86 --file '/var/spool/hylafax/mimetype/application/ps' 'attr(0755,root,root)' \
87 --file '/var/spool/hylafax/mimetype/image/tiff' 'attr(0755,root,root)' \
88 --file '/var/spool/hylafax/etc/mailfax' 'attr(0755,root,root)' \
89 --file '/var/spool/hylafax/etc/xferfaxlog' 'attr(0755,uucp,uucp)' \
90 > %{name}-%{version}-filelist
91 echo "%doc COPYING" >> %{name}-%{version}-filelist
92
93 %clean
94 cd ..
95 rm -rf %{name}-%{version}
96
97 %pre
98 %preun
99 %post
100 # remarq as this should not be here
101 #/sbin/e-smith/expand-template /etc/hylafax/hyla.conf
102 #/sbin/e-smith/expand-template /etc/init/ttyS0.conf
103 #/bin/rm -f /etc/cron.daily/hylafax
104 #/bin/touch /var/spool/hylafax/etc/xferfaxlog
105 #echo "see http://wiki.contribs.org/HylaFax"
106
107 %postun
108 /sbin/e-smith/expand-template /etc/inittab
109 /sbin/init q
110
111 %files -f %{name}-%{version}-filelist
112 %defattr(-,root,root)

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed