/[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.21 - (show annotations) (download)
Fri Nov 18 18:18:24 2022 UTC (23 months, 1 week ago) by jpp
Branch: MAIN
CVS Tags: smeserver-mock-1_0-16_el7_sme
Changes since 1.20: +7 -2 lines
* Fri Nov 18 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.0-16.sme
- fix change-log not handling tab for version or release

1 # $Id: smeserver-mock.spec,v 1.20 2022/07/01 01:42:20 jpp Exp $
2 %global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g')
3 Summary: smeserver-mock tools for building RPMs
4 %define name smeserver-mock
5 Name: %{name}
6 %define version 1.0
7 %define release 16
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 Patch9: smeserver-mock-1.0-sme11005-mojo-jwt-2.patch
23 Patch10: smeserver-mock-1.0-20220630.patch
24 Patch11: smeserver-mock-1.0-change-log.patch
25
26 BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
27 BuildArchitectures: noarch
28 Requires: e-smith-devtools
29 Requires: mock
30 Requires: glances
31 Requires: make rpm-build rpm-sign wget
32 Requires: cmake automake libtool
33 Buildrequires: e-smith-devtools
34 # needed for scl
35 #Requires: scl-utils scl-utils-build centos-release-scl centos-release-scl-rh
36 #Requires: python27-build
37 AutoReqProv: no
38
39 %changelog
40 * Fri Nov 18 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.0-16.sme
41 - fix change-log not handling tab for version or release
42
43 * Thu Jun 30 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.0-15.sme
44 - update sme10 mock files [SME: 12089]
45 - remove python scl dependencies blocks a lot from using the rpm
46 almost never needed [SME: 12090]
47 - cleaning remove sme8 and sme9 mock files
48 - added workaround to perl.prov not working [SME: 11958]
49 added mock plugin copy.py and an updated perl.prov
50 - update embded bins
51
52 * Mon Dec 27 2021 Michel Begue <mab974@misouk.com> 1.0-13.sme
53 - fix build deps for Mojo::JWT [SME: 11005]
54
55 * Thu Nov 26 2020 Jean-Philipe Pialasse <tests@pialasse.com> 1.0-12.sme
56 - fix build deps for spamassassin [SME: 11203]
57
58 * Fri Sep 04 2020 Michel Begue <mab974@gmail.com> 1.0-11.sme
59 - update dependencies to build Mojo::JWT package [SME: 11005]
60
61 * Tue Aug 18 2020 Michel Begue <mab974@gmail.com> 1.0-10.sme
62 - update dependencies to build kmod packages [SME: 10993]
63
64 * Thu May 14 2020 Jean-Philipe Pialasse <tests@pialasse.com> 1.0-9.sme
65 - fix nspawn and package_manager set to yum [SME: 10946]
66 - updating list of included packages for SME10 and SME9 repo
67 - updating the attached bins to help building [SME: 10924]
68
69 * Mon Sep 30 2019 Michel Begue <mab974@gmail.com> 1.0-8.sme
70 - added include pkg ocaml, camlp5 [SME: 10809]
71
72 * Tue Nov 13 2018 Jean-Philipe Pialasse <tests@pialasse.com> 1.0-7.sme
73 - fix non needed Requires python-ctypes [SME: 10647]
74
75 * Wed Jun 20 2018 Jean-Philipe Pialasse <tests@pialasse.com> 1.0-6.sme
76 - added include pkg for video tools [SME: 1600]
77 - applied patch for previous bug fix [SME: 10599]
78
79 * Tue Jun 19 2018 Jean-Philipe Pialasse <tests@pialasse.com> 1.0-5.sme
80 - update dependencies to build spamassassin [SME: 10599]
81
82 * Sun Mar 18 2018 Jean-Philipe Pialasse <tests@pialasse.com> 1.0-4.sme
83 - update include package values according to buildsys
84
85 * Sat Mar 17 2018 Jean-Philipe Pialasse <tests@pialasse.com> 1.0-3.sme
86 - set %config on mock config files
87 - a rpmsave of the previous version will be created if modified.
88 - fix typo in filename
89
90 * Sun Mar 11 2018 Jean-Philipe Pialasse <tests@pialasse.com> 1.0-2.sme
91 - update of site-default.cfg via post script [SME: 10537]
92 - removed e-smith-devtools of requirements
93 - added Requires python27-build
94
95 * Sat Mar 10 2018 Jean-Philipe Pialasse <tests@pialasse.com> 1.0-1.sme
96 - Initial release with SME iServer mock config files [SME: 10537]
97 - tools added : BogusDateBot.sh change-log clog createBuildDir prepa tagbuild
98
99 %description
100 Tools for use in building RPMs for the Koozali SME server and gateway.
101
102 Few tools are also provided to help you with package building.
103
104 %prep
105 %setup
106 %patch0 -p1
107 %patch1 -p1
108 %patch2 -p1
109 %patch3 -p1
110 %patch4 -p1
111 %patch5 -p1
112 %patch6 -p1
113 %patch7 -p1
114 %patch8 -p1
115 %patch9 -p1
116 %patch10 -p1
117 %patch11 -p1
118
119 %build
120
121 %install
122 rm -rf $RPM_BUILD_ROOT
123 (cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT)
124 /bin/rm -f %{name}-%{version}-filelist
125 /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
126 --file /usr/bin/BogusDateBot.sh '%attr(0755,root,root)' \
127 --file /usr/bin/change-log '%attr(0755,root,root)' \
128 --file /usr/bin/clog '%attr(0755,root,root)' \
129 --file /usr/bin/createBuildDir '%attr(0755,root,root)' \
130 --file /usr/bin/prepa '%attr(0755,root,root)' \
131 --file /usr/bin/tagbuild '%attr(0755,root,root)' \
132 --ignoredir /usr/lib/python3.6/site-packages/mockbuild/plugins \
133 --ignoredir /usr/lib/python3.6/site-packages/mockbuild \
134 --ignoredir /usr/lib/python3.6/site-packages \
135 --ignoredir /usr/lib/python3.6 \
136 --ignoredir /etc/mock \
137 | grep -v copy.pyc \
138 | grep -v copy.pyo \
139 > %{name}-%{version}-filelist
140
141 %clean
142 rm -rf $RPM_BUILD_ROOT
143
144 %pre
145 %preun
146 %post
147
148 # updates sme site defaults
149 main=/etc/mock/site-defaults.cfg
150 tmp=/tmp/site-defaults.cfg
151 gen=/etc/mock/sme-site-defaults.cfg
152
153 # position of the tags
154 BEGIN_GEN=$(cat $main | grep -n '### KOOZALI SME SERVER BEGIN GENERATED CONTENT' | sed 's/\(.*\):.*/\1/g' )
155 END_GEN=$(cat $main | grep -n '### KOOZALI SME SERVER END GENERATED CONTENT' | sed 's/\(.*\):.*/\1/g' )
156 #if tag is absent set first to 0
157 if [[ "$BEGIN_GEN" -eq "" ]]; then BEGIN_GEN=0; fi
158 if [[ "$END_GEN" -eq "" ]]; then
159 # if second tag is absent just concatenate
160 cat <(head -n $(expr $BEGIN_GEN - 1) $main) $gen >$tmp;
161
162 else
163 # if both tags are present replace content
164 cat <(head -n $(expr $BEGIN_GEN - 1) $main) $gen <(tail -n +$(expr $END_GEN + 1) $main) >$tmp;
165
166 fi
167 # mv tmp file to main file
168 mv $tmp $main
169
170
171 %postun
172
173 %files -f %{name}-%{version}-filelist
174 %defattr(-,root,root,-)
175 /etc/mock/* %config %attr(0755,root,mock)

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