/[smeserver]/rpms/smeserver-mock/sme10/smeserver-mock.spec
ViewVC logotype

Contents of /rpms/smeserver-mock/sme10/smeserver-mock.spec

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


Revision 1.16 - (show annotations) (download)
Thu Nov 26 18:41:46 2020 UTC (3 years, 6 months ago) by jpp
Branch: MAIN
CVS Tags: smeserver-mock-1_0-12_el7_sme
Changes since 1.15: +7 -2 lines
* Thu Nov 26 2020 Jean-Philipe Pialasse <tests@pialasse.com> 1.0-12.sme
- fix build deps for spamassassin [SME: 11203]

1 # $Id: smeserver-mock.spec,v 1.15 2020/09/04 21:23:42 michel Exp $
2
3 Summary: smeserver-mock tools for building RPMs
4 %define name smeserver-mock
5 Name: %{name}
6 %define version 1.0
7 %define release 12
8 Version: %{version}
9 Release: %{release}%{?dist}
10 License: GPL
11 Group: Networking/Daemons
12 Source: %{name}-%{version}.tgz
13 Patch0: smeserver-mock-1.0-updates_values.patch
14 Patch1: smeserver-mock-1.0-sme10599-spamassassin.patch
15 Patch2: smeserver-mock-1.0-sme10600-video.patch
16 Patch3: smeserver-mock-1.0-ocaml.patch
17 Patch4: smeserver-mock-1.0-sme10946-mock.patch
18 Patch5: smeserver-mock-1.0-sme10924-bins.patch
19 Patch6: smeserver-mock-1.0-sme10993-kmodtool.patch
20 Patch7: smeserver-mock-1.0-sme11005-mojo-jwt.patch
21 Patch8: smeserver-mock-1.0-sme11203-spamassassin.patch
22
23 BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
24 BuildArchitectures: noarch
25 Requires: e-smith-devtools
26 Requires: mock
27 Requires: glances
28 Requires: make rpm-build rpm-sign wget
29 Requires: cmake automake libtool
30 Buildrequires: e-smith-devtools
31 # needed for scl
32 Requires: scl-utils scl-utils-build centos-release-scl centos-release-scl-rh
33 Requires: python27-build
34 AutoReqProv: no
35
36 %changelog
37 * Thu Nov 26 2020 Jean-Philipe Pialasse <tests@pialasse.com> 1.0-12.sme
38 - fix build deps for spamassassin [SME: 11203]
39
40 * Fri Sep 04 2020 Michel Begue <mab974@gmail.com> 1.0-11.sme
41 - update dependencies to build Mojo::JWT package [SME: 11005]
42
43 * Tue Aug 18 2020 Michel Begue <mab974@gmail.com> 1.0-10.sme
44 - update dependencies to build kmod packages [SME: 10993]
45
46 * Thu May 14 2020 Jean-Philipe Pialasse <tests@pialasse.com> 1.0-9.sme
47 - fix nspawn and package_manager set to yum [SME: 10946]
48 - updating list of included packages for SME10 and SME9 repo
49 - updating the attached bins to help building [SME: 10924]
50
51 * Mon Sep 30 2019 Michel Begue <mab974@gmail.com> 1.0-8.sme
52 - added include pkg ocaml, camlp5 [SME: 10809]
53
54 * Tue Nov 13 2018 Jean-Philipe Pialasse <tests@pialasse.com> 1.0-7.sme
55 - fix non needed Requires python-ctypes [SME: 10647]
56
57 * Wed Jun 20 2018 Jean-Philipe Pialasse <tests@pialasse.com> 1.0-6.sme
58 - added include pkg for video tools [SME: 1600]
59 - applied patch for previous bug fix [SME: 10599]
60
61 * Tue Jun 19 2018 Jean-Philipe Pialasse <tests@pialasse.com> 1.0-5.sme
62 - update dependencies to build spamassassin [SME: 10599]
63
64 * Sun Mar 18 2018 Jean-Philipe Pialasse <tests@pialasse.com> 1.0-4.sme
65 - update include package values according to buildsys
66
67 * Sat Mar 17 2018 Jean-Philipe Pialasse <tests@pialasse.com> 1.0-3.sme
68 - set %config on mock config files
69 - a rpmsave of the previous version will be created if modified.
70 - fix typo in filename
71
72 * Sun Mar 11 2018 Jean-Philipe Pialasse <tests@pialasse.com> 1.0-2.sme
73 - update of site-default.cfg via post script [SME: 10537]
74 - removed e-smith-devtools of requirements
75 - added Requires python27-build
76
77 * Sat Mar 10 2018 Jean-Philipe Pialasse <tests@pialasse.com> 1.0-1.sme
78 - Initial release with SME iServer mock config files [SME: 10537]
79 - tools added : BogusDateBot.sh change-log clog createBuildDir prepa tagbuild
80
81 %description
82 Tools for use in building RPMs for the Koozali SME server and gateway.
83
84 Few tools are also provided to help you with package building.
85
86 %prep
87 %setup
88 %patch0 -p1
89 %patch1 -p1
90 %patch2 -p1
91 %patch3 -p1
92 %patch4 -p1
93 %patch5 -p1
94 %patch6 -p1
95 %patch7 -p1
96 %patch8 -p1
97
98 %build
99
100 %install
101 rm -rf $RPM_BUILD_ROOT
102 (cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT)
103 /bin/rm -f %{name}-%{version}-filelist
104 /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
105 --file /usr/bin/BogusDateBot.sh '%attr(0755,root,root)' \
106 --file /usr/bin/change-log '%attr(0755,root,root)' \
107 --file /usr/bin/clog '%attr(0755,root,root)' \
108 --file /usr/bin/createBuildDir '%attr(0755,root,root)' \
109 --file /usr/bin/prepa '%attr(0755,root,root)' \
110 --file /usr/bin/tagbuild '%attr(0755,root,root)' \
111 | grep -v /etc/mock/ \
112 > %{name}-%{version}-filelist
113
114 %clean
115 rm -rf $RPM_BUILD_ROOT
116
117 %pre
118 %preun
119 %post
120
121 # updates sme site defaults
122 main=/etc/mock/site-defaults.cfg
123 tmp=/tmp/site-defaults.cfg
124 gen=/etc/mock/sme-site-defaults.cfg
125
126 # position of the tags
127 BEGIN_GEN=$(cat $main | grep -n '### KOOZALI SME SERVER BEGIN GENERATED CONTENT' | sed 's/\(.*\):.*/\1/g' )
128 END_GEN=$(cat $main | grep -n '### KOOZALI SME SERVER END GENERATED CONTENT' | sed 's/\(.*\):.*/\1/g' )
129 #if tag is absent set first to 0
130 if [[ "$BEGIN_GEN" -eq "" ]]; then BEGIN_GEN=0; fi
131 if [[ "$END_GEN" -eq "" ]]; then
132 # if second tag is absent just concatenate
133 cat <(head -n $(expr $BEGIN_GEN - 1) $main) $gen >$tmp;
134
135 else
136 # if both tags are present replace content
137 cat <(head -n $(expr $BEGIN_GEN - 1) $main) $gen <(tail -n +$(expr $END_GEN + 1) $main) >$tmp;
138
139 fi
140 # mv tmp file to main file
141 mv $tmp $main
142
143
144 %postun
145
146 %files -f %{name}-%{version}-filelist
147 %defattr(-,root,root,-)
148 /etc/mock/* %config %attr(0755,root,mock)

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