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