1 |
# $Id: smeserver-mock.spec,v 1.11 2020/05/19 04:06:24 jpp Exp $ |
# $Id: smeserver-mock.spec,v 1.26 2023/06/05 03:08:02 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 9 |
%define release 22 |
8 |
Version: %{version} |
Version: %{version} |
9 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
10 |
License: GPL |
License: GPL |
16 |
Patch3: smeserver-mock-1.0-ocaml.patch |
Patch3: smeserver-mock-1.0-ocaml.patch |
17 |
Patch4: smeserver-mock-1.0-sme10946-mock.patch |
Patch4: smeserver-mock-1.0-sme10946-mock.patch |
18 |
Patch5: smeserver-mock-1.0-sme10924-bins.patch |
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 |
|
Patch15: smeserver-mock-1.0-extra-pkgs-bz12350.patch |
29 |
|
Patch16: smeserver-mock-1.0-add-pkgs-bz12381.patch |
30 |
|
|
31 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
32 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
37 |
Requires: cmake automake libtool |
Requires: cmake automake libtool |
38 |
Buildrequires: e-smith-devtools |
Buildrequires: e-smith-devtools |
39 |
# needed for scl |
# needed for scl |
40 |
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 |
41 |
Requires: python27-build |
#Requires: python27-build |
42 |
AutoReqProv: no |
AutoReqProv: no |
43 |
|
|
44 |
%changelog |
%changelog |
45 |
|
* Sun Jul 16 2023 TerryFage <terry.fage@gmail.com> 1.0-22.sme |
46 |
|
- add to mock*.cfg facilitate build with external packages [SME: 12381] |
47 |
|
|
48 |
|
* Mon Jun 05 2023 TerryFage <terry.fage@gmail.com> 1.0-21.sme |
49 |
|
- add to mock*.cfg facilitate build with external packages [SME: 12350] |
50 |
|
- attribute solutions Trevor Batley, Terry Fage |
51 |
|
|
52 |
|
* Thu May 04 2023 TerryFage <terry.fage@gmail.com> 1.0-20.sme |
53 |
|
- add to mock*.cfg facilitate build with external packages [SME: 12350] |
54 |
|
- attribute solutions Trevor Batley, Terry Fage |
55 |
|
|
56 |
|
* Sun Apr 30 2023 TerryFage <terry.fage@gmail.com> 1.0-19.sme |
57 |
|
- add package to mock*.cfg facilitate cvm build [SME: 12350] |
58 |
|
- attribute solution to Trevor batley |
59 |
|
|
60 |
|
* Thu Apr 13 2023 Jean-Philippe Pialasse <tests@pialasse.com> 1.0-18.sme |
61 |
|
- fixpost scriptled not working [SME: 12349] |
62 |
|
- add smeos and smeupdates in mock file |
63 |
|
|
64 |
|
* Wed Apr 12 2023 Jean-Philippe Pialasse <tests@pialasse.com> 1.0-17.sme |
65 |
|
- fix change-log [SME: 12340] |
66 |
|
- update smeserver 10 base mockfile |
67 |
|
- perl.prov workaround in mock file |
68 |
|
|
69 |
|
* Fri Nov 18 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.0-16.sme |
70 |
|
- fix change-log not handling tab for version or release |
71 |
|
|
72 |
|
* Thu Jun 30 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.0-15.sme |
73 |
|
- update sme10 mock files [SME: 12089] |
74 |
|
- remove python scl dependencies blocks a lot from using the rpm |
75 |
|
almost never needed [SME: 12090] |
76 |
|
- cleaning remove sme8 and sme9 mock files |
77 |
|
- added workaround to perl.prov not working [SME: 11958] |
78 |
|
added mock plugin copy.py and an updated perl.prov |
79 |
|
- update embded bins |
80 |
|
|
81 |
|
* Mon Dec 27 2021 Michel Begue <mab974@misouk.com> 1.0-13.sme |
82 |
|
- fix build deps for Mojo::JWT [SME: 11005] |
83 |
|
|
84 |
|
* Thu Nov 26 2020 Jean-Philipe Pialasse <tests@pialasse.com> 1.0-12.sme |
85 |
|
- fix build deps for spamassassin [SME: 11203] |
86 |
|
|
87 |
|
* Fri Sep 04 2020 Michel Begue <mab974@gmail.com> 1.0-11.sme |
88 |
|
- update dependencies to build Mojo::JWT package [SME: 11005] |
89 |
|
|
90 |
|
* Tue Aug 18 2020 Michel Begue <mab974@gmail.com> 1.0-10.sme |
91 |
|
- update dependencies to build kmod packages [SME: 10993] |
92 |
|
|
93 |
* Thu May 14 2020 Jean-Philipe Pialasse <tests@pialasse.com> 1.0-9.sme |
* Thu May 14 2020 Jean-Philipe Pialasse <tests@pialasse.com> 1.0-9.sme |
94 |
- fix nspawn and package_manager set to yum [SME: 10946] |
- fix nspawn and package_manager set to yum [SME: 10946] |
95 |
- updating list of included packages for SME10 and SME9 repo |
- updating list of included packages for SME10 and SME9 repo |
138 |
%patch3 -p1 |
%patch3 -p1 |
139 |
%patch4 -p1 |
%patch4 -p1 |
140 |
%patch5 -p1 |
%patch5 -p1 |
141 |
|
%patch6 -p1 |
142 |
|
%patch7 -p1 |
143 |
|
%patch8 -p1 |
144 |
|
%patch9 -p1 |
145 |
|
%patch10 -p1 |
146 |
|
%patch11 -p1 |
147 |
|
%patch12 -p1 |
148 |
|
%patch13 -p1 |
149 |
|
%patch14 -p1 |
150 |
|
%patch15 -p1 |
151 |
|
%patch16 -p1 |
152 |
|
|
153 |
%build |
%build |
154 |
|
|
163 |
--file /usr/bin/createBuildDir '%attr(0755,root,root)' \ |
--file /usr/bin/createBuildDir '%attr(0755,root,root)' \ |
164 |
--file /usr/bin/prepa '%attr(0755,root,root)' \ |
--file /usr/bin/prepa '%attr(0755,root,root)' \ |
165 |
--file /usr/bin/tagbuild '%attr(0755,root,root)' \ |
--file /usr/bin/tagbuild '%attr(0755,root,root)' \ |
166 |
| grep -v /etc/mock/ \ |
--file /etc/mock/perl.prov '%attr(0755,root,root)' \ |
167 |
|
--ignoredir /usr/lib/python3.6/site-packages/mockbuild/plugins \ |
168 |
|
--ignoredir /usr/lib/python3.6/site-packages/mockbuild \ |
169 |
|
--ignoredir /usr/lib/python3.6/site-packages \ |
170 |
|
--ignoredir /usr/lib/python3.6 \ |
171 |
|
--ignoredir /etc/mock \ |
172 |
|
| grep -v copy.pyc \ |
173 |
|
| grep -v copy.pyo \ |
174 |
> %{name}-%{version}-filelist |
> %{name}-%{version}-filelist |
175 |
|
|
176 |
%clean |
%clean |
178 |
|
|
179 |
%pre |
%pre |
180 |
%preun |
%preun |
181 |
%post |
%post -p /bin/bash |
182 |
|
|
183 |
# updates sme site defaults |
# updates sme site defaults |
184 |
main=/etc/mock/site-defaults.cfg |
main=/etc/mock/site-defaults.cfg |