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

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

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

Revision 1.2 by jpp, Sun Mar 11 05:08:17 2018 UTC Revision 1.25 by terryfage, Thu May 4 05:54:26 2023 UTC
# Line 1  Line 1 
1  # $Id: smeserver-mock.spec,v 1.1 2018/03/11 04:57:18 jpp Exp $  # $Id: smeserver-mock.spec,v 1.24 2023/04/30 06:19:47 terryfage 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  Summary: smeserver-mock tools for building RPMs
4  %define name smeserver-mock  %define name smeserver-mock
5  Name: %{name}  Name: %{name}
6  %define version 1.0  %define version 1.0
7  %define release 1  %define release 20
8  Version: %{version}  Version: %{version}
9  Release: %{release}%{?dist}  Release: %{release}%{?dist}
10  License: GPL  License: GPL
11  Group: Networking/Daemons  Group: Networking/Daemons
12  Source: %{name}-%{version}.tgz  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    Patch12: smeserver-mock-1.0-20230412.patch
26    Patch13: smeserver-mock-1.0-bg12350-cvm.patch
27    Patch14: smeserver-mock-1.0-add-pkgs-bz12350.patch
28    
29  BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot  BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
30  BuildArchitectures: noarch  BuildArchitectures: noarch
31  Requires: e-smith-devtools  Requires: e-smith-devtools
32  Requires: mock  Requires: mock
 Requires: python-ctypes  
