import pcs-0.10.10-2.el8
This commit is contained in:
parent
75aea641e3
commit
edf1b3baef
7
.gitignore
vendored
7
.gitignore
vendored
@ -9,14 +9,15 @@ SOURCES/ffi-1.13.1.gem
|
|||||||
SOURCES/json-2.3.0.gem
|
SOURCES/json-2.3.0.gem
|
||||||
SOURCES/mustermann-1.1.1.gem
|
SOURCES/mustermann-1.1.1.gem
|
||||||
SOURCES/open4-1.3.4-1.gem
|
SOURCES/open4-1.3.4-1.gem
|
||||||
SOURCES/pcs-0.10.8.tar.gz
|
SOURCES/pcs-0.10.10.tar.gz
|
||||||
SOURCES/pcs-web-ui-0.1.5.tar.gz
|
SOURCES/pcs-web-ui-0.1.7.tar.gz
|
||||||
SOURCES/pcs-web-ui-node-modules-0.1.5.tar.xz
|
SOURCES/pcs-web-ui-node-modules-0.1.7.tar.xz
|
||||||
SOURCES/pyagentx-0.4.pcs.2.tar.gz
|
SOURCES/pyagentx-0.4.pcs.2.tar.gz
|
||||||
SOURCES/python-dateutil-2.8.1.tar.gz
|
SOURCES/python-dateutil-2.8.1.tar.gz
|
||||||
SOURCES/rack-2.2.3.gem
|
SOURCES/rack-2.2.3.gem
|
||||||
SOURCES/rack-protection-2.0.8.1.gem
|
SOURCES/rack-protection-2.0.8.1.gem
|
||||||
SOURCES/rack-test-1.1.0.gem
|
SOURCES/rack-test-1.1.0.gem
|
||||||
|
SOURCES/rexml-3.2.5.gem
|
||||||
SOURCES/ruby2_keywords-0.0.2.gem
|
SOURCES/ruby2_keywords-0.0.2.gem
|
||||||
SOURCES/sinatra-2.0.8.1.gem
|
SOURCES/sinatra-2.0.8.1.gem
|
||||||
SOURCES/thin-1.7.2.gem
|
SOURCES/thin-1.7.2.gem
|
||||||
|
@ -9,14 +9,15 @@ cfa25e7a3760c3ec16723cb8263d9b7a52d0eadf SOURCES/ffi-1.13.1.gem
|
|||||||
0230e8c5a37f1543982e5b04be503dd5f9004b47 SOURCES/json-2.3.0.gem
|
0230e8c5a37f1543982e5b04be503dd5f9004b47 SOURCES/json-2.3.0.gem
|
||||||
50a4e37904485810cb05e27d75c9783e5a8f3402 SOURCES/mustermann-1.1.1.gem
|
50a4e37904485810cb05e27d75c9783e5a8f3402 SOURCES/mustermann-1.1.1.gem
|
||||||
41a7fe9f8e3e02da5ae76c821b89c5b376a97746 SOURCES/open4-1.3.4-1.gem
|
41a7fe9f8e3e02da5ae76c821b89c5b376a97746 SOURCES/open4-1.3.4-1.gem
|
||||||
0e6b705715023ec5224ca05e977b8888f2a1b1e6 SOURCES/pcs-0.10.8.tar.gz
|
a1c0585455b7e050c33598598a045ccd2776cb28 SOURCES/pcs-0.10.10.tar.gz
|
||||||
f23b14786b1911d498612bf0e90f344bcc4915c3 SOURCES/pcs-web-ui-0.1.5.tar.gz
|
b9ed12ca957c2f204ec37ea2836b924c36fab379 SOURCES/pcs-web-ui-0.1.7.tar.gz
|
||||||
57beab1c4bed96d7f9fc35261e96f78babb06980 SOURCES/pcs-web-ui-node-modules-0.1.5.tar.xz
|
8824285e6f1c2807d9222d573c6e6df1e50d8410 SOURCES/pcs-web-ui-node-modules-0.1.7.tar.xz
|
||||||
3176b2f2b332c2b6bf79fe882e83feecf3d3f011 SOURCES/pyagentx-0.4.pcs.2.tar.gz
|
3176b2f2b332c2b6bf79fe882e83feecf3d3f011 SOURCES/pyagentx-0.4.pcs.2.tar.gz
|
||||||
bd26127e57f83a10f656b62c46524c15aeb844dd SOURCES/python-dateutil-2.8.1.tar.gz
|
bd26127e57f83a10f656b62c46524c15aeb844dd SOURCES/python-dateutil-2.8.1.tar.gz
|
||||||
345b7169d4d2d62176a225510399963bad62b68f SOURCES/rack-2.2.3.gem
|
345b7169d4d2d62176a225510399963bad62b68f SOURCES/rack-2.2.3.gem
|
||||||
1f046e23baca8beece3b38c60382f44aa2b2cb41 SOURCES/rack-protection-2.0.8.1.gem
|
1f046e23baca8beece3b38c60382f44aa2b2cb41 SOURCES/rack-protection-2.0.8.1.gem
|
||||||
b80bc5ca38a885e747271675ba91dd3d02136bf1 SOURCES/rack-test-1.1.0.gem
|
b80bc5ca38a885e747271675ba91dd3d02136bf1 SOURCES/rack-test-1.1.0.gem
|
||||||
|
e7f48fa5fb2d92e6cb21d6b1638fe41a5a7c4287 SOURCES/rexml-3.2.5.gem
|
||||||
0be571aacb5d6a212a30af3f322a7000d8af1ef9 SOURCES/ruby2_keywords-0.0.2.gem
|
0be571aacb5d6a212a30af3f322a7000d8af1ef9 SOURCES/ruby2_keywords-0.0.2.gem
|
||||||
04cca7a5d9d641fe076e4e24dc5b6ff31922f4c3 SOURCES/sinatra-2.0.8.1.gem
|
04cca7a5d9d641fe076e4e24dc5b6ff31922f4c3 SOURCES/sinatra-2.0.8.1.gem
|
||||||
41395e86322ffd31f3a7aef1f697bda3e1e2d6b9 SOURCES/thin-1.7.2.gem
|
41395e86322ffd31f3a7aef1f697bda3e1e2d6b9 SOURCES/thin-1.7.2.gem
|
||||||
|
@ -0,0 +1,45 @@
|
|||||||
|
From 189c73e31f5033413fc4483e40d0bfc78d77f962 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Tomas Jelinek <tojeline@redhat.com>
|
||||||
|
Date: Fri, 27 Aug 2021 12:05:18 +0200
|
||||||
|
Subject: [PATCH 1/2] fix creating resources with depth operation attribute
|
||||||
|
|
||||||
|
---
|
||||||
|
CHANGELOG.md | 9 +++++++++
|
||||||
|
pcs/lib/cib/resource/operations.py | 2 +-
|
||||||
|
2 files changed, 10 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/CHANGELOG.md b/CHANGELOG.md
|
||||||
|
index f768cc36..c15546ba 100644
|
||||||
|
--- a/CHANGELOG.md
|
||||||
|
+++ b/CHANGELOG.md
|
||||||
|
@@ -1,5 +1,14 @@
|
||||||
|
# Change Log
|
||||||
|
|
||||||
|
+## [Unreleased]
|
||||||
|
+
|
||||||
|
+### Fixed
|
||||||
|
+- Fixed an error when creating a resource which defines 'depth' attribute for
|
||||||
|
+ its operations ([rhbz#1998454])
|
||||||
|
+
|
||||||
|
+[rhbz#1998454]: https://bugzilla.redhat.com/show_bug.cgi?id=1998454
|
||||||
|
+
|
||||||
|
+
|
||||||
|
## [0.10.10] - 2021-08-19
|
||||||
|
|
||||||
|
### Added
|
||||||
|
diff --git a/pcs/lib/cib/resource/operations.py b/pcs/lib/cib/resource/operations.py
|
||||||
|
index 390db71a..44b2e7dd 100644
|
||||||
|
--- a/pcs/lib/cib/resource/operations.py
|
||||||
|
+++ b/pcs/lib/cib/resource/operations.py
|
||||||
|
@@ -197,7 +197,7 @@ def _action_dto_to_dict(
|
||||||
|
) -> Dict[str, str]:
|
||||||
|
result = dict(
|
||||||
|
filter(
|
||||||
|
- lambda item: item[0] != "deph" and item[1] not in (None, ""),
|
||||||
|
+ lambda item: item[0] != "depth" and item[1] not in (None, ""),
|
||||||
|
to_dict(dto).items(),
|
||||||
|
)
|
||||||
|
)
|
||||||
|
--
|
||||||
|
2.31.1
|
||||||
|
|
@ -1,19 +1,19 @@
|
|||||||
From ab9fd9f223e805247319ac5a7318c15417197a0a Mon Sep 17 00:00:00 2001
|
From 12fdac318d07e53da1f738b2b4deacaa0f606d4c Mon Sep 17 00:00:00 2001
|
||||||
From: Ivan Devat <idevat@redhat.com>
|
From: Ivan Devat <idevat@redhat.com>
|
||||||
Date: Tue, 20 Nov 2018 15:03:56 +0100
|
Date: Tue, 20 Nov 2018 15:03:56 +0100
|
||||||
Subject: [PATCH] do not support cluster setup with udp(u) transport
|
Subject: [PATCH 2/2] do not support cluster setup with udp(u) transport
|
||||||
|
|
||||||
---
|
---
|
||||||
pcs/pcs.8 | 2 ++
|
pcs/pcs.8.in | 2 ++
|
||||||
pcs/usage.py | 1 +
|
pcs/usage.py | 1 +
|
||||||
pcsd/public/css/style.css | 3 +++
|
pcsd/public/css/style.css | 3 +++
|
||||||
3 files changed, 6 insertions(+)
|
3 files changed, 6 insertions(+)
|
||||||
|
|
||||||
diff --git a/pcs/pcs.8 b/pcs/pcs.8
|
diff --git a/pcs/pcs.8.in b/pcs/pcs.8.in
|
||||||
index edfdd039..8caf087f 100644
|
index ac093d69..47ad57d6 100644
|
||||||
--- a/pcs/pcs.8
|
--- a/pcs/pcs.8.in
|
||||||
+++ b/pcs/pcs.8
|
+++ b/pcs/pcs.8.in
|
||||||
@@ -424,6 +424,8 @@ By default, encryption is enabled with cipher=aes256 and hash=sha256. To disable
|
@@ -429,6 +429,8 @@ By default, encryption is enabled with cipher=aes256 and hash=sha256. To disable
|
||||||
|
|
||||||
Transports udp and udpu:
|
Transports udp and udpu:
|
||||||
.br
|
.br
|
||||||
@ -23,10 +23,10 @@ index edfdd039..8caf087f 100644
|
|||||||
.br
|
.br
|
||||||
Transport options are: ip_version, netmtu
|
Transport options are: ip_version, netmtu
|
||||||
diff --git a/pcs/usage.py b/pcs/usage.py
|
diff --git a/pcs/usage.py b/pcs/usage.py
|
||||||
index baedb347..f576eaf2 100644
|
index 38e21ed9..96e304ff 100644
|
||||||
--- a/pcs/usage.py
|
--- a/pcs/usage.py
|
||||||
+++ b/pcs/usage.py
|
+++ b/pcs/usage.py
|
||||||
@@ -852,6 +852,7 @@ Commands:
|
@@ -872,6 +872,7 @@ Commands:
|
||||||
hash=sha256. To disable encryption, set cipher=none and hash=none.
|
hash=sha256. To disable encryption, set cipher=none and hash=none.
|
||||||
|
|
||||||
Transports udp and udpu:
|
Transports udp and udpu:
|
||||||
@ -35,7 +35,7 @@ index baedb347..f576eaf2 100644
|
|||||||
support traffic encryption nor compression.
|
support traffic encryption nor compression.
|
||||||
Transport options are:
|
Transport options are:
|
||||||
diff --git a/pcsd/public/css/style.css b/pcsd/public/css/style.css
|
diff --git a/pcsd/public/css/style.css b/pcsd/public/css/style.css
|
||||||
index b857cbae..b8d48d92 100644
|
index 2f26e831..a7702ac4 100644
|
||||||
--- a/pcsd/public/css/style.css
|
--- a/pcsd/public/css/style.css
|
||||||
+++ b/pcsd/public/css/style.css
|
+++ b/pcsd/public/css/style.css
|
||||||
@@ -949,6 +949,9 @@ table.args-table td.reg {
|
@@ -949,6 +949,9 @@ table.args-table td.reg {
|
||||||
@ -49,5 +49,5 @@ index b857cbae..b8d48d92 100644
|
|||||||
#csetup-transport-options.knet .without-knet
|
#csetup-transport-options.knet .without-knet
|
||||||
{
|
{
|
||||||
--
|
--
|
||||||
2.26.2
|
2.31.1
|
||||||
|
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
---
|
|
||||||
BUNDLE_FROZEN: '1'
|
|
||||||
BUNDLE_PATH: vendor/bundle
|
|
||||||
BUNDLE_DISABLE_SHARED_GEMS: '1'
|
|
||||||
BUNDLE_BUILD: --with-ldflags="-Wl,-z,now -Wl,-z,relro"
|
|
316
SPECS/pcs.spec
316
SPECS/pcs.spec
@ -1,6 +1,6 @@
|
|||||||
Name: pcs
|
Name: pcs
|
||||||
Version: 0.10.8
|
Version: 0.10.10
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
# https://docs.fedoraproject.org/en-US/packaging-guidelines/LicensingGuidelines/
|
# https://docs.fedoraproject.org/en-US/packaging-guidelines/LicensingGuidelines/
|
||||||
# https://fedoraproject.org/wiki/Licensing:Main?rd=Licensing#Good_Licenses
|
# https://fedoraproject.org/wiki/Licensing:Main?rd=Licensing#Good_Licenses
|
||||||
# GPLv2: pcs
|
# GPLv2: pcs
|
||||||
@ -20,13 +20,13 @@ Summary: Pacemaker Configuration System
|
|||||||
ExclusiveArch: i686 x86_64 s390x ppc64le aarch64
|
ExclusiveArch: i686 x86_64 s390x ppc64le aarch64
|
||||||
|
|
||||||
%global version_or_commit %{version}
|
%global version_or_commit %{version}
|
||||||
# %%global version_or_commit 508b3999eb02b4901e83b8e780af8422b522ad30
|
# %%global version_or_commit %%{version}.210-9862
|
||||||
|
|
||||||
%global pcs_source_name %{name}-%{version_or_commit}
|
%global pcs_source_name %{name}-%{version_or_commit}
|
||||||
|
|
||||||
# ui_commit can be determined by hash, tag or branch
|
# ui_commit can be determined by hash, tag or branch
|
||||||
%global ui_commit 0.1.5
|
%global ui_commit 0.1.7
|
||||||
%global ui_modules_version 0.1.5
|
%global ui_modules_version 0.1.7
|
||||||
%global ui_src_name pcs-web-ui-%{ui_commit}
|
%global ui_src_name pcs-web-ui-%{ui_commit}
|
||||||
|
|
||||||
%global pcs_snmp_pkg_name pcs-snmp
|
%global pcs_snmp_pkg_name pcs-snmp
|
||||||
@ -47,6 +47,7 @@ ExclusiveArch: i686 x86_64 s390x ppc64le aarch64
|
|||||||
%global version_rubygem_rack 2.2.3
|
%global version_rubygem_rack 2.2.3
|
||||||
%global version_rubygem_rack_protection 2.0.8.1
|
%global version_rubygem_rack_protection 2.0.8.1
|
||||||
%global version_rubygem_rack_test 1.1.0
|
%global version_rubygem_rack_test 1.1.0
|
||||||
|
%global version_rubygem_rexml 3.2.5
|
||||||
%global version_rubygem_ruby2_keywords 0.0.2
|
%global version_rubygem_ruby2_keywords 0.0.2
|
||||||
%global version_rubygem_sinatra 2.0.8.1
|
%global version_rubygem_sinatra 2.0.8.1
|
||||||
%global version_rubygem_thin 1.7.2
|
%global version_rubygem_thin 1.7.2
|
||||||
@ -55,20 +56,13 @@ ExclusiveArch: i686 x86_64 s390x ppc64le aarch64
|
|||||||
# javascript bundled libraries for old web-ui
|
# javascript bundled libraries for old web-ui
|
||||||
%global ember_version 1.4.0
|
%global ember_version 1.4.0
|
||||||
%global handlebars_version 1.2.1
|
%global handlebars_version 1.2.1
|
||||||
%global jquery_ui_version 1.10.1
|
%global jquery_ui_version 1.12.1
|
||||||
%global jquery_version 1.9.1
|
%global jquery_version 3.6.0
|
||||||
|
|
||||||
# We do not use _libdir macro because upstream is not prepared for it.
|
%global pcs_bundled_dir pcs_bundled
|
||||||
# Pcs does not include binaries and thus it should live in /usr/lib. Tornado
|
|
||||||
# and gems include binaries and thus it should live in /usr/lib64. But the
|
|
||||||
# path to tornado/gems is hardcoded in pcs sources. Modify hard links in pcs
|
|
||||||
# sources is not the way since then rpmdiff complains that the same file has
|
|
||||||
# different content in different architectures.
|
|
||||||
%global pcs_libdir %{_prefix}/lib
|
|
||||||
%global bundled_src_dir pcs/bundled
|
|
||||||
%global pcsd_public_dir pcsd/public
|
%global pcsd_public_dir pcsd/public
|
||||||
%global rubygem_cache_dir pcsd/vendor/cache
|
%global rubygem_bundle_dir pcsd/vendor/bundle
|
||||||
%global rubygem_bundle_dir pcsd/vendor/bundle/ruby
|
%global rubygem_cache_dir %{rubygem_bundle_dir}/cache
|
||||||
|
|
||||||
# mangling shebang in /usr/lib/pcsd/vendor/bundle/ruby/gems/rack-2.0.5/test/cgi/test from /usr/bin/env ruby to #!/usr/bin/ruby
|
# mangling shebang in /usr/lib/pcsd/vendor/bundle/ruby/gems/rack-2.0.5/test/cgi/test from /usr/bin/env ruby to #!/usr/bin/ruby
|
||||||
#*** ERROR: ./usr/lib/pcsd/vendor/bundle/ruby/gems/rack-2.0.5/test/cgi/test.ru has shebang which doesn't start with '/' (../../bin/rackup)
|
#*** ERROR: ./usr/lib/pcsd/vendor/bundle/ruby/gems/rack-2.0.5/test/cgi/test.ru has shebang which doesn't start with '/' (../../bin/rackup)
|
||||||
@ -87,7 +81,6 @@ ExclusiveArch: i686 x86_64 s390x ppc64le aarch64
|
|||||||
|
|
||||||
Source0: %{url}/archive/%{version_or_commit}/%{pcs_source_name}.tar.gz
|
Source0: %{url}/archive/%{version_or_commit}/%{pcs_source_name}.tar.gz
|
||||||
Source1: HAM-logo.png
|
Source1: HAM-logo.png
|
||||||
Source2: pcsd-bundle-config-2
|
|
||||||
|
|
||||||
Source41: https://github.com/ondrejmular/pyagentx/archive/v%{pyagentx_version}/pyagentx-%{pyagentx_version}.tar.gz
|
Source41: https://github.com/ondrejmular/pyagentx/archive/v%{pyagentx_version}/pyagentx-%{pyagentx_version}.tar.gz
|
||||||
Source42: https://github.com/tornadoweb/tornado/archive/v%{tornado_version}/tornado-%{tornado_version}.tar.gz
|
Source42: https://github.com/tornadoweb/tornado/archive/v%{tornado_version}/tornado-%{tornado_version}.tar.gz
|
||||||
@ -99,6 +92,7 @@ Source81: https://rubygems.org/downloads/backports-%{version_rubygem_backports}.
|
|||||||
Source82: https://rubygems.org/downloads/ethon-%{version_rubygem_ethon}.gem
|
Source82: https://rubygems.org/downloads/ethon-%{version_rubygem_ethon}.gem
|
||||||
Source83: https://rubygems.org/downloads/ffi-%{version_rubygem_ffi}.gem
|
Source83: https://rubygems.org/downloads/ffi-%{version_rubygem_ffi}.gem
|
||||||
Source84: https://rubygems.org/downloads/json-%{version_rubygem_json}.gem
|
Source84: https://rubygems.org/downloads/json-%{version_rubygem_json}.gem
|
||||||
|
Source85: https://rubygems.org/downloads/rexml-%{version_rubygem_rexml}.gem
|
||||||
Source86: https://rubygems.org/downloads/mustermann-%{version_rubygem_mustermann}.gem
|
Source86: https://rubygems.org/downloads/mustermann-%{version_rubygem_mustermann}.gem
|
||||||
# We needed to re-upload open4 rubygem because of issues with sources in gating.
|
# We needed to re-upload open4 rubygem because of issues with sources in gating.
|
||||||
# Unfortunately, there was no newer version available, therefore we had to
|
# Unfortunately, there was no newer version available, therefore we had to
|
||||||
@ -114,14 +108,15 @@ Source94: https://rubygems.org/downloads/daemons-%{version_rubygem_daemons}.gem
|
|||||||
Source95: https://rubygems.org/downloads/thin-%{version_rubygem_thin}.gem
|
Source95: https://rubygems.org/downloads/thin-%{version_rubygem_thin}.gem
|
||||||
Source96: https://rubygems.org/downloads/ruby2_keywords-%{version_rubygem_ruby2_keywords}.gem
|
Source96: https://rubygems.org/downloads/ruby2_keywords-%{version_rubygem_ruby2_keywords}.gem
|
||||||
|
|
||||||
Source100: https://github.com/idevat/pcs-web-ui/archive/%{ui_commit}/%{ui_src_name}.tar.gz
|
Source100: https://github.com/ClusterLabs/pcs-web-ui/archive/%{ui_commit}/%{ui_src_name}.tar.gz
|
||||||
Source101: https://github.com/idevat/pcs-web-ui/releases/download/%{ui_modules_version}/pcs-web-ui-node-modules-%{ui_modules_version}.tar.xz
|
Source101: https://github.com/ClusterLabs/pcs-web-ui/releases/download/%{ui_modules_version}/pcs-web-ui-node-modules-%{ui_modules_version}.tar.xz
|
||||||
|
|
||||||
# Patches from upstream.
|
# Patches from upstream.
|
||||||
# They should come before downstream patches to avoid unnecessary conflicts.
|
# They should come before downstream patches to avoid unnecessary conflicts.
|
||||||
# Z-streams are exception here: they can come from upstream but should be
|
# Z-streams are exception here: they can come from upstream but should be
|
||||||
# applied at the end to keep z-stream changes as straightforward as possible.
|
# applied at the end to keep z-stream changes as straightforward as possible.
|
||||||
# Patch1: bzNUMBER-01-name.patch
|
# Patch1: bzNUMBER-01-name.patch
|
||||||
|
Patch1: bz1998454-01-fix-creating-resources-with-depth-operation-attribut.patch
|
||||||
|
|
||||||
# Downstream patches do not come from upstream. They adapt pcs for specific
|
# Downstream patches do not come from upstream. They adapt pcs for specific
|
||||||
# RHEL needs.
|
# RHEL needs.
|
||||||
@ -136,7 +131,12 @@ BuildRequires: platform-python
|
|||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: platform-python-setuptools
|
BuildRequires: platform-python-setuptools
|
||||||
BuildRequires: python3-pycurl
|
BuildRequires: python3-pycurl
|
||||||
|
BuildRequires: python3-pip
|
||||||
BuildRequires: python3-pyparsing
|
BuildRequires: python3-pyparsing
|
||||||
|
BuildRequires: python3-cryptography
|
||||||
|
BuildRequires: python3-lxml
|
||||||
|
# for building bundled python packages
|
||||||
|
BuildRequires: python3-wheel
|
||||||
# for bundled python dateutil
|
# for bundled python dateutil
|
||||||
BuildRequires: python3-setuptools_scm
|
BuildRequires: python3-setuptools_scm
|
||||||
# gcc for compiling custom rubygems
|
# gcc for compiling custom rubygems
|
||||||
@ -146,15 +146,13 @@ BuildRequires: gcc-c++
|
|||||||
BuildRequires: ruby >= 2.2.0
|
BuildRequires: ruby >= 2.2.0
|
||||||
BuildRequires: ruby-devel
|
BuildRequires: ruby-devel
|
||||||
BuildRequires: rubygems
|
BuildRequires: rubygems
|
||||||
|
BuildRequires: rubygem-bundler
|
||||||
# ruby libraries for tests
|
# ruby libraries for tests
|
||||||
BuildRequires: rubygem-test-unit
|
BuildRequires: rubygem-test-unit
|
||||||
# for touching patch files (sanitization function)
|
# for touching patch files (sanitization function)
|
||||||
BuildRequires: diffstat
|
BuildRequires: diffstat
|
||||||
# for post, preun and postun macros
|
# for post, preun and postun macros
|
||||||
BuildRequires: systemd
|
BuildRequires: systemd
|
||||||
# for tests
|
|
||||||
BuildRequires: python3-lxml
|
|
||||||
BuildRequires: python3-pyOpenSSL
|
|
||||||
# pcsd fonts and font management tools for creating symlinks to fonts
|
# pcsd fonts and font management tools for creating symlinks to fonts
|
||||||
BuildRequires: fontconfig
|
BuildRequires: fontconfig
|
||||||
BuildRequires: liberation-sans-fonts
|
BuildRequires: liberation-sans-fonts
|
||||||
@ -166,6 +164,15 @@ BuildRequires: redhat-logos
|
|||||||
# for building web ui
|
# for building web ui
|
||||||
BuildRequires: npm
|
BuildRequires: npm
|
||||||
|
|
||||||
|
# cluster stack packages for pkg-config
|
||||||
|
BuildRequires: booth
|
||||||
|
BuildRequires: corosync-qdevice-devel
|
||||||
|
BuildRequires: corosynclib-devel >= 3.0
|
||||||
|
BuildRequires: fence-agents-common
|
||||||
|
BuildRequires: pacemaker-libs-devel >= 2.0.0
|
||||||
|
BuildRequires: resource-agents
|
||||||
|
BuildRequires: sbd
|
||||||
|
|
||||||
# python and libraries for pcs, setuptools for pcs entrypoint
|
# python and libraries for pcs, setuptools for pcs entrypoint
|
||||||
Requires: platform-python
|
Requires: platform-python
|
||||||
Requires: python3-lxml
|
Requires: python3-lxml
|
||||||
@ -173,14 +180,12 @@ Requires: platform-python-setuptools
|
|||||||
Requires: python3-clufter => 0.70.0
|
Requires: python3-clufter => 0.70.0
|
||||||
Requires: python3-pycurl
|
Requires: python3-pycurl
|
||||||
Requires: python3-pyparsing
|
Requires: python3-pyparsing
|
||||||
|
Requires: python3-cryptography
|
||||||
# ruby and gems for pcsd
|
# ruby and gems for pcsd
|
||||||
Requires: ruby >= 2.2.0
|
Requires: ruby >= 2.2.0
|
||||||
Requires: rubygems
|
Requires: rubygems
|
||||||
# for killall
|
# for killall
|
||||||
Requires: psmisc
|
Requires: psmisc
|
||||||
# for working with certificates (validation etc.)
|
|
||||||
Requires: openssl
|
|
||||||
Requires: python3-pyOpenSSL
|
|
||||||
# cluster stack and related packages
|
# cluster stack and related packages
|
||||||
Requires: pcmk-cluster-manager >= 2.0.0
|
Requires: pcmk-cluster-manager >= 2.0.0
|
||||||
Suggests: pacemaker
|
Suggests: pacemaker
|
||||||
@ -218,6 +223,7 @@ Provides: bundled(open4) = %{version_rubygem_open4}
|
|||||||
Provides: bundled(rack) = %{version_rubygem_rack}
|
Provides: bundled(rack) = %{version_rubygem_rack}
|
||||||
Provides: bundled(rack_protection) = %{version_rubygem_rack_protection}
|
Provides: bundled(rack_protection) = %{version_rubygem_rack_protection}
|
||||||
Provides: bundled(rack_test) = %{version_rubygem_rack_test}
|
Provides: bundled(rack_test) = %{version_rubygem_rack_test}
|
||||||
|
Provides: bundled(rexml) = %{version_rubygem_rexml}
|
||||||
Provides: bundled(ruby2_keywords) = %{version_rubygem_ruby2_keywords}
|
Provides: bundled(ruby2_keywords) = %{version_rubygem_ruby2_keywords}
|
||||||
Provides: bundled(sinatra) = %{version_rubygem_sinatra}
|
Provides: bundled(sinatra) = %{version_rubygem_sinatra}
|
||||||
Provides: bundled(thin) = %{version_rubygem_thin}
|
Provides: bundled(thin) = %{version_rubygem_thin}
|
||||||
@ -297,10 +303,10 @@ update_times_patch(){
|
|||||||
update_times ${patch_file_name} `diffstat -p1 -l ${patch_file_name}`
|
update_times ${patch_file_name} `diffstat -p1 -l ${patch_file_name}`
|
||||||
}
|
}
|
||||||
|
|
||||||
# update_times_patch %%{PATCH1}
|
update_times_patch %{PATCH1}
|
||||||
update_times_patch %{PATCH101}
|
update_times_patch %{PATCH101}
|
||||||
|
|
||||||
cp -f %SOURCE1 pcsd/public/images
|
cp -f %SOURCE1 %{pcsd_public_dir}/images
|
||||||
# prepare dirs/files necessary for building web ui
|
# prepare dirs/files necessary for building web ui
|
||||||
# inside SOURCE100 is only directory %%{ui_src_name}
|
# inside SOURCE100 is only directory %%{ui_src_name}
|
||||||
tar -xzf %SOURCE100 -C %{pcsd_public_dir}
|
tar -xzf %SOURCE100 -C %{pcsd_public_dir}
|
||||||
@ -308,104 +314,54 @@ tar -xf %SOURCE101 -C %{pcsd_public_dir}/%{ui_src_name}
|
|||||||
|
|
||||||
# prepare dirs/files necessary for building all bundles
|
# prepare dirs/files necessary for building all bundles
|
||||||
# -----------------------------------------------------
|
# -----------------------------------------------------
|
||||||
# 1) configuration for rubygems
|
# 1) rubygems sources
|
||||||
mkdir -p pcsd/.bundle
|
|
||||||
cp -f %SOURCE2 pcsd/.bundle/config
|
|
||||||
|
|
||||||
# 2) rubygems sources
|
mkdir -p %{rubygem_cache_dir}
|
||||||
mkdir -p pcsd/vendor/cache
|
cp -f %SOURCE81 %{rubygem_cache_dir}
|
||||||
cp -f %SOURCE81 pcsd/vendor/cache
|
cp -f %SOURCE82 %{rubygem_cache_dir}
|
||||||
cp -f %SOURCE82 pcsd/vendor/cache
|
cp -f %SOURCE83 %{rubygem_cache_dir}
|
||||||
cp -f %SOURCE83 pcsd/vendor/cache
|
cp -f %SOURCE84 %{rubygem_cache_dir}
|
||||||
cp -f %SOURCE84 pcsd/vendor/cache
|
cp -f %SOURCE85 %{rubygem_cache_dir}
|
||||||
cp -f %SOURCE86 pcsd/vendor/cache
|
cp -f %SOURCE86 %{rubygem_cache_dir}
|
||||||
# For reason why we are renaming open4 rubygem, see comment of source
|
# For reason why we are renaming open4 rubygem, see comment of source
|
||||||
# definition above.
|
# definition above.
|
||||||
cp -f %SOURCE87 pcsd/vendor/cache/open4-%{version_rubygem_open4}.gem
|
cp -f %SOURCE87 %{rubygem_cache_dir}/open4-%{version_rubygem_open4}.gem
|
||||||
cp -f %SOURCE88 pcsd/vendor/cache
|
cp -f %SOURCE88 %{rubygem_cache_dir}
|
||||||
cp -f %SOURCE89 pcsd/vendor/cache
|
cp -f %SOURCE89 %{rubygem_cache_dir}
|
||||||
cp -f %SOURCE90 pcsd/vendor/cache
|
cp -f %SOURCE90 %{rubygem_cache_dir}
|
||||||
cp -f %SOURCE91 pcsd/vendor/cache
|
cp -f %SOURCE91 %{rubygem_cache_dir}
|
||||||
cp -f %SOURCE92 pcsd/vendor/cache
|
cp -f %SOURCE92 %{rubygem_cache_dir}
|
||||||
cp -f %SOURCE93 pcsd/vendor/cache
|
cp -f %SOURCE93 %{rubygem_cache_dir}
|
||||||
cp -f %SOURCE94 pcsd/vendor/cache
|
cp -f %SOURCE94 %{rubygem_cache_dir}
|
||||||
cp -f %SOURCE95 pcsd/vendor/cache
|
cp -f %SOURCE95 %{rubygem_cache_dir}
|
||||||
cp -f %SOURCE96 pcsd/vendor/cache
|
cp -f %SOURCE96 %{rubygem_cache_dir}
|
||||||
|
|
||||||
|
|
||||||
# 3) dir for python bundles
|
# 2) prepare python bundles
|
||||||
mkdir -p %{bundled_src_dir}
|
mkdir -p %{pcs_bundled_dir}/src
|
||||||
|
cp -f %SOURCE41 rpm/
|
||||||
# 4) sources for pyagentx
|
cp -f %SOURCE42 rpm/
|
||||||
tar -xzf %SOURCE41 -C %{bundled_src_dir}
|
cp -f %SOURCE43 rpm/
|
||||||
mv %{bundled_src_dir}/pyagentx-%{pyagentx_version} %{bundled_src_dir}/pyagentx
|
cp -f %SOURCE44 rpm/
|
||||||
update_times %SOURCE41 `find %{bundled_src_dir}/pyagentx -follow`
|
cp -f %SOURCE45 rpm/
|
||||||
cp %{bundled_src_dir}/pyagentx/LICENSE.txt pyagentx_LICENSE.txt
|
|
||||||
cp %{bundled_src_dir}/pyagentx/CONTRIBUTORS.txt pyagentx_CONTRIBUTORS.txt
|
|
||||||
cp %{bundled_src_dir}/pyagentx/README.md pyagentx_README.md
|
|
||||||
|
|
||||||
# 5) sources for tornado
|
|
||||||
tar -xzf %SOURCE42 -C %{bundled_src_dir}
|
|
||||||
mv %{bundled_src_dir}/tornado-%{tornado_version} %{bundled_src_dir}/tornado
|
|
||||||
update_times %SOURCE42 `find %{bundled_src_dir}/tornado -follow`
|
|
||||||
cp %{bundled_src_dir}/tornado/LICENSE tornado_LICENSE
|
|
||||||
cp %{bundled_src_dir}/tornado/README.rst tornado_README.rst
|
|
||||||
|
|
||||||
# 6) sources for python dataclasses
|
|
||||||
tar -xzf %SOURCE43 -C %{bundled_src_dir}
|
|
||||||
mv %{bundled_src_dir}/dataclasses-%{dataclasses_version} %{bundled_src_dir}/dataclasses
|
|
||||||
update_times %SOURCE43 `find %{bundled_src_dir}/dataclasses -follow`
|
|
||||||
cp %{bundled_src_dir}/dataclasses/LICENSE.txt dataclasses_LICENSE.txt
|
|
||||||
cp %{bundled_src_dir}/dataclasses/README.rst dataclasses_README.rst
|
|
||||||
|
|
||||||
# 7) sources for python dacite
|
|
||||||
tar -xzf %SOURCE44 -C %{bundled_src_dir}
|
|
||||||
mv %{bundled_src_dir}/dacite-%{dacite_version} %{bundled_src_dir}/dacite
|
|
||||||
update_times %SOURCE44 `find %{bundled_src_dir}/dacite -follow`
|
|
||||||
cp %{bundled_src_dir}/dacite/LICENSE dacite_LICENSE
|
|
||||||
cp %{bundled_src_dir}/dacite/README.md dacite_README.md
|
|
||||||
|
|
||||||
# 8) sources for python dateutil
|
|
||||||
tar -xzf %SOURCE45 -C %{bundled_src_dir}
|
|
||||||
mv %{bundled_src_dir}/python-dateutil-%{dateutil_version} %{bundled_src_dir}/python-dateutil
|
|
||||||
update_times %SOURCE45 `find %{bundled_src_dir}/python-dateutil -follow`
|
|
||||||
cp %{bundled_src_dir}/python-dateutil/LICENSE dateutil_LICENSE
|
|
||||||
cp %{bundled_src_dir}/python-dateutil/README.rst dateutil_README.rst
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%define debug_package %{nil}
|
%define debug_package %{nil}
|
||||||
|
|
||||||
|
./autogen.sh
|
||||||
|
%{configure} --enable-local-build --enable-use-local-cache-only --enable-individual-bundling PYTHON=%{__python3}
|
||||||
|
make all
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
pwd
|
pwd
|
||||||
|
|
||||||
# build bundled rubygems (in main install it is disabled by BUILD_GEMS=false)
|
%make_install
|
||||||
mkdir -p %{rubygem_bundle_dir}
|
|
||||||
# The '-g' cflags option is needed for generation of MiniDebugInfo for shared
|
# build web ui and put it to pcsd
|
||||||
# libraries from rubygem extensions
|
make -C %{pcsd_public_dir}/%{ui_src_name} build
|
||||||
# Currently used rubygems with extensions: eventmachine, ffi, json, thin
|
mv %{pcsd_public_dir}/%{ui_src_name}/build ${RPM_BUILD_ROOT}%{_libdir}/%{pcsd_public_dir}/ui
|
||||||
# There was rpmdiff issue with missing .gnu_debugdata section
|
rm -r %{pcsd_public_dir}/%{ui_src_name}
|
||||||
# see https://docs.engineering.redhat.com/display/HTD/rpmdiff-elf-stripping
|
|
||||||
gem install \
|
|
||||||
--force --verbose --no-rdoc --no-ri -l --no-user-install \
|
|
||||||
-i %{rubygem_bundle_dir} \
|
|
||||||
%{rubygem_cache_dir}/backports-%{version_rubygem_backports}.gem \
|
|
||||||
%{rubygem_cache_dir}/daemons-%{version_rubygem_daemons}.gem \
|
|
||||||
%{rubygem_cache_dir}/ethon-%{version_rubygem_ethon}.gem \
|
|
||||||
%{rubygem_cache_dir}/eventmachine-%{version_rubygem_eventmachine}.gem \
|
|
||||||
%{rubygem_cache_dir}/ffi-%{version_rubygem_ffi}.gem \
|
|
||||||
%{rubygem_cache_dir}/json-%{version_rubygem_json}.gem \
|
|
||||||
%{rubygem_cache_dir}/mustermann-%{version_rubygem_mustermann}.gem \
|
|
||||||
%{rubygem_cache_dir}/open4-%{version_rubygem_open4}.gem \
|
|
||||||
%{rubygem_cache_dir}/rack-protection-%{version_rubygem_rack_protection}.gem \
|
|
||||||
%{rubygem_cache_dir}/rack-test-%{version_rubygem_rack_test}.gem \
|
|
||||||
%{rubygem_cache_dir}/rack-%{version_rubygem_rack}.gem \
|
|
||||||
%{rubygem_cache_dir}/ruby2_keywords-%{version_rubygem_ruby2_keywords}.gem \
|
|
||||||
%{rubygem_cache_dir}/sinatra-%{version_rubygem_sinatra}.gem \
|
|
||||||
%{rubygem_cache_dir}/thin-%{version_rubygem_thin}.gem \
|
|
||||||
%{rubygem_cache_dir}/tilt-%{version_rubygem_tilt}.gem \
|
|
||||||
-- '--with-ldflags="-Wl,-z,relro -Wl,-z,ibt -Wl,-z,now -Wl,--gc-sections"' \
|
|
||||||
'--with-cflags="-g -O2 -ffunction-sections"'
|
|
||||||
|
|
||||||
# prepare license files
|
# prepare license files
|
||||||
# some rubygems do not have a license file (ruby2_keywords, thin)
|
# some rubygems do not have a license file (ruby2_keywords, thin)
|
||||||
@ -426,36 +382,25 @@ mv %{rubygem_bundle_dir}/gems/rack-test-%{version_rubygem_rack_test}/MIT-LICENSE
|
|||||||
mv %{rubygem_bundle_dir}/gems/sinatra-%{version_rubygem_sinatra}/LICENSE sinatra_LICENSE
|
mv %{rubygem_bundle_dir}/gems/sinatra-%{version_rubygem_sinatra}/LICENSE sinatra_LICENSE
|
||||||
mv %{rubygem_bundle_dir}/gems/tilt-%{version_rubygem_tilt}/COPYING tilt_COPYING
|
mv %{rubygem_bundle_dir}/gems/tilt-%{version_rubygem_tilt}/COPYING tilt_COPYING
|
||||||
|
|
||||||
# build web ui and put it to pcsd
|
|
||||||
make -C %{pcsd_public_dir}/%{ui_src_name} build
|
|
||||||
mv %{pcsd_public_dir}/%{ui_src_name}/build pcsd/public/ui
|
|
||||||
rm -r %{pcsd_public_dir}/%{ui_src_name}
|
|
||||||
|
|
||||||
# main pcs install
|
|
||||||
make install \
|
|
||||||
DESTDIR=$RPM_BUILD_ROOT \
|
|
||||||
PREFIX=%{_prefix} \
|
|
||||||
SYSTEMD_UNIT_DIR=%{_unitdir} \
|
|
||||||
LIB_DIR=%{pcs_libdir} \
|
|
||||||
PYTHON=%{__python3} \
|
|
||||||
PYTHON_SITELIB=%{python3_sitelib} \
|
|
||||||
BASH_COMPLETION_DIR=%{_datadir}/bash-completion/completions \
|
|
||||||
BUNDLE_PYAGENTX_SRC_DIR=`readlink -f %{bundled_src_dir}/pyagentx` \
|
|
||||||
BUNDLE_TORNADO_SRC_DIR=`readlink -f %{bundled_src_dir}/tornado` \
|
|
||||||
BUNDLE_DACITE_SRC_DIR=`readlink -f %{bundled_src_dir}/dacite` \
|
|
||||||
BUNDLE_DATEUTIL_SRC_DIR=`readlink -f %{bundled_src_dir}/python-dateutil` \
|
|
||||||
BUNDLE_DATACLASSES_SRC_DIR=`readlink -f %{bundled_src_dir}/dataclasses` \
|
|
||||||
BUILD_GEMS=false \
|
|
||||||
SYSTEMCTL_OVERRIDE=true \
|
|
||||||
hdrdir="%{_includedir}" \
|
|
||||||
rubyhdrdir="%{_includedir}" \
|
|
||||||
includedir="%{_includedir}"
|
|
||||||
|
|
||||||
# symlink favicon into pcsd directories
|
# symlink favicon into pcsd directories
|
||||||
ln -fs /etc/favicon.png ${RPM_BUILD_ROOT}%{pcs_libdir}/%{pcsd_public_dir}/images/favicon.png
|
ln -fs /etc/favicon.png ${RPM_BUILD_ROOT}%{_libdir}/%{pcsd_public_dir}/images/favicon.png
|
||||||
|
|
||||||
#after the ruby gem compilation we do not need ruby gems in the cache
|
|
||||||
rm -r -v $RPM_BUILD_ROOT%{pcs_libdir}/%{rubygem_cache_dir}
|
cp %{pcs_bundled_dir}/src/pyagentx-*/LICENSE.txt pyagentx_LICENSE.txt
|
||||||
|
cp %{pcs_bundled_dir}/src/pyagentx-*/CONTRIBUTORS.txt pyagentx_CONTRIBUTORS.txt
|
||||||
|
cp %{pcs_bundled_dir}/src/pyagentx-*/README.md pyagentx_README.md
|
||||||
|
|
||||||
|
cp %{pcs_bundled_dir}/src/tornado-*/LICENSE tornado_LICENSE
|
||||||
|
cp %{pcs_bundled_dir}/src/tornado-*/README.rst tornado_README.rst
|
||||||
|
|
||||||
|
cp %{pcs_bundled_dir}/src/dataclasses-*/LICENSE.txt dataclasses_LICENSE.txt
|
||||||
|
cp %{pcs_bundled_dir}/src/dataclasses-*/README.rst dataclasses_README.rst
|
||||||
|
|
||||||
|
cp %{pcs_bundled_dir}/src/dacite-*/LICENSE dacite_LICENSE
|
||||||
|
cp %{pcs_bundled_dir}/src/dacite-*/README.md dacite_README.md
|
||||||
|
|
||||||
|
cp %{pcs_bundled_dir}/src/python-dateutil-*/LICENSE dateutil_LICENSE
|
||||||
|
cp %{pcs_bundled_dir}/src/python-dateutil-*/README.rst dateutil_README.rst
|
||||||
|
|
||||||
# We are not building debug package for pcs but we need to add MiniDebuginfo
|
# We are not building debug package for pcs but we need to add MiniDebuginfo
|
||||||
# to the bundled shared libraries from rubygem extensions in order to satisfy
|
# to the bundled shared libraries from rubygem extensions in order to satisfy
|
||||||
@ -465,14 +410,15 @@ rm -r -v $RPM_BUILD_ROOT%{pcs_libdir}/%{rubygem_cache_dir}
|
|||||||
/usr/lib/rpm/find-debuginfo.sh -j2 -m -i -S debugsourcefiles.list
|
/usr/lib/rpm/find-debuginfo.sh -j2 -m -i -S debugsourcefiles.list
|
||||||
# find-debuginfo.sh generated some files into /usr/lib/debug and
|
# find-debuginfo.sh generated some files into /usr/lib/debug and
|
||||||
# /usr/src/debug/ that we don't want in the package
|
# /usr/src/debug/ that we don't want in the package
|
||||||
rm -rf $RPM_BUILD_ROOT%{pcs_libdir}/debug
|
rm -rf $RPM_BUILD_ROOT%{_libdir}/debug
|
||||||
|
rm -rf $RPM_BUILD_ROOT/usr/lib/debug
|
||||||
rm -rf $RPM_BUILD_ROOT%{_prefix}/src/debug
|
rm -rf $RPM_BUILD_ROOT%{_prefix}/src/debug
|
||||||
|
|
||||||
# We can remove files required for gem compilation
|
# We can remove files required for gem compilation
|
||||||
rm -rf $RPM_BUILD_ROOT%{pcs_libdir}/%{rubygem_bundle_dir}/gems/eventmachine-%{version_rubygem_eventmachine}/ext
|
rm -rf $RPM_BUILD_ROOT%{_libdir}/%{rubygem_bundle_dir}/gems/eventmachine-%{version_rubygem_eventmachine}/ext
|
||||||
rm -rf $RPM_BUILD_ROOT%{pcs_libdir}/%{rubygem_bundle_dir}/gems/ffi-%{version_rubygem_ffi}/ext
|
rm -rf $RPM_BUILD_ROOT%{_libdir}/%{rubygem_bundle_dir}/gems/ffi-%{version_rubygem_ffi}/ext
|
||||||
rm -rf $RPM_BUILD_ROOT%{pcs_libdir}/%{rubygem_bundle_dir}/gems/json-%{version_rubygem_json}/ext
|
rm -rf $RPM_BUILD_ROOT%{_libdir}/%{rubygem_bundle_dir}/gems/json-%{version_rubygem_json}/ext
|
||||||
rm -rf $RPM_BUILD_ROOT%{pcs_libdir}/%{rubygem_bundle_dir}/gems/thin-%{version_rubygem_thin}/ext
|
rm -rf $RPM_BUILD_ROOT%{_libdir}/%{rubygem_bundle_dir}/gems/thin-%{version_rubygem_thin}/ext
|
||||||
|
|
||||||
%check
|
%check
|
||||||
# In the building environment LC_CTYPE is set to C which causes tests to fail
|
# In the building environment LC_CTYPE is set to C which causes tests to fail
|
||||||
@ -495,8 +441,7 @@ run_all_tests(){
|
|||||||
# passing outside the mock environment.
|
# passing outside the mock environment.
|
||||||
# TODO: Investigate the issue
|
# TODO: Investigate the issue
|
||||||
|
|
||||||
BUNDLED_LIB_LOCATION=$RPM_BUILD_ROOT%{pcs_libdir}/pcs/bundled/packages \
|
%{__python3} pcs_test/suite --tier0 -v --vanilla --all-but \
|
||||||
%{__python3} pcs_test/suite.py --tier0 -v --vanilla --all-but \
|
|
||||||
pcs_test.tier0.lib.commands.test_resource_agent.DescribeAgentUtf8.test_describe \
|
pcs_test.tier0.lib.commands.test_resource_agent.DescribeAgentUtf8.test_describe \
|
||||||
pcs_test.tier0.daemon.app.test_app_remote.SyncConfigMutualExclusive.test_get_not_locked \
|
pcs_test.tier0.daemon.app.test_app_remote.SyncConfigMutualExclusive.test_get_not_locked \
|
||||||
pcs_test.tier0.daemon.app.test_app_remote.SyncConfigMutualExclusive.test_post_not_locked \
|
pcs_test.tier0.daemon.app.test_app_remote.SyncConfigMutualExclusive.test_post_not_locked \
|
||||||
@ -504,11 +449,10 @@ run_all_tests(){
|
|||||||
test_result_python=$?
|
test_result_python=$?
|
||||||
|
|
||||||
#run pcsd tests and remove them
|
#run pcsd tests and remove them
|
||||||
pcsd_dir=$RPM_BUILD_ROOT%{pcs_libdir}/pcsd
|
GEM_HOME=$RPM_BUILD_ROOT%{_libdir}/%{rubygem_bundle_dir} ruby \
|
||||||
GEM_HOME=$RPM_BUILD_ROOT%{pcs_libdir}/%{rubygem_bundle_dir} ruby \
|
-I$RPM_BUILD_ROOT%{_libdir}/pcsd \
|
||||||
-I${pcsd_dir} \
|
-Ipcsd/test \
|
||||||
-I${pcsd_dir}/test \
|
pcsd/test/test_all_suite.rb
|
||||||
${pcsd_dir}/test/test_all_suite.rb
|
|
||||||
test_result_ruby=$?
|
test_result_ruby=$?
|
||||||
|
|
||||||
if [ $test_result_python -ne 0 ]; then
|
if [ $test_result_python -ne 0 ]; then
|
||||||
@ -518,12 +462,8 @@ run_all_tests(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
remove_all_tests() {
|
remove_all_tests() {
|
||||||
pcsd_dir=$RPM_BUILD_ROOT%{pcs_libdir}/pcsd
|
|
||||||
#remove pcsd tests, we do not distribute them in the rpm
|
|
||||||
rm -r -v ${pcsd_dir}/test
|
|
||||||
|
|
||||||
# remove javascript testing files
|
# remove javascript testing files
|
||||||
rm -r -v ${pcsd_dir}/public/js/dev
|
rm -r -v $RPM_BUILD_ROOT%{_libdir}/%{pcsd_public_dir}/js/dev
|
||||||
}
|
}
|
||||||
|
|
||||||
run_all_tests
|
run_all_tests
|
||||||
@ -587,19 +527,11 @@ remove_all_tests
|
|||||||
%license rack-test_MIT-LICENSE.txt
|
%license rack-test_MIT-LICENSE.txt
|
||||||
%license sinatra_LICENSE
|
%license sinatra_LICENSE
|
||||||
%license tilt_COPYING
|
%license tilt_COPYING
|
||||||
%{python3_sitelib}/pcs
|
%{python3_sitelib}/*
|
||||||
%{python3_sitelib}/pcs-%{version}-py3.*.egg-info
|
|
||||||
%{_sbindir}/pcs
|
%{_sbindir}/pcs
|
||||||
%{_sbindir}/pcsd
|
%{_sbindir}/pcsd
|
||||||
%{pcs_libdir}/pcs/pcs_internal
|
%{_libdir}/pcs/*
|
||||||
%{pcs_libdir}/pcsd/*
|
%{_libdir}/pcsd/*
|
||||||
%{pcs_libdir}/pcsd/.bundle/config
|
|
||||||
%{pcs_libdir}/pcs/bundled/packages/tornado*
|
|
||||||
%{pcs_libdir}/pcs/bundled/packages/dacite*
|
|
||||||
%{pcs_libdir}/pcs/bundled/packages/dataclasses*
|
|
||||||
%{pcs_libdir}/pcs/bundled/packages/dateutil*
|
|
||||||
%{pcs_libdir}/pcs/bundled/packages/python_dateutil*
|
|
||||||
%{pcs_libdir}/pcs/bundled/packages/__pycache__/dataclasses.cpython-36.pyc
|
|
||||||
%{_unitdir}/pcsd.service
|
%{_unitdir}/pcsd.service
|
||||||
%{_unitdir}/pcsd-ruby.service
|
%{_unitdir}/pcsd-ruby.service
|
||||||
%{_datadir}/bash-completion/completions/pcs
|
%{_datadir}/bash-completion/completions/pcs
|
||||||
@ -617,22 +549,13 @@ remove_all_tests
|
|||||||
%ghost %config(noreplace) %attr(0644,root,root) %{_sharedstatedir}/pcsd/pcs_users.conf
|
%ghost %config(noreplace) %attr(0644,root,root) %{_sharedstatedir}/pcsd/pcs_users.conf
|
||||||
%{_mandir}/man8/pcs.*
|
%{_mandir}/man8/pcs.*
|
||||||
%{_mandir}/man8/pcsd.*
|
%{_mandir}/man8/pcsd.*
|
||||||
%exclude %{pcs_libdir}/pcsd/*.debian
|
%exclude %{_libdir}/pcs/pcs_snmp_agent
|
||||||
%exclude %{pcs_libdir}/pcsd/pcsd.service
|
%exclude %{_libdir}/pcs/%{pcs_bundled_dir}/packages/pyagentx*
|
||||||
%exclude %{pcs_libdir}/pcsd/pcsd-ruby.service
|
|
||||||
%exclude %{pcs_libdir}/pcsd/pcsd.conf
|
|
||||||
%exclude %{pcs_libdir}/pcsd/pcsd.8
|
|
||||||
%exclude %{pcs_libdir}/pcsd/public/js/dev/*
|
|
||||||
%exclude %{pcs_libdir}/pcsd/Gemfile
|
|
||||||
%exclude %{pcs_libdir}/pcsd/Gemfile.lock
|
|
||||||
%exclude %{pcs_libdir}/pcsd/Makefile
|
|
||||||
%exclude %{python3_sitelib}/pcs/bash_completion
|
|
||||||
%exclude %{python3_sitelib}/pcs/pcs.8
|
|
||||||
%exclude %{python3_sitelib}/pcs/pcs
|
|
||||||
|
|
||||||
%files -n %{pcs_snmp_pkg_name}
|
%files -n %{pcs_snmp_pkg_name}
|
||||||
%{pcs_libdir}/pcs/pcs_snmp_agent
|
%{_libdir}/pcs/pcs_snmp_agent
|
||||||
%{pcs_libdir}/pcs/bundled/packages/pyagentx*
|
%{_libdir}/pcs/%{pcs_bundled_dir}/packages/pyagentx*
|
||||||
%{_unitdir}/pcs_snmp_agent.service
|
%{_unitdir}/pcs_snmp_agent.service
|
||||||
%{_datadir}/snmp/mibs/PCMK-PCS*-MIB.txt
|
%{_datadir}/snmp/mibs/PCMK-PCS*-MIB.txt
|
||||||
%{_mandir}/man8/pcs_snmp_agent.*
|
%{_mandir}/man8/pcs_snmp_agent.*
|
||||||
@ -644,6 +567,33 @@ remove_all_tests
|
|||||||
%license pyagentx_LICENSE.txt
|
%license pyagentx_LICENSE.txt
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Aug 27 2021 Miroslav Lisik <mlisik@redhat.com> - 0.10.10-2
|
||||||
|
- Fixed create resources with depth operation attribute
|
||||||
|
- Resolves: rhbz#1998454
|
||||||
|
|
||||||
|
* Thu Aug 19 2021 Ondrej Mular <omular@redhat.com> - 0.10.10-1
|
||||||
|
- Rebased to latest upstream sources (see CHANGELOG.md)
|
||||||
|
- Updated pcs-web-ui
|
||||||
|
- Resolves: rhbz#1885293 rhbz#1847102 rhbz#1935594
|
||||||
|
|
||||||
|
* Tue Aug 10 2021 Miroslav Lisik <mlisik@redhat.com> - 0.10.9-1
|
||||||
|
- Rebased to latest upstream sources (see CHANGELOG.md)
|
||||||
|
- Resolves: rhbz#1432097 rhbz#1847102 rhbz#1935594 rhbz#1984901
|
||||||
|
|
||||||
|
* Tue Jul 20 2021 Miroslav Lisik <mlisik@redhat.com> - 0.10.8-4
|
||||||
|
- Rebased to latest upstream sources (see CHANGELOG.md)
|
||||||
|
- Resolves: rhbz#1759995 rhbz#1872378 rhbz#1935594
|
||||||
|
|
||||||
|
* Thu Jul 08 2021 Miroslav Lisik <mlisik@redhat.com> - 0.10.8-3
|
||||||
|
- Rebased to latest upstream sources (see CHANGELOG.md)
|
||||||
|
- Gating changes
|
||||||
|
- Resolves: rhbz#1678273 rhbz#1690419 rhbz#1750240 rhbz#1759995 rhbz#1872378 rhbz#1909901 rhbz#1935594
|
||||||
|
|
||||||
|
* Thu Jun 10 2021 Miroslav Lisik <mlisik@redhat.com> - 0.10.8-2
|
||||||
|
- Rebased to latest upstream sources (see CHANGELOG.md)
|
||||||
|
- Updated pcs-web-ui
|
||||||
|
- Resolves: rhbz#1285269 rhbz#1290830 rhbz#1720221 rhbz#1841019 rhbz#1854238 rhbz#1882291 rhbz#1885302 rhbz#1886342 rhbz#1896458 rhbz#1922996 rhbz#1927384 rhbz#1927394 rhbz#1930886 rhbz#1935594
|
||||||
|
|
||||||
* Mon Feb 01 2021 Miroslav Lisik <mlisik@redhat.com> - 0.10.8-1
|
* Mon Feb 01 2021 Miroslav Lisik <mlisik@redhat.com> - 0.10.8-1
|
||||||
- Rebased to latest upstream sources (see CHANGELOG.md)
|
- Rebased to latest upstream sources (see CHANGELOG.md)
|
||||||
- Updated pcs-web-ui
|
- Updated pcs-web-ui
|
||||||
|
Loading…
Reference in New Issue
Block a user