1 |
# $Id: smeserver-mock.spec,v 1.11 2020/05/19 04:06:24 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 9 |
%define release 19 |
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 |
|
|
28 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
29 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
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 |
* 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] |
- fix nspawn and package_manager set to yum [SME: 10946] |
81 |
- updating list of included packages for SME10 and SME9 repo |
- updating list of included packages for SME10 and SME9 repo |
124 |
%patch3 -p1 |
%patch3 -p1 |
125 |
%patch4 -p1 |
%patch4 -p1 |
126 |
%patch5 -p1 |
%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 |