33  Requires: glances  Requires: glances
34  Requires: make rpm-build rpm-sign wget  Requires: make rpm-build rpm-sign wget
35  Requires: cmake automake libtool  Requires: cmake automake libtool
36  Buildrequires: e-smith-devtools  Buildrequires: e-smith-devtools
37  # needed for scl  # needed for scl
38  Requires: scl-utils scl-utils-build centos-release-scl centos-release-scl-rh  #Requires: scl-utils scl-utils-build centos-release-scl centos-release-scl-rh
39    #Requires: python27-build
40  AutoReqProv: no  AutoReqProv: no
41    
42  %changelog  %changelog
43    * Thu May 04 2023 TerryFage <terry.fage@gmail.com> 1.0-20.sme
44    - add to mock*.cfg facilitate build with external packages [SME: 12350]
45    - attribute solutions Trevor Batley, Terry Fage
46    
47    * Sun Apr 30 2023 TerryFage <terry.fage@gmail.com> 1.0-19.sme
48    - add package to mock*.cfg facilitate cvm build [SME: 12350]
49    - attribute solution to Trevor batley
50    
51    * Thu Apr 13 2023 Jean-Philippe Pialasse <tests@pialasse.com> 1.0-18.sme
52    - fixpost scriptled not working [SME: 12349]
53    - add smeos and smeupdates in mock file
54    
55    * Wed Apr 12 2023 Jean-Philippe Pialasse <tests@pialasse.com> 1.0-17.sme
56    - fix change-log [SME: 12340]
57    - update smeserver 10 base mockfile
58    - perl.prov workaround in mock file
59    
60    * Fri Nov 18 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.0-16.sme
61    - fix change-log not handling tab for version or release
62    
63    * Thu Jun 30 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.0-15.sme
64    - update sme10 mock files [SME: 12089]
65    - remove python scl dependencies blocks a lot from using the rpm
66      almost never needed [SME: 12090]
67    - cleaning remove sme8 and sme9 mock files
68    - added workaround to perl.prov not working [SME: 11958]
69      added mock plugin copy.py and an updated perl.prov
70    - update embded bins
71    
72    * Mon Dec 27 2021 Michel Begue <mab974@misouk.com> 1.0-13.sme
73    - fix build deps for Mojo::JWT [SME: 11005]
74    
75    * Thu Nov 26 2020 Jean-Philipe Pialasse <tests@pialasse.com> 1.0-12.sme
76    - fix build deps for spamassassin [SME: 11203]
77    
78    * Fri Sep 04 2020 Michel Begue <mab974@gmail.com> 1.0-11.sme
79    - update dependencies to build Mojo::JWT package [SME: 11005]
80    
81    * Tue Aug 18 2020 Michel Begue <mab974@gmail.com> 1.0-10.sme
82    - update dependencies to build kmod packages [SME: 10993]
83    
84    * Thu May 14 2020 Jean-Philipe Pialasse <tests@pialasse.com> 1.0-9.sme
85    - fix nspawn and package_manager set to yum [SME: 10946]
86    - updating list of included packages for SME10 and SME9 repo
87    - updating the attached bins to help building [SME: 10924]
88    
89    * Mon Sep 30 2019 Michel Begue <mab974@gmail.com> 1.0-8.sme
90    - added include pkg ocaml, camlp5 [SME: 10809]
91    
92    * Tue Nov 13 2018 Jean-Philipe Pialasse <tests@pialasse.com> 1.0-7.sme
93    - fix non needed Requires python-ctypes [SME: 10647]
94    
95    * Wed Jun 20 2018 Jean-Philipe Pialasse <tests@pialasse.com> 1.0-6.sme
96    - added include pkg for video tools [SME: 1600]
97    - applied patch for previous bug fix [SME: 10599]
98    
99    * Tue Jun 19 2018 Jean-Philipe Pialasse <tests@pialasse.com> 1.0-5.sme
100    - update dependencies to build spamassassin [SME: 10599]
101    
102    * Sun Mar 18 2018 Jean-Philipe Pialasse <tests@pialasse.com> 1.0-4.sme
103    - update include package values according to buildsys
104    
105    * Sat Mar 17 2018 Jean-Philipe Pialasse <tests@pialasse.com> 1.0-3.sme
106    - set %config on mock config files
107    - a rpmsave of the previous version will be created if modified.
108    - fix typo in filename
109    
110    * Sun Mar 11 2018 Jean-Philipe Pialasse <tests@pialasse.com> 1.0-2.sme
111    - update of site-default.cfg  via post script [SME: 10537]
112    - removed e-smith-devtools of requirements
113    - added Requires python27-build
114    
115  * Sat Mar 10 2018 Jean-Philipe Pialasse <tests@pialasse.com> 1.0-1.sme  * Sat Mar 10 2018 Jean-Philipe Pialasse <tests@pialasse.com> 1.0-1.sme
116  - Initial release with SME iServer mock config files [SME: 10537]  - Initial release with SME iServer mock config files [SME: 10537]
117  - tools added : BogusDateBot.sh change-log clog createBuildDir prepa tagbuild  - tools added : BogusDateBot.sh change-log clog createBuildDir prepa tagbuild
# Line 36  Few tools are also provided to help you Line 123  Few tools are also provided to help you
123    
124  %prep  %prep
125  %setup  %setup
126    %patch0 -p1
127    %patch1 -p1
128    %patch2 -p1
129    %patch3 -p1
130    %patch4 -p1
131    %patch5 -p1
132    %patch6 -p1
133    %patch7 -p1
134    %patch8 -p1
135    %patch9 -p1
136    %patch10 -p1
137    %patch11 -p1
138    %patch12 -p1
139    %patch13 -p1
140    %patch14 -p1
141    
142  %build  %build
143    
# Line 50  rm -rf $RPM_BUILD_ROOT Line 152  rm -rf $RPM_BUILD_ROOT
152          --file /usr/bin/createBuildDir '%attr(0755,root,root)' \          --file /usr/bin/createBuildDir '%attr(0755,root,root)' \
153          --file /usr/bin/prepa '%attr(0755,root,root)' \          --file /usr/bin/prepa '%attr(0755,root,root)' \
154          --file /usr/bin/tagbuild '%attr(0755,root,root)' \          --file /usr/bin/tagbuild '%attr(0755,root,root)' \
155        | grep -v /etc/mock/  \          --file /etc/mock/perl.prov '%attr(0755,root,root)' \
156            --ignoredir /usr/lib/python3.6/site-packages/mockbuild/plugins \
157            --ignoredir /usr/lib/python3.6/site-packages/mockbuild \
158            --ignoredir /usr/lib/python3.6/site-packages \
159            --ignoredir /usr/lib/python3.6 \
160            --ignoredir /etc/mock \
161          | grep -v copy.pyc  \
162          | grep -v copy.pyo  \
163          > %{name}-%{version}-filelist          > %{name}-%{version}-filelist
164    
165  %clean  %clean
# Line 58  rm -rf $RPM_BUILD_ROOT Line 167  rm -rf $RPM_BUILD_ROOT
167    
168  %pre  %pre
169  %preun  %preun
170  %post  %post -p /bin/bash
171    
172    # updates sme site defaults
173    main=/etc/mock/site-defaults.cfg
174    tmp=/tmp/site-defaults.cfg
175    gen=/etc/mock/sme-site-defaults.cfg
176    
177    # position of the tags
178    BEGIN_GEN=$(cat $main | grep -n '### KOOZALI SME SERVER BEGIN GENERATED CONTENT' | sed 's/\(.*\):.*/\1/g' )
179    END_GEN=$(cat $main | grep -n '### KOOZALI SME SERVER END GENERATED CONTENT' | sed 's/\(.*\):.*/\1/g'  )
180    #if tag is absent set first to 0
181    if [[ "$BEGIN_GEN" -eq "" ]]; then BEGIN_GEN=0; fi
182    if [[ "$END_GEN" -eq "" ]]; then
183            # if second tag is absent just concatenate
184            cat <(head -n $(expr $BEGIN_GEN - 1) $main) $gen  >$tmp;
185    
186    else
187            # if both tags are present replace content
188            cat <(head -n $(expr $BEGIN_GEN - 1) $main) $gen <(tail -n +$(expr $END_GEN + 1) $main) >$tmp;
189    
190    fi
191    # mv tmp file to main file
192    mv $tmp $main
193    
194    
195  %postun  %postun
196    
197  %files -f %{name}-%{version}-filelist  %files -f %{name}-%{version}-filelist
198  %defattr(-,root,root,-)  %defattr(-,root,root,-)
199  /etc/mock/* %attr(0755,root,mock)    /etc/mock/* %config %attr(0755,root,mock)  


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

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