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

Annotation of /rpms/smeserver-hylafax/contribs10/smeserver-hylafax.spec

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


Revision 1.2 - (hide annotations) (download)
Fri Dec 18 14:51:13 2020 UTC (3 years, 11 months ago) by brianr
Branch: MAIN
CVS Tags: smeserver-hylafax-0_9-10_el7_sme
Changes since 1.1: +11 -4 lines
* Fri Dec 18 2020 Brian Read <brianr@bjsystems.co.uk> 0.9-10.sme
- Initial import to SME10 [SME:11269 ]
- Take-out-initd-calls-in-createlinks-file

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

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