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