/[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.12 by jpp, Tue May 19 04:13:16 2020 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.11 2020/05/19 04:06:24 jpp Exp $
2    
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 9
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    
20  BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot  BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
21  BuildArchitectures: noarch  BuildArchitectures: noarch
22  Requires: e-smith-devtools  Requires: e-smith-devtools
23  Requires: mock  Requires: mock
 Requires: python-ctypes  
24  Requires: glances  Requires: glances
25  Requires: make rpm-build rpm-sign wget  Requires: make rpm-build rpm-sign wget
26  Requires: cmake automake libtool  Requires: cmake automake libtool
27  Buildrequires: e-smith-devtools  Buildrequires: e-smith-devtools
28  # needed for scl  # needed for scl
29  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
30    Requires: python27-build
31  AutoReqProv: no  AutoReqProv: no
32    
33  %changelog  %changelog
34    * Thu May 14 2020 Jean-Philipe Pialasse <tests@pialasse.com> 1.0-9.sme
35    - fix nspawn and package_manager set to yum [SME: 10946]
36    - updating list of included packages for SME10 and SME9 repo
37    - updating the attached bins to help building [SME: 10924]
38    
39    * Mon Sep 30 2019 Michel Begue <mab974@gmail.com> 1.0-8.sme
40    - added include pkg ocaml, camlp5 [SME: 10809]
41    
42    * Tue Nov 13 2018 Jean-Philipe Pialasse <tests@pialasse.com> 1.0-7.sme
43    - fix non needed Requires python-ctypes [SME: 10647]
44    
45    * Wed Jun 20 2018 Jean-Philipe Pialasse <tests@pialasse.com> 1.0-6.sme
46    - added include pkg for video tools [SME: 1600]
47    - applied patch for previous bug fix [SME: 10599]
48    
49    * Tue Jun 19 2018 Jean-Philipe Pialasse <tests@pialasse.com> 1.0-5.sme
50    - update dependencies to build spamassassin [SME: 10599]
51    
52    * Sun Mar 18 2018 Jean-Philipe Pialasse <tests@pialasse.com> 1.0-4.sme
53    - update include package values according to buildsys
54    
55    * Sat Mar 17 2018 Jean-Philipe Pialasse <tests@pialasse.com> 1.0-3.sme
56    - set %config on mock config files
57    - a rpmsave of the previous version will be created if modified.
58    - fix typo in filename
59    
60    * Sun Mar 11 2018 Jean-Philipe Pialasse <tests@pialasse.com> 1.0-2.sme
61    - update of site-default.cfg  via post script [SME: 10537]
62    - removed e-smith-devtools of requirements
63    - added Requires python27-build
64    
65  * 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
66  - Initial release with SME iServer mock config files [SME: 10537]  - Initial release with SME iServer mock config files [SME: 10537]
67  - 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 73  Few tools are also provided to help you
73    
74  %prep  %prep
75  %setup  %setup
76    %patch0 -p1
77    %patch1 -p1
78    %patch2 -p1
79    %patch3 -p1
80    %patch4 -p1
81    %patch5 -p1
82    
83  %build  %build
84    
# Line 59  rm -rf $RPM_BUILD_ROOT Line 102  rm -rf $RPM_BUILD_ROOT
102  %pre  %pre
103  %preun  %preun
104  %post  %post
105    
106    # updates sme site defaults
107    main=/etc/mock/site-defaults.cfg
108    tmp=/tmp/site-defaults.cfg
109    gen=/etc/mock/sme-site-defaults.cfg
110    
111    # position of the tags
112    BEGIN_GEN=$(cat $main | grep -n '### KOOZALI SME SERVER BEGIN GENERATED CONTENT' | sed 's/\(.*\):.*/\1/g' )
113    END_GEN=$(cat $main | grep -n '### KOOZALI SME SERVER END GENERATED CONTENT' | sed 's/\(.*\):.*/\1/g'  )
114    #if tag is absent set first to 0
115    if [[ "$BEGIN_GEN" -eq "" ]]; then BEGIN_GEN=0; fi
116    if [[ "$END_GEN" -eq "" ]]; then
117            # if second tag is absent just concatenate
118            cat <(head -n $(expr $BEGIN_GEN - 1) $main) $gen  >$tmp;
119    
120    else
121            # if both tags are present replace content
122            cat <(head -n $(expr $BEGIN_GEN - 1) $main) $gen <(tail -n +$(expr $END_GEN + 1) $main) >$tmp;
123    
124    fi
125    # mv tmp file to main file
126    mv $tmp $main
127    
128    
129  %postun  %postun
130    
131  %files -f %{name}-%{version}-filelist  %files -f %{name}-%{version}-filelist
132  %defattr(-,root,root,-)  %defattr(-,root,root,-)
133  /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