50c00a
Name: pcs
50c00a
Version: 0.10.1
561fa3
Release: 4%{?dist}.4
50c00a
# https://fedoraproject.org/wiki/Licensing:Main?rd=Licensing#Good_Licenses
50c00a
# GPLv2: pcs
50c00a
# ASL 2.0: tornado
50c00a
# MIT: handlebars
50c00a
License: GPLv2 and ASL 2.0 and MIT
50c00a
URL: https://github.com/ClusterLabs/pcs
50c00a
Group: System Environment/Base
50c00a
Summary: Pacemaker Configuration System
50c00a
#building only for architectures with pacemaker and corosync available
78d7e0
ExclusiveArch: i686 x86_64 s390x ppc64le aarch64 %{arm}
50c00a
50c00a
50c00a
%global pcs_snmp_pkg_name  pcs-snmp
50c00a
50c00a
%global pyagentx_version   0.4.pcs.2
50c00a
%global tornado_version    5.0.2
50c00a
%global version_rubygem_backports  3.11.4
50c00a
%global version_rubygem_ethon  0.11.0
50c00a
%global version_rubygem_ffi  1.9.25
50c00a
%global version_rubygem_json  2.1.0
50c00a
%global version_rubygem_multi_json  1.13.1
50c00a
%global version_rubygem_mustermann  1.0.3
50c00a
%global version_rubygem_open4  1.3.4
50c00a
%global version_rubygem_rack  2.0.6
50c00a
%global version_rubygem_rack_protection  2.0.4
50c00a
%global version_rubygem_rack_test  1.0.0
50c00a
%global version_rubygem_sinatra  2.0.4
50c00a
%global version_rubygem_tilt  2.0.8
50c00a
50c00a
# We do not use _libdir macro because upstream is not prepared for it.
50c00a
# Pcs does not include binaries and thus it should live in /usr/lib. Tornado
50c00a
# and gems include binaries and thus it should live in /usr/lib64. But the
50c00a
# path to tornado/gems is hardcoded in pcs sources. Modify hard links in pcs
50c00a
# sources is not the way since then rpmdiff complains that the same file has
50c00a
# different content in different architectures.
50c00a
%global pcs_libdir %{_prefix}/lib
50c00a
%global bundled_src_dir pcs/bundled
50c00a
%global rubygem_cache_dir pcsd/vendor/cache
50c00a
%global rubygem_bundle_dir pcsd/vendor/bundle/ruby
50c00a
50c00a
# 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
50c00a
#*** 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)
50c00a
#mangling shebang in /usr/lib/pcsd/vendor/bundle/ruby/gems/rack-2.0.5/test/cgi/rackup_stub.rb from /usr/bin/env ruby to #!/usr/bin/ruby
50c00a
#*** WARNING: ./usr/lib/pcsd/vendor/bundle/ruby/gems/rack-2.0.5/test/cgi/sample_rackup.ru is executable but has empty or no shebang, removing executable bit
50c00a
#*** WARNING: ./usr/lib/pcsd/vendor/bundle/ruby/gems/rack-2.0.5/test/cgi/lighttpd.conf is executable but has empty or no shebang, removing executable bit
50c00a
#*** ERROR: ambiguous python shebang in /usr/lib/pcsd/vendor/bundle/ruby/gems/ffi-1.9.25/ext/ffi_c/libffi/generate-darwin-source-and-headers.py: #!/usr/bin/env python. Change it to python3 (or python2) explicitly.
50c00a
%undefine __brp_mangle_shebangs
50c00a
50c00a
# https://fedoraproject.org/wiki/Changes/Avoid_usr_bin_python_in_RPM_Build#Python_bytecompilation
50c00a
# Enforce python3 because bytecompilation of tornado produced warnings:
50c00a
# DEPRECATION WARNING: python2 invoked with /usr/bin/python.
50c00a
#    Use /usr/bin/python3 or /usr/bin/python2
50c00a
#    /usr/bin/python will be removed or switched to Python 3 in the future.
50c00a
%global __python %{__python3}
50c00a
50c00a
#part after last slash is recognized as filename in look-aside repository
50c00a
#desired name is achived by trick with hash anchor
50c00a
Source0: %{url}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
50c00a
Source1: HAM-logo.png
50c00a
Source2: pcsd-bundle-config-1
50c00a
50c00a
Source41: https://github.com/ondrejmular/pyagentx/archive/v%{pyagentx_version}.tar.gz#/pyagentx-%{pyagentx_version}.tar.gz
50c00a
Source42: https://github.com/tornadoweb/tornado/archive/v%{tornado_version}.tar.gz#/tornado-%{tornado_version}.tar.gz
50c00a
50c00a
Source81: https://rubygems.org/downloads/backports-%{version_rubygem_backports}.gem
50c00a
Source82: https://rubygems.org/downloads/ethon-%{version_rubygem_ethon}.gem
50c00a
Source83: https://rubygems.org/downloads/ffi-%{version_rubygem_ffi}.gem
50c00a
Source84: https://rubygems.org/downloads/json-%{version_rubygem_json}.gem
50c00a
Source85: https://rubygems.org/downloads/multi_json-%{version_rubygem_multi_json}.gem
50c00a
Source86: https://rubygems.org/downloads/mustermann-%{version_rubygem_mustermann}.gem
50c00a
Source87: https://rubygems.org/downloads/open4-%{version_rubygem_open4}.gem
50c00a
Source88: https://rubygems.org/downloads/rack-%{version_rubygem_rack}.gem
50c00a
Source89: https://rubygems.org/downloads/rack-protection-%{version_rubygem_rack_protection}.gem
50c00a
Source90: https://rubygems.org/downloads/rack-test-%{version_rubygem_rack_test}.gem
50c00a
Source91: https://rubygems.org/downloads/sinatra-%{version_rubygem_sinatra}.gem
50c00a
Source92: https://rubygems.org/downloads/tilt-%{version_rubygem_tilt}.gem
50c00a
50c00a
# patches cherry-picked from upstream
50c00a
Patch1: bz1656953-01-drop-removed-command-pcs-resource-show-from-help.patch
50c00a
Patch2: bz1659051-01-fix-link-options-names-in-cluster-setup.patch
50c00a
Patch3: bz1664057-01-gui-issues-in-create-new-cluster-form.patch
50c00a
Patch4: bz1661059-01-re-add-and-deprecate-pcs-resource-show.patch
50c00a
# downstream patches
50c00a
Patch100: bz1668422-01-fix-crashes-when-using-unsupported-options.patch
50c00a
Patch101: do-not-support-cluster-setup-with-udp-u-transport.patch
3f6cae
Patch102: bz1690290-GUI-cannot-create-a-cluster-if-k.patch
3f6cae
Patch103: bz1690304-GUI-submitting-of-create-cluster.patch
3f6cae
Patch104: fix-web-UI-dashboard-data-loading-timeout.patch
e87eb2
Patch105: fix-communication-over-IPv6.patch
561fa3
Patch106: bz1746565-01-set-authkey-length-to-256-bytes.patch
50c00a
50c00a
# git for patches
50c00a
BuildRequires: git
50c00a
#printf from coreutils is used in makefile
50c00a
BuildRequires: coreutils
50c00a
BuildRequires: execstack
50c00a
# python for pcs
50c00a
BuildRequires: platform-python
50c00a
BuildRequires: python3-devel
50c00a
BuildRequires: platform-python-setuptools
50c00a
BuildRequires: python3-pycurl
50c00a
# gcc for compiling custom rubygems
50c00a
BuildRequires: gcc
50c00a
BuildRequires: gcc-c++
50c00a
# ruby and gems for pcsd
50c00a
BuildRequires: ruby >= 2.2.0
50c00a
BuildRequires: ruby-devel
50c00a
BuildRequires: rubygems
50c00a
# ruby libraries for tests
50c00a
BuildRequires: rubygem-test-unit
50c00a
# for touching patch files (sanitization function)
50c00a
BuildRequires: diffstat
50c00a
# for post, preun and postun macros
50c00a
BuildRequires: systemd
50c00a
# for tests
50c00a
BuildRequires: python3-lxml
50c00a
BuildRequires: python3-pyOpenSSL
50c00a
BuildRequires: pacemaker-cli >= 2.0.0
50c00a
# BuildRequires: fence-agents-all
50c00a
BuildRequires: fence-agents-apc
50c00a
BuildRequires: fence-agents-scsi
50c00a
BuildRequires: fence-agents-ipmilan
50c00a
BuildRequires: booth-site
50c00a
# pcsd fonts and font management tools for creating symlinks to fonts
50c00a
BuildRequires: fontconfig
50c00a
BuildRequires: liberation-sans-fonts
50c00a
BuildRequires: overpass-fonts
50c00a
50c00a
# python and libraries for pcs, setuptools for pcs entrypoint
50c00a
Requires: platform-python
50c00a
Requires: python3-lxml
50c00a
Requires: platform-python-setuptools
50c00a
Requires: python3-clufter => 0.70.0
50c00a
Requires: python3-pycurl
50c00a
# ruby and gems for pcsd
50c00a
Requires: ruby >= 2.2.0
50c00a
Requires: rubygems
50c00a
# for killall
50c00a
Requires: psmisc
50c00a
# for working with certificates (validation etc.)
50c00a
Requires: openssl
50c00a
Requires: python3-pyOpenSSL
50c00a
# cluster stack and related packages
50c00a
Requires: pcmk-cluster-manager >= 2.0.0
50c00a
Suggests: pacemaker
50c00a
Requires: (corosync >= 2.99 if pacemaker)
50c00a
# pcs enables corosync encryption by default so we require libknet1-plugins-all
50c00a
Requires: (libknet1-plugins-all if corosync)
50c00a
Requires: pacemaker-cli >= 2.0.0
50c00a
# for post, preun and postun macros
50c00a
Requires(post): systemd
50c00a
Requires(preun): systemd
50c00a
Requires(postun): systemd
50c00a
# pcsd fonts
50c00a
Requires: liberation-sans-fonts
50c00a
Requires: overpass-fonts
50c00a
50c00a
Provides: bundled(tornado) = %{tornado_version}
50c00a
Provides: bundled(backports) = %{version_rubygem_backports}
50c00a
Provides: bundled(ethon) = %{version_rubygem_ethon}
50c00a
Provides: bundled(ffi) = %{version_rubygem_ffi}
50c00a
Provides: bundled(json) = %{version_rubygem_json}
50c00a
Provides: bundled(multi_json) = %{version_rubygem_multi_json}
50c00a
Provides: bundled(mustermann) = %{version_rubygem_mustermann}
50c00a
Provides: bundled(open4) = %{version_rubygem_open4}
50c00a
Provides: bundled(rack) = %{version_rubygem_rack}
50c00a
Provides: bundled(rack) = %{version_rubygem_rack_protection}
50c00a
Provides: bundled(rack) = %{version_rubygem_rack_test}
50c00a
Provides: bundled(sinatra) = %{version_rubygem_sinatra}
50c00a
Provides: bundled(tilt) = %{version_rubygem_tilt}
50c00a
50c00a
%description
50c00a
pcs is a corosync and pacemaker configuration tool.  It permits users to
50c00a
easily view, modify and create pacemaker based clusters.
50c00a
50c00a
# pcs-snmp package definition
50c00a
%package -n %{pcs_snmp_pkg_name}
50c00a
Group: System Environment/Base
50c00a
Summary: Pacemaker cluster SNMP agent
50c00a
# https://fedoraproject.org/wiki/Licensing:Main?rd=Licensing#Good_Licenses
50c00a
# GPLv2: pcs
50c00a
# BSD-2-Clause: pyagentx
50c00a
License: GPLv2 and BSD-2-Clause
50c00a
URL: https://github.com/ClusterLabs/pcs
50c00a
50c00a
# tar for unpacking pyagetx source tar ball
50c00a
BuildRequires: tar
50c00a
50c00a
Requires: pcs = %{version}-%{release}
50c00a
Requires: pacemaker
50c00a
Requires: net-snmp
50c00a
50c00a
Provides: bundled(pyagentx) = %{pyagentx_version}
50c00a
50c00a
%description -n %{pcs_snmp_pkg_name}
50c00a
SNMP agent that provides information about pacemaker cluster to the master agent (snmpd)
50c00a
50c00a
%prep
50c00a
%autosetup -p1 -S git
50c00a
50c00a
# -- following is inspired by python-simplejon.el5 --
50c00a
# Update timestamps on the files touched by a patch, to avoid non-equal
50c00a
# .pyc/.pyo files across the multilib peers within a build
50c00a
50c00a
update_times(){
50c00a
  # update_times <reference_file> <file_to_touch> ...
50c00a
  # set the access and modification times of each file_to_touch to the times
50c00a
  # of reference_file
50c00a
50c00a
  # put all args to file_list
50c00a
  file_list=("$@")
50c00a
  # first argument is reference_file: so take it and remove from file_list
50c00a
  reference_file=${file_list[0]}
50c00a
  unset file_list[0]
50c00a
50c00a
  for fname in ${file_list[@]}; do
50c00a
    touch -r $reference_file $fname
50c00a
  done
50c00a
}
50c00a
50c00a
update_times_patch(){
50c00a
  # update_times_patch <patch_file_name>
50c00a
  # set the access and modification times of each file in patch to the times
50c00a
  # of patch_file_name
50c00a
50c00a
  patch_file_name=$1
50c00a
50c00a
  # diffstat
50c00a
  # -l lists only the filenames. No histogram is generated.
50c00a
  # -p override the logic that strips common pathnames,
50c00a
  #    simulating the patch "-p" option. (Strip the smallest prefix containing
50c00a
  #    num leading slashes from each file name found in the patch file)
50c00a
  update_times ${patch_file_name} `diffstat -p1 -l ${patch_file_name}`
50c00a
}
50c00a
50c00a
update_times_patch %{PATCH1}
50c00a
update_times_patch %{PATCH2}
50c00a
update_times_patch %{PATCH3}
50c00a
update_times_patch %{PATCH4}
e87eb2
update_times_patch %{PATCH105}
561fa3
update_times_patch %{PATCH106}
50c00a
50c00a
cp -f %SOURCE1 pcsd/public/images
50c00a
50c00a
# prepare dirs/files necessary for building all bundles
50c00a
# -----------------------------------------------------
50c00a
# 1) configuration for rubygems
50c00a
mkdir -p pcsd/.bundle
50c00a
cp -f %SOURCE2 pcsd/.bundle/config
50c00a
50c00a
# 2) rubygems sources
50c00a
mkdir -p pcsd/vendor/cache
50c00a
cp -f %SOURCE81 pcsd/vendor/cache
50c00a
cp -f %SOURCE82 pcsd/vendor/cache
50c00a
cp -f %SOURCE83 pcsd/vendor/cache
50c00a
cp -f %SOURCE84 pcsd/vendor/cache
50c00a
cp -f %SOURCE85 pcsd/vendor/cache
50c00a
cp -f %SOURCE86 pcsd/vendor/cache
50c00a
cp -f %SOURCE87 pcsd/vendor/cache
50c00a
cp -f %SOURCE88 pcsd/vendor/cache
50c00a
cp -f %SOURCE89 pcsd/vendor/cache
50c00a
cp -f %SOURCE90 pcsd/vendor/cache
50c00a
cp -f %SOURCE91 pcsd/vendor/cache
50c00a
cp -f %SOURCE92 pcsd/vendor/cache
50c00a
50c00a
50c00a
# 3) dir for python bundles
50c00a
mkdir -p %{bundled_src_dir}
50c00a
50c00a
# 4) sources for pyagentx
50c00a
tar -xzf %SOURCE41 -C %{bundled_src_dir}
50c00a
mv %{bundled_src_dir}/pyagentx-%{pyagentx_version} %{bundled_src_dir}/pyagentx
50c00a
update_times %SOURCE41 `find %{bundled_src_dir}/pyagentx -follow`
50c00a
cp %{bundled_src_dir}/pyagentx/LICENSE.txt pyagentx_LICENSE.txt
50c00a
cp %{bundled_src_dir}/pyagentx/CONTRIBUTORS.txt pyagentx_CONTRIBUTORS.txt
50c00a
cp %{bundled_src_dir}/pyagentx/README.md pyagentx_README.md
50c00a
50c00a
# 5) sources for tornado
50c00a
tar -xzf %SOURCE42 -C %{bundled_src_dir}
50c00a
mv %{bundled_src_dir}/tornado-%{tornado_version} %{bundled_src_dir}/tornado
50c00a
update_times %SOURCE42 `find %{bundled_src_dir}/tornado -follow`
50c00a
cp %{bundled_src_dir}/tornado/LICENSE tornado_LICENSE
50c00a
cp %{bundled_src_dir}/tornado/README.rst tornado_README.rst
50c00a
50c00a
%build
50c00a
%define debug_package %{nil}
50c00a
50c00a
%install
50c00a
rm -rf $RPM_BUILD_ROOT
50c00a
pwd
50c00a
50c00a
# build bundled rubygems (in main install it is disabled by BUILD_GEMS=false)
50c00a
mkdir -p %{rubygem_bundle_dir}
50c00a
gem install \
50c00a
  --force --verbose --no-rdoc --no-ri -l --no-user-install \
