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

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

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


Revision 1.14 - (hide annotations) (download)
Fri Sep 4 21:21:09 2020 UTC (4 years, 2 months ago) by michel
Branch: MAIN
Changes since 1.13: +7 -2 lines
make: « clog » est à jour.

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

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