1 |
# $Id: smeserver-mock.spec,v 1.3 2018/03/12 02:05:04 jpp Exp $ |
# $Id: smeserver-mock.spec,v 1.23 2023/04/14 02:57:42 jpp 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 3 |
%define release 19 |
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 |
|
|
28 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
29 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
30 |
Requires: e-smith-devtools |
Requires: e-smith-devtools |
31 |
Requires: mock |
Requires: mock |
|
Requires: python-ctypes |
|
32 |
Requires: glances |
Requires: glances |
33 |
Requires: make rpm-build rpm-sign wget |
Requires: make rpm-build rpm-sign wget |
34 |
Requires: cmake automake libtool |
Requires: cmake automake libtool |
35 |
Buildrequires: e-smith-devtools |
Buildrequires: e-smith-devtools |
36 |
# needed for scl |
# needed for scl |
37 |
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 |
38 |
Requires: python27-build |
#Requires: python27-build |
39 |
AutoReqProv: no |
AutoReqProv: no |
40 |
|
|
41 |
%changelog |
%changelog |
42 |
|
* Sun Apr 30 2023 TerryFage <terry.fage@gmail.com> 1.0-19.sme |
43 |
|
- add package to mock*.cfg facilitate cvm build [SME: 12350] |
44 |
|
- attribute solution to Trevor batley |
45 |
|
|
46 |
|
* Thu Apr 13 2023 Jean-Philippe Pialasse <tests@pialasse.com> 1.0-18.sme |
47 |
|
- fixpost scriptled not working [SME: 12349] |
48 |
|
- add smeos and smeupdates in mock file |
49 |
|
|
50 |
|
* Wed Apr 12 2023 Jean-Philippe Pialasse <tests@pialasse.com> 1.0-17.sme |
51 |
|
- fix change-log [SME: 12340] |
52 |
|
- update smeserver 10 base mockfile |
53 |
|
- perl.prov workaround in mock file |
54 |
|
|
55 |
|
* Fri Nov 18 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.0-16.sme |
56 |
|
- fix change-log not handling tab for version or release |
57 |
|
|
58 |
|
* Thu Jun 30 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.0-15.sme |
59 |
|
- update sme10 mock files [SME: 12089] |
60 |
|
- remove python scl dependencies blocks a lot from using the rpm |
61 |
|
almost never needed [SME: 12090] |
62 |
|
- cleaning remove sme8 and sme9 mock files |
63 |
|
- added workaround to perl.prov not working [SME: 11958] |
64 |
|
added mock plugin copy.py and an updated perl.prov |
65 |
|
- update embded bins |
66 |
|
|
67 |
|
* Mon Dec 27 2021 Michel Begue <mab974@misouk.com> 1.0-13.sme |
68 |
|
- fix build deps for Mojo::JWT [SME: 11005] |
69 |
|
|
70 |
|
* Thu Nov 26 2020 Jean-Philipe Pialasse <tests@pialasse.com> 1.0-12.sme |
71 |
|
- fix build deps for spamassassin [SME: 11203] |
72 |
|
|
73 |
|
* Fri Sep 04 2020 Michel Begue <mab974@gmail.com> 1.0-11.sme |
74 |
|
- update dependencies to build Mojo::JWT package [SME: 11005] |
75 |
|
|
76 |
|
* Tue Aug 18 2020 Michel Begue <mab974@gmail.com> 1.0-10.sme |
77 |
|
- update dependencies to build kmod packages [SME: 10993] |
78 |
|
|
79 |
|
* Thu May 14 2020 Jean-Philipe Pialasse <tests@pialasse.com> 1.0-9.sme |
80 |
|
- fix nspawn and package_manager set to yum [SME: 10946] |
81 |
|
- updating list of included packages for SME10 and SME9 repo |
82 |
|
- updating the attached bins to help building [SME: 10924] |
83 |
|
|
84 |
|
* Mon Sep 30 2019 Michel Begue <mab974@gmail.com> 1.0-8.sme |
85 |
|
- added include pkg ocaml, camlp5 [SME: 10809] |
86 |
|
|
87 |
|
* Tue Nov 13 2018 Jean-Philipe Pialasse <tests@pialasse.com> 1.0-7.sme |
88 |
|
- fix non needed Requires python-ctypes [SME: 10647] |
89 |
|
|
90 |
|
* Wed Jun 20 2018 Jean-Philipe Pialasse <tests@pialasse.com> 1.0-6.sme |
91 |
|
- added include pkg for video tools [SME: 1600] |
92 |
|
- applied patch for previous bug fix [SME: 10599] |
93 |
|
|
94 |
|
* Tue Jun 19 2018 Jean-Philipe Pialasse <tests@pialasse.com> 1.0-5.sme |
95 |
|
- update dependencies to build spamassassin [SME: 10599] |
96 |
|
|
97 |
|
* Sun Mar 18 2018 Jean-Philipe Pialasse <tests@pialasse.com> 1.0-4.sme |
98 |
|
- update include package values according to buildsys |
99 |
|
|
100 |
* Sat Mar 17 2018 Jean-Philipe Pialasse <tests@pialasse.com> 1.0-3.sme |
* Sat Mar 17 2018 Jean-Philipe Pialasse <tests@pialasse.com> 1.0-3.sme |
101 |
- set %config on mock config files |
- set %config on mock config files |
102 |
- a rpmsave of the previous version will be created if modified. |
- a rpmsave of the previous version will be created if modified. |
118 |
|
|
119 |
%prep |
%prep |
120 |
%setup |
%setup |
121 |
|
%patch0 -p1 |
122 |
|
%patch1 -p1 |
123 |
|
%patch2 -p1 |
124 |
|
%patch3 -p1 |
125 |
|
%patch4 -p1 |
126 |
|
%patch5 -p1 |
127 |
|
%patch6 -p1 |
128 |
|
%patch7 -p1 |
129 |
|
%patch8 -p1 |
130 |
|
%patch9 -p1 |
131 |
|
%patch10 -p1 |
132 |
|
%patch11 -p1 |
133 |
|
%patch12 -p1 |
134 |
|
%patch13 -p1 |
135 |
|
|
136 |
%build |
%build |
137 |
|
|
146 |
--file /usr/bin/createBuildDir '%attr(0755,root,root)' \ |
--file /usr/bin/createBuildDir '%attr(0755,root,root)' \ |
147 |
--file /usr/bin/prepa '%attr(0755,root,root)' \ |
--file /usr/bin/prepa '%attr(0755,root,root)' \ |
148 |
--file /usr/bin/tagbuild '%attr(0755,root,root)' \ |
--file /usr/bin/tagbuild '%attr(0755,root,root)' \ |
149 |
| grep -v /etc/mock/ \ |
--file /etc/mock/perl.prov '%attr(0755,root,root)' \ |
150 |
|
--ignoredir /usr/lib/python3.6/site-packages/mockbuild/plugins \ |
151 |
|
--ignoredir /usr/lib/python3.6/site-packages/mockbuild \ |
152 |
|
--ignoredir /usr/lib/python3.6/site-packages \ |
153 |
|
--ignoredir /usr/lib/python3.6 \ |
154 |
|
--ignoredir /etc/mock \ |
155 |
|
| grep -v copy.pyc \ |
156 |
|
| grep -v copy.pyo \ |
157 |
> %{name}-%{version}-filelist |
> %{name}-%{version}-filelist |
158 |
|
|
159 |
%clean |
%clean |
161 |
|
|
162 |
%pre |
%pre |
163 |
%preun |
%preun |
164 |
%post |
%post -p /bin/bash |
165 |
|
|
166 |
# updates sme site defaults |
# updates sme site defaults |
167 |
main=/etc/mock/site-defaults.cfg |
main=/etc/mock/site-defaults.cfg |