50c00a
  -i %{rubygem_bundle_dir} \
50c00a
  %{rubygem_cache_dir}/backports-%{version_rubygem_backports}.gem \
50c00a
  %{rubygem_cache_dir}/ethon-%{version_rubygem_ethon}.gem \
50c00a
  %{rubygem_cache_dir}/ffi-%{version_rubygem_ffi}.gem \
50c00a
  %{rubygem_cache_dir}/json-%{version_rubygem_json}.gem \
50c00a
  %{rubygem_cache_dir}/multi_json-%{version_rubygem_multi_json}.gem \
50c00a
  %{rubygem_cache_dir}/mustermann-%{version_rubygem_mustermann}.gem \
50c00a
  %{rubygem_cache_dir}/open4-%{version_rubygem_open4}.gem \
50c00a
  %{rubygem_cache_dir}/rack-%{version_rubygem_rack}.gem \
50c00a
  %{rubygem_cache_dir}/rack-protection-%{version_rubygem_rack_protection}.gem \
50c00a
  %{rubygem_cache_dir}/rack-test-%{version_rubygem_rack_test}.gem \
50c00a
  %{rubygem_cache_dir}/sinatra-%{version_rubygem_sinatra}.gem \
50c00a
  %{rubygem_cache_dir}/tilt-%{version_rubygem_tilt}.gem \
50c00a
  -- '--with-ldflags="-Wl,-z,relro -Wl,-z,ibt -Wl,-z,now -Wl,--gc-sections"' \
50c00a
     '--with-cflags="-O2 -ffunction-sections"'
50c00a
50c00a
# We can remove files required for gem compilation
50c00a
rm -rf %{rubygem_bundle_dir}/gems/ffi-%{version_rubygem_ffi}/ext
50c00a
rm -rf %{rubygem_bundle_dir}/gems/json-%{version_rubygem_json}/ext
50c00a
50c00a
50c00a
# With this file there is "File is not stripped" problem during rpmdiff
50c00a
# See https://docs.engineering.redhat.com/display/HTD/rpmdiff-elf-stripping
50c00a
for fname in `find %{rubygem_bundle_dir}/extensions -type f -name "*.so"`; do
50c00a
  strip ${fname}
50c00a
done
50c00a
50c00a
50c00a
# main pcs install
50c00a
make install \
50c00a
  DESTDIR=$RPM_BUILD_ROOT \
50c00a
  PREFIX=%{_prefix} \
50c00a
  SYSTEMD_UNIT_DIR=%{_unitdir} \
50c00a
  LIB_DIR=%{pcs_libdir} \
50c00a
  PYTHON=%{__python3} \
50c00a
  PYTHON_SITELIB=%{python3_sitelib} \
50c00a
  BASH_COMPLETION_DIR=%{_datadir}/bash-completion/completions \
50c00a
  BUNDLE_PYAGENTX_SRC_DIR=`readlink -f %{bundled_src_dir}/pyagentx` \
50c00a
  BUNDLE_TORNADO_SRC_DIR=`readlink -f %{bundled_src_dir}/tornado` \
50c00a
  BUILD_GEMS=false \
50c00a
  SYSTEMCTL_OVERRIDE=true \
50c00a
  hdrdir="%{_includedir}" \
50c00a
  rubyhdrdir="%{_includedir}" \
50c00a
  includedir="%{_includedir}"
50c00a
50c00a
# With this file there is "File is not stripped" problem during rpmdiff
50c00a
# See https://docs.engineering.redhat.com/display/HTD/rpmdiff-elf-stripping
50c00a
for fname in `find ${RPM_BUILD_ROOT}%{pcs_libdir}/pcs/bundled/packages/tornado/ -type f -name "*.so"`; do
50c00a
  strip ${fname}
50c00a
done
50c00a
50c00a
#after the ruby gem compilation we do not need ruby gems in the cache
50c00a
rm -r -v $RPM_BUILD_ROOT%{pcs_libdir}/%{rubygem_cache_dir}
50c00a
50c00a
%check
50c00a
# In the building environment LC_CTYPE is set to C which causes tests to fail
50c00a
# due to python prints a warning about it to stderr. The following environment
50c00a
# variable disables the warning.
50c00a
# On the live system either UTF8 locale is set or the warning is emmited
50c00a
# which breaks pcs. That is the correct behavior since with wrong locales it
50c00a
# would be probably broken anyway.
50c00a
# The main concern here is to make the tests pass.
50c00a
# See https://fedoraproject.org/wiki/Changes/python3_c.utf-8_locale for details.
50c00a
export PYTHONCOERCECLOCALE=0
50c00a
50c00a
run_all_tests(){
50c00a
  #run pcs tests
50c00a
50c00a
  # disabled tests:
50c00a
  #
50c00a
  # pcs.lib.commands.test.test_resource_agent.DescribeAgentUtf8.test_describe
50c00a
  #   For a unknwon reason this test is passing outside the mock environment.
50c00a
  #   TODO: Investigate the issue
50c00a
50c00a
  BUNDLED_LIB_LOCATION=$RPM_BUILD_ROOT%{pcs_libdir}/pcs/bundled/packages \
50c00a
    %{__python3} pcs/test/suite.py -v --vanilla --all-but \
50c00a
    pcs.lib.commands.test.test_resource_agent.DescribeAgentUtf8.test_describe \
50c00a
50c00a
  test_result_python=$?
50c00a
50c00a
  #run pcsd tests and remove them
50c00a
  pcsd_dir=$RPM_BUILD_ROOT%{pcs_libdir}/pcsd
50c00a
  GEM_HOME=$RPM_BUILD_ROOT%{pcs_libdir}/%{rubygem_bundle_dir} ruby \
50c00a
    -I${pcsd_dir} \
50c00a
    -I${pcsd_dir}/test \
50c00a
    ${pcsd_dir}/test/test_all_suite.rb
50c00a
  test_result_ruby=$?
50c00a
  #remove pcsd tests, we do not distribute them in the rpm
50c00a
  rm -r -v ${pcsd_dir}/test
50c00a
50c00a
  # remove javascript testing files
50c00a
  rm -r -v ${pcsd_dir}/public/js/dev
50c00a
50c00a
  if [ $test_result_python -ne 0 ]; then
50c00a
    return $test_result_python
50c00a
  fi
50c00a
  return $test_result_ruby
50c00a
}
50c00a
50c00a
run_all_tests
50c00a
50c00a
%post
50c00a
%systemd_post pcsd.service
50c00a
50c00a
%post -n %{pcs_snmp_pkg_name}
50c00a
%systemd_post pcs_snmp_agent.service
50c00a
50c00a
%preun
50c00a
%systemd_preun pcsd.service
50c00a
50c00a
%preun -n %{pcs_snmp_pkg_name}
50c00a
%systemd_preun pcs_snmp_agent.service
50c00a
50c00a
%postun
50c00a
%systemd_postun_with_restart pcsd.service
50c00a
50c00a
%postun -n %{pcs_snmp_pkg_name}
50c00a
%systemd_postun_with_restart pcs_snmp_agent.service
50c00a
50c00a
%files
50c00a
%doc CHANGELOG.md
50c00a
%doc README.md
50c00a
%doc tornado_README.rst
50c00a
%license tornado_LICENSE
50c00a
%license COPYING
50c00a
%{python3_sitelib}/pcs
50c00a
%{python3_sitelib}/pcs-0.10.1-py3.*.egg-info
50c00a
%{_sbindir}/pcs
50c00a
%{_sbindir}/pcsd
50c00a
%{pcs_libdir}/pcs/pcs_internal
50c00a
%{pcs_libdir}/pcsd/*
50c00a
%{pcs_libdir}/pcsd/.bundle/config
50c00a
%{pcs_libdir}/pcs/bundled/packages/tornado*
50c00a
%{_unitdir}/pcsd.service
50c00a
%{_datadir}/bash-completion/completions/pcs
50c00a
%{_sharedstatedir}/pcsd
50c00a
%{_sysconfdir}/pam.d/pcsd
50c00a
%dir %{_var}/log/pcsd
50c00a
%config(noreplace) %{_sysconfdir}/logrotate.d/pcsd
50c00a
%config(noreplace) %{_sysconfdir}/sysconfig/pcsd
50c00a
%ghost %config(noreplace) %{_sharedstatedir}/pcsd/cfgsync_ctl
50c00a
%ghost %config(noreplace) %{_sharedstatedir}/pcsd/known-hosts
50c00a
%ghost %config(noreplace) %{_sharedstatedir}/pcsd/pcsd.cookiesecret
50c00a
%ghost %config(noreplace) %{_sharedstatedir}/pcsd/pcsd.crt
50c00a
%ghost %config(noreplace) %{_sharedstatedir}/pcsd/pcsd.key
50c00a
%ghost %config(noreplace) %{_sharedstatedir}/pcsd/pcs_settings.conf
50c00a
%ghost %config(noreplace) %{_sharedstatedir}/pcsd/pcs_users.conf
50c00a
%{_mandir}/man8/pcs.*
50c00a
%{_mandir}/man8/pcsd.*
50c00a
%exclude %{pcs_libdir}/pcsd/*.debian
50c00a
%exclude %{pcs_libdir}/pcsd/pcsd.service
50c00a
%exclude %{pcs_libdir}/pcsd/pcsd.conf
50c00a
%exclude %{pcs_libdir}/pcsd/pcsd.8
50c00a
%exclude %{pcs_libdir}/pcsd/public/js/dev/*
50c00a
%exclude %{python3_sitelib}/pcs/bash_completion
50c00a
%exclude %{python3_sitelib}/pcs/pcs.8
50c00a
%exclude %{python3_sitelib}/pcs/pcs
50c00a
50c00a
%files -n %{pcs_snmp_pkg_name}
50c00a
%{pcs_libdir}/pcs/pcs_snmp_agent
50c00a
%{pcs_libdir}/pcs/bundled/packages/pyagentx*
50c00a
%{_unitdir}/pcs_snmp_agent.service
50c00a
%{_datadir}/snmp/mibs/PCMK-PCS*-MIB.txt
50c00a
%{_mandir}/man8/pcs_snmp_agent.*
50c00a
%config(noreplace) %{_sysconfdir}/sysconfig/pcs_snmp_agent
50c00a
%doc CHANGELOG.md
50c00a
%doc pyagentx_CONTRIBUTORS.txt
50c00a
%doc pyagentx_README.md
50c00a
%license COPYING
50c00a
%license pyagentx_LICENSE.txt
50c00a
50c00a
%changelog
561fa3
* Thu Aug 29 2019 Ivan Devat <idevat@redhat.com> - 0.10.1-4.el8_0.4
561fa3
- Generate 256 bytes long corosync authkey, longer keys are not supported when FIPS is enabled
561fa3
- Resolves: rhbz#1746565
561fa3
561fa3
* Fri May 24 2019 Ivan Devat <idevat@redhat.com> - 0.10.1-4.el8_0.3
e87eb2
- Fixed communication over IPv6
e87eb2
- Resolves: rhbz#1710067
Pablo Greco 00cf29
3f6cae
* Mon Apr 8 2019 Ondrej Mular <omular@redhat.com> - 0.10.1-4.el8_0.2
3f6cae
- Fixed web UI dashboard data loading
3f6cae
- Resolves: rhbz#1690304
3f6cae
3f6cae
* Thu Mar 28 2019 Ivan Devat <idevat@redhat.com> - 0.10.1-4.el8_0.1
3f6cae
- Fixed crash of the cluster create without knet links specified in webUI
3f6cae
- Fixed submitting of 'create cluster' form when full domain names are used
3f6cae
- Resolves: rhbz#1690290 rhbz#1690304
3f6cae
50c00a
* Wed Jan 30 2019 Ivan Devat <idevat@redhat.com> - 0.10.1-4
50c00a
- Fixed crash when using unsupported options in commands `pcs status` and `pcs config`
50c00a
- Resolves: rhbz#1668422
50c00a
50c00a
* Mon Jan 14 2019 Ivan Devat <idevat@redhat.com> - 0.10.1-3
50c00a
- Fixed configuration names of link options that pcs puts to corosync.conf during cluster setup
50c00a
- Fixed webUI issues in cluster setup
50c00a
- Command `pcs resource show` was returned back and was signed as deprecated
50c00a
- Added dependency on libknet1-plugins-all
50c00a
- Resolves: rhbz#1661059 rhbz#1659051 rhbz#1664057
50c00a
50c00a
* Thu Dec 13 2018 Ondrej Mular <omular@redhat.com> - 0.10.1-2
50c00a
- Fix documentation
50c00a
- Resolves: rhbz#1656953
50c00a
50c00a
* Fri Nov 23 2018 Ivan Devát <idevat@redhat.com> - 0.10.1-1
50c00a
- Rebased to latest upstream sources (see CHANGELOG.md)
50c00a
- Udp/udpu transport is marked as unsupported
50c00a
- Require pcmk-cluster-manager instead of pacemaker
50c00a
- Require platform-python-setuptools instead of python3-setuptools
50c00a
- Resolves: rhbz#1650109 rhbz#1183103 rhbz#1648942 rhbz#1650510 rhbz#1388398 rhbz#1651197 rhbz#1553736
50c00a
50c00a
* Fri Oct 26 2018 Ondrej Mular <omular@redhat.com> - 0.10.0.alpha.7-1
50c00a
- Rebased to latest upstream sources (see CHANGELOG.md)
50c00a
- Resolves: rhbz#1553736 rhbz#1615891 rhbz#1436217 rhbz#1596050 rhbz#1554310 rhbz#1553718 rhbz#1638852 rhbz#1620190 rhbz#1158816 rhbz#1640477
50c00a
50c00a
* Wed Oct 17 2018 Ondrej Mular <omular@redhat.com> - 0.10.0.alpha.6-3
50c00a
- Add dependency on rubygems package
50c00a
- Resolves: rhbz#1553736
50c00a
50c00a
* Thu Oct 04 2018 Ondrej Mular <omular@redhat.com> - 0.10.0.alpha.6-2
50c00a
- Enable tests
50c00a
- Cleanup of unnecessary bundle ruby-gem files
50c00a
- Switch Require: python3 dependency to platform-python
50c00a
- Added required linker flags
50c00a
- Resolves: rhbz#1633613 rhbz#1630616
50c00a
50c00a
* Wed Sep 19 2018 Ivan Devát <idevat@redhat.com> - 0.10.0.alpha.6-1
50c00a
- Rebased to latest upstream sources (see CHANGELOG.md)
50c00a
- Resolves: rhbz#1553736
50c00a
50c00a
* Thu Sep 13 2018 Ivan Devát <idevat@redhat.com> - 0.10.0.alpha.5-1
50c00a
- Rebased to latest upstream sources (see CHANGELOG.md)
50c00a
- Resolves: rhbz#1553736 rhbz#1542288 rhbz#1619620
50c00a
50c00a
* Thu Sep 13 2018 Ivan Devát <idevat@redhat.com> - 0.10.0.alpha.4-2
50c00a
- Fixed symlinks correction for rubygem ffi
50c00a
- Resolves: rhbz#1553736
50c00a
50c00a
* Wed Sep 12 2018 Ivan Devát <idevat@redhat.com> - 0.10.0.alpha.4-1
50c00a
- Rebased to latest upstream sources (see CHANGELOG.md)
50c00a
- Resolves: rhbz#1549535 rhbz#1578955 rhbz#1158816 rhbz#1183103 rhbz#1536121 rhbz#1573344 rhbz#1619620 rhbz#1533866 rhbz#1578898 rhbz#1595829 rhbz#1605185 rhbz#1615420 rhbz#1566430 rhbz#1578891 rhbz#1591308 rhbz#1554953
50c00a
50c00a
* Mon Aug 06 2018 Ivan Devát <idevat@redhat.com> - 0.10.0.alpha.3-1
50c00a
- Rebased to latest upstream sources (see CHANGELOG.md)
50c00a
- Removed ruby dependencies (the dependencies are bundled instead)
50c00a
- Resolves: rhbz#1611990
50c00a
50c00a
* Thu Aug 02 2018 Ivan Devát <idevat@redhat.com> - 0.10.0.alpha.2-1
50c00a
- Rebased to latest upstream sources (see CHANGELOG.md)
50c00a
50c00a
* Wed Jul 18 2018 Ivan Devát <idevat@redhat.com> - 0.10.0.alpha.1-1
50c00a
- Rebased to latest upstream sources (see CHANGELOG.md)
50c00a
50c00a
* Mon Apr 09 2018 Ondrej Mular <omular@redhat.com> - 0.9.164-1
50c00a
- Rebased to latest upstream sources (see CHANGELOG.md)
50c00a
- Fixed: CVE-2018-1086, CVE-2018-1079
50c00a
50c00a
* Mon Feb 26 2018 Ivan Devát <idevat@redhat.com> - 0.9.163-2
50c00a
- Fixed crash when adding a node to a cluster
50c00a
50c00a
* Tue Feb 20 2018 Ivan Devát <idevat@redhat.com> - 0.9.163-1
50c00a
- Rebased to latest upstream sources (see CHANGELOG.md)
50c00a
- Adapted for Rack 2 and Sinatra 2
50c00a
50c00a
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.9.160-5
50c00a
- Escape macros in %%changelog
50c00a
50c00a
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.160-4
50c00a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
50c00a
50c00a
* Sat Jan 20 2018 Björn Esser <besser82@fedoraproject.org> - 0.9.160-3
50c00a
- Rebuilt for switch to libxcrypt
50c00a
50c00a
* Fri Jan 05 2018 Mamoru TASAKA <mtasaka@fedoraproject.org> - 0.9.160-2
50c00a
- F-28: rebuild for ruby25
50c00a
- Workaround for gem install option
50c00a
50c00a
* Wed Oct 18 2017 Ondrej Mular <omular@redhat.com> - 0.9.160-1
50c00a
- Rebased to latest upstream sources (see CHANGELOG.md)
50c00a
- All pcs tests are temporarily disabled because of issues in pacemaker.
50c00a
50c00a
* Thu Sep 14 2017 Ondrej Mular <omular@redhat.com> - 0.9.159-4
50c00a
- Bundle rubygem-rack-protection which is being updated to 2.0.0 in Fedora.
50c00a
- Removed setuptools patch.
50c00a
- Disabled debuginfo subpackage.
50c00a
50c00a
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.159-3
50c00a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
50c00a
50c00a
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.159-2
50c00a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
50c00a
50c00a
* Wed Jul 12 2017 Ondrej Mular <omular@redhat.com> - 0.9.159-1
50c00a
- Rebased to latest upstream sources (see CHANGELOG.md)
50c00a
50c00a
* Tue May 23 2017 Tomas Jelinek <tojeline@redhat.com> - 0.9.156-3
50c00a
- Fixed python locales issue preventing build-time tests to pass
50c00a
- Bundle rubygem-tilt which is being retired from Fedora
50c00a
50c00a
* Thu Mar 23 2017 Tomas Jelinek <tojeline@redhat.com> - 0.9.156-2
50c00a
- Fixed Cross-site scripting (XSS) vulnerability in web UI CVE-2017-2661
50c00a
- Re-added support for clufter as it is now available for Python 3
50c00a
50c00a
* Wed Feb 22 2017 Tomas Jelinek <tojeline@redhat.com> - 0.9.156-1
50c00a
- Rebased to latest upstream sources (see CHANGELOG.md)
50c00a
50c00a
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.155-3
50c00a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
50c00a
50c00a
* Thu Jan 12 2017 Vít Ondruch <vondruch@redhat.com> - 0.9.155-2
50c00a
- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.4
50c00a
50c00a
* Wed Jan 04 2017 Adam Williamson <awilliam@redhat.com> - 0.9.155-1
50c00a
- Latest release 0.9.155
50c00a
- Fix tests with Python 3.6 and lxml 3.7
50c00a
- Package the license as license, not doc
50c00a
- Use -f param for rm when wiping test directories as they are nested now
50c00a
50c00a
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com>
50c00a
- Rebuild for Python 3.6
50c00a
50c00a
* Tue Oct 18 2016 Tomas Jelinek <tojeline@redhat.com> - 0.9.154-2
50c00a
- Fixed upgrading from pcs-0.9.150
50c00a
50c00a
* Thu Sep 22 2016 Tomas Jelinek <tojeline@redhat.com> - 0.9.154-1
50c00a
- Re-synced to upstream sources
50c00a
- Spec file cleanup and fixes
50c00a
50c00a
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.150-2
50c00a
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
50c00a
50c00a
* Mon Apr 11 2016 Tomas Jelinek <tojeline@redhat.com> - 0.9.150-1
50c00a
- Re-synced to upstream sources
50c00a
- Make pcs depend on python3
50c00a
- Spec file cleanup
50c00a
50c00a
* Tue Feb 23 2016 Tomas Jelinek <tojeline@redhat.com> - 0.9.149-2
50c00a
- Fixed rubygems issues which prevented pcsd from starting
50c00a
- Added missing python-lxml dependency
50c00a
50c00a
* Thu Feb 18 2016 Tomas Jelinek <tojeline@redhat.com> - 0.9.149-1
50c00a
- Re-synced to upstream sources
50c00a
- Security fix for CVE-2016-0720, CVE-2016-0721
50c00a
- Fixed rubygems issues which prevented pcsd from starting
50c00a
- Rubygems built with RELRO
50c00a
- Spec file cleanup
50c00a
- Fixed multilib .pyc/.pyo issue
50c00a
50c00a
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.144-3
50c00a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
50c00a
50c00a
* Tue Jan 12 2016 Vít Ondruch <vondruch@redhat.com> - 0.9.144-2
50c00a
- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.3
50c00a
50c00a
* Fri Sep 18 2015 Tomas Jelinek <tojeline@redhat.com> - 0.9.144-1
50c00a
- Re-synced to upstream sources
50c00a
50c00a
* Tue Jun 23 2015 Tomas Jelinek <tojeline@redhat.com> - 0.9.141-2
50c00a
- Added requirement for psmisc for killall
50c00a
50c00a
* Tue Jun 23 2015 Tomas Jelinek <tojeline@redhat.com> - 0.9.141-1
50c00a
- Re-synced to upstream sources
50c00a
50c00a
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.140-2
50c00a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
50c00a
50c00a
* Fri Jun 05 2015 Tomas Jelinek <tojeline@redhat.com> - 0.9.140-1
50c00a
- Re-synced to upstream sources
50c00a
50c00a
* Fri May 22 2015 Tomas Jelinek <tojeline@redhat.com> - 0.9.139-4
50c00a
- Fix for CVE-2015-1848, CVE-2015-3983 (sessions not signed)
50c00a
50c00a
* Thu Mar 26 2015 Tomas Jelinek <tojeline@redhat.com> - 0.9.139-3
50c00a
- Add BuildRequires: systemd (rhbz#1206253)
50c00a
50c00a
* Fri Feb 27 2015 Tomas Jelinek <tojeline@redhat.com> - 0.9.139-2
50c00a
- Reflect clufter inclusion (rhbz#1180723)
50c00a
50c00a
* Thu Feb 19 2015 Tomas Jelinek <tojeline@redhat.com> - 0.9.139-1
50c00a
- Re-synced to upstream sources
50c00a
50c00a
* Sat Jan 17 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 0.9.115-5
50c00a
- Rebuild for https://fedoraproject.org/wiki/Changes/Ruby_2.2
50c00a
50c00a
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.115-4
50c00a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
50c00a
50c00a
* Fri Jun 06 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.115-3
50c00a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
50c00a
50c00a
* Tue May 06 2014 Tomas Jelinek <tojeline@redhat.com> - 0.9.115-2
50c00a
- Rebuild to fix ruby dependencies
50c00a
50c00a
* Mon Apr 21 2014 Chris Feist <cfeist@redhat.com> - 0.9.115-1
50c00a
- Re-synced to upstream sources
50c00a
50c00a
* Fri Dec 13 2013 Chris Feist <cfeist@redhat.com> - 0.9.102-1
50c00a
- Re-synced to upstream sources
50c00a
50c00a
* Wed Jun 19 2013 Chris Feist <cfeist@redhat.com> - 0.9.48-1
50c00a
- Rebuild with upstream sources
50c00a
50c00a
* Thu Jun 13 2013 Chris Feist <cfeist@redhat.com> - 0.9.44-5
50c00a
- Added fixes for building rpam with ruby-2.0.0
50c00a
50c00a
* Mon Jun 03 2013 Chris Feist <cfeist@redhat.com> - 0.9.44-4
50c00a
- Rebuild with upstream sources
50c00a
50c00a
* Tue May 07 2013 Chris Feist <cfeist@redhat.com> - 0.9.41-2
50c00a
- Resynced to upstream sources
50c00a
50c00a
* Fri Apr 19 2013 Chris Feist <cfeist@redhat.com> - 0.9.39-1
50c00a
- Fixed gem building
50c00a
- Re-synced to upstream sources
50c00a
50c00a
* Mon Mar 25 2013 Chris Feist <cfeist@rehdat.com> - 0.9.36-4
50c00a
- Don't try to build gems at all
50c00a
50c00a
* Mon Mar 25 2013 Chris Feist <cfeist@rehdat.com> - 0.9.36-3
50c00a
- Removed all gems from build, will need to find pam package in the future
50c00a
50c00a
* Mon Mar 25 2013 Chris Feist <cfeist@redhat.com> - 0.9.36-2
50c00a
- Removed duplicate libraries already present in fedora
50c00a
50c00a
* Mon Mar 18 2013 Chris Feist <cfeist@redhat.com> - 0.9.36-1
50c00a
- Resynced to latest upstream
50c00a
50c00a
* Mon Mar 11 2013 Chris Feist <cfeist@redhat.com> - 0.9.33-1
50c00a
- Resynched to latest upstream
50c00a
- pcsd has been moved to /usr/lib to fix /usr/local packaging issues
50c00a
50c00a
* Thu Feb 21 2013 Chris Feist <cfeist@redhat.com> - 0.9.32-1
50c00a
- Resynced to latest version of pcs/pcsd
50c00a
50c00a
* Mon Nov 05 2012 Chris Feist <cfeist@redhat.com> - 0.9.27-3
50c00a
- Build on all archs
50c00a
50c00a
* Thu Oct 25 2012 Chris Feist <cfeist@redhat.com> - 0.9.27-2
50c00a
- Resync to latest version of pcs
50c00a
- Added pcsd daemon
50c00a
50c00a
* Mon Oct 08 2012 Chris Feist <cfeist@redhat.cmo> - 0.9.26-1
50c00a
- Resync to latest version of pcs
50c00a
50c00a
* Thu Sep 20 2012 Chris Feist <cfeist@redhat.cmo> - 0.9.24-1
50c00a
- Resync to latest version of pcs
50c00a
50c00a
* Thu Sep 20 2012 Chris Feist <cfeist@redhat.cmo> - 0.9.23-1
50c00a
- Resync to latest version of pcs
50c00a
50c00a
* Wed Sep 12 2012 Chris Feist <cfeist@redhat.cmo> - 0.9.22-1
50c00a
- Resync to latest version of pcs
50c00a
50c00a
* Thu Sep 06 2012 Chris Feist <cfeist@redhat.cmo> - 0.9.19-1
50c00a
- Resync to latest version of pcs
50c00a
50c00a
* Tue Aug 07 2012 Chris Feist <cfeist@redhat.com> - 0.9.12-1
50c00a
- Resync to latest version of pcs
50c00a
50c00a
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.3.1-2
50c00a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
50c00a
50c00a
* Thu May 24 2012 Chris Feist <cfeist@redhat.com> - 0.9.4-1
50c00a
- Resync to latest version of pcs
50c00a
- Move cluster creation options to cluster sub command.
50c00a
50c00a
* Mon May 07 2012 Chris Feist <cfeist@redhat.com> - 0.9.3.1-1
50c00a
- Resync to latest version of pcs which includes fixes to work with F17.
50c00a
50c00a
* Mon Mar 19 2012 Chris Feist <cfeist@redhat.com> - 0.9.2.4-1
50c00a
- Resynced to latest version of pcs
50c00a
50c00a
* Mon Jan 23 2012 Chris Feist <cfeist@redhat.com> - 0.9.1-1
50c00a
- Updated BuildRequires and %%doc section for fedora
50c00a
50c00a
* Fri Jan 20 2012 Chris Feist <cfeist@redhat.com> - 0.9.0-2
50c00a
- Updated spec file for fedora specific changes
50c00a
50c00a
* Mon Jan 16 2012 Chris Feist <cfeist@redhat.com> - 0.9.0-1
50c00a
- Initial Build