2fc0ad8
Name: pcs
c088c22
Version: 0.9.164
c088c22
Release: 1%{?dist}
a0d1bea
License: GPLv2
0a8dade
URL: https://github.com/ClusterLabs/pcs
a0d1bea
Group: System Environment/Base
2fc0ad8
Summary: Pacemaker Configuration System
0a8dade
Ivan Devat 47f1518
Ivan Devat 47f1518
%global pcs_snmp_pkg_name  pcs-snmp
Ivan Devat 47f1518
%global pyagentx_version   0.4.pcs.2
Ivan Devat 47f1518
%global bundled_lib_dir    pcs/bundled
Ivan Devat 47f1518
%global pyagentx_dir       %{bundled_lib_dir}/pyagentx
Ivan Devat 47f1518
0a8dade
#part after last slash is recognized as filename in look-aside repository
0a8dade
#desired name is achived by trick with hash anchor
0a8dade
Source0: %{url}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
2fc0ad8
Source1: pcsd-bundle-config-1
2fc0ad8
0a8dade
Source11: https://rubygems.org/downloads/orderedhash-0.0.6.gem
Ivan Devat 47f1518
Source12: https://rubygems.org/downloads/rpam-ruby19-1.2.1.gem
Ivan Devat 47f1518
Source13: https://rubygems.org/downloads/sinatra-contrib-2.0.0.gem
Ivan Devat 47f1518
Ivan Devat 47f1518
Source41: https://github.com/ondrejmular/pyagentx/archive/v%{pyagentx_version}.tar.gz#/pyagentx-%{pyagentx_version}.tar.gz
2fc0ad8
0a8dade
Patch0: fedfix.patch
0a8dade
0a8dade
# git for patches
0a8dade
BuildRequires: git
0a8dade
# python for pcs
195f96a
BuildRequires: python3
195f96a
BuildRequires: python3-devel
195f96a
BuildRequires: python3-setuptools
195f96a
# python libraries for tests
195f96a
BuildRequires: python3-lxml
195f96a
BuildRequires: python3-mock
195f96a
BuildRequires: python3-pycurl
0a8dade
# gcc for compiling custom rubygems
195f96a
BuildRequires: gcc
195f96a
BuildRequires: gcc-c++
0a8dade
# ruby and gems for pcsd
195f96a
BuildRequires: ruby
195f96a
BuildRequires: ruby-devel
195f96a
BuildRequires: rubygem-bundler
195f96a
BuildRequires: rubygem-backports
195f96a
BuildRequires: rubygem-ethon
195f96a
BuildRequires: rubygem-ffi
195f96a
BuildRequires: rubygem-io-console
195f96a
BuildRequires: rubygem-json
195f96a
BuildRequires: rubygem-multi_json
195f96a
BuildRequires: rubygem-open4
Ivan Devat 47f1518
BuildRequires: rubygem-rack
Ivan Devat 47f1518
BuildRequires: rubygem-rack-protection
195f96a
BuildRequires: rubygem-rack-test
Ivan Devat 47f1518
BuildRequires: rubygem-sinatra
4ad2fc6
BuildRequires: rubygem-tilt
195f96a
# ruby libraries for tests
195f96a
BuildRequires: rubygem-test-unit
0a8dade
# pam devel for compiling rubygem-rpam-ruby19
de104aa
BuildRequires: pam-devel
195f96a
# pcsd fonts and font management tools for creating symlinks to fonts
195f96a
BuildRequires: fontconfig
195f96a
BuildRequires: liberation-sans-fonts
195f96a
BuildRequires: overpass-fonts
9fb5798
# for post, preun and postun macros
9fb5798
BuildRequires: systemd
2fc0ad8
# for UpdateTimestamps sanitization function
2fc0ad8
BuildRequires: diffstat
0a8dade
# for tests
0a8dade
BuildRequires: corosync
195f96a
BuildRequires: pacemaker
195f96a
BuildRequires: pacemaker-cli
195f96a
BuildRequires: fence-agents-all
195f96a
BuildRequires: fence-virt
0a8dade
BuildRequires: booth-site
4ad2fc6
# printf (from package coreutils) is used in make
4ad2fc6
BuildRequires: coreutils
0a8dade
0a8dade
# python and libraries for pcs, setuptools for pcs entrypoint
195f96a
Requires: python3
195f96a
Requires: python3-lxml
195f96a
Requires: python3-pycurl
195f96a
Requires: python3-setuptools
0a8dade
# ruby and gems for pcsd
0a8dade
Requires: ruby
195f96a
Requires: rubygem-backports
195f96a
Requires: rubygem-ethon
195f96a
Requires: rubygem-ffi
195f96a
Requires: rubygem-json
195f96a
Requires: rubygem-multi_json
195f96a
Requires: rubygem-open4
Ivan Devat 47f1518
Requires: rubygem-rack
Ivan Devat 47f1518
Requires: rubygem-rack-protection
195f96a
Requires: rubygem-rack-test
Ivan Devat 47f1518
Requires: rubygem-sinatra
4ad2fc6
Requires: rubygem-tilt
195f96a
# pcsd fonts
195f96a
Requires: liberation-sans-fonts
195f96a
Requires: overpass-fonts
0a8dade
# for killall
0a8dade
Requires: psmisc
0a8dade
# for working with certificates (validation etc.)
0a8dade
Requires: openssl
0a8dade
# cluster stack and related packages
195f96a
Requires: corosync
195f96a
Requires: pacemaker
195f96a
Requires: pacemaker-cli
d9cf044
Requires: python3-clufter => 0.70.0
0a8dade
# for post, preun and postun macros
0a8dade
Requires(post): systemd
0a8dade
Requires(preun): systemd
0a8dade
Requires(postun): systemd
a0d1bea
bea4b7d
Provides: bundled(rubygem-orderedhash) = 0.0.6
bea4b7d
Provides: bundled(rubygem-rpam-ruby19) = 1.2.1
Ivan Devat 47f1518
Provides: bundled(rubygem-sinatra-contrib) = 2.0.0
bea4b7d
a0d1bea
%description
a0d1bea
pcs is a corosync and pacemaker configuration tool.  It permits users to
195f96a
easily view, modify and create pacemaker based clusters.
a0d1bea
Ivan Devat 47f1518
# pcs-snmp package definition
Ivan Devat 47f1518
%package -n %{pcs_snmp_pkg_name}
Ivan Devat 47f1518
Group: System Environment/Base
Ivan Devat 47f1518
Summary: Pacemaker cluster SNMP agent
Ivan Devat 47f1518
License: GPLv2, BSD 2-clause
Ivan Devat 47f1518
URL: https://github.com/ClusterLabs/pcs
Ivan Devat 47f1518
Ivan Devat 47f1518
# tar for unpacking pyagetx source tar ball
Ivan Devat 47f1518
BuildRequires: tar
Ivan Devat 47f1518
Ivan Devat 47f1518
Requires: pcs = %{version}-%{release}
Ivan Devat 47f1518
Requires: pacemaker
Ivan Devat 47f1518
Requires: net-snmp
Ivan Devat 47f1518
Ivan Devat 47f1518
Provides: bundled(pyagentx) = %{pyagentx_version}
Ivan Devat 47f1518
Ivan Devat 47f1518
%description -n %{pcs_snmp_pkg_name}
Ivan Devat 47f1518
SNMP agent that provides information about pacemaker cluster to the master agent (snmpd)
Ivan Devat 47f1518
195f96a
%define PCS_PREFIX /usr
a0d1bea
%prep
a0d1bea
%setup -q
6044b69
2fc0ad8
# -- following borrowed from python-simplejon.el5 --
2fc0ad8
# Update timestamps on the files touched by a patch, to avoid non-equal
2fc0ad8
# .pyc/.pyo files across the multilib peers within a build, where "Level"
2fc0ad8
# is the patch prefix option (e.g. -p1)
2fc0ad8
UpdateTimestamps() {
2fc0ad8
  Level=$1
2fc0ad8
  PatchFile=$2
2fc0ad8
  # Locate the affected files:
2fc0ad8
  for f in $(diffstat $Level -l $PatchFile); do
2fc0ad8
    # Set the files to have the same timestamp as that of the patch:
2fc0ad8
    touch -r $PatchFile $f
2fc0ad8
  done
2fc0ad8
}
2fc0ad8
21e433b
%patch0 -p1
195f96a
UpdateTimestamps -p1 %{PATCH0}
2fc0ad8
2fc0ad8
mkdir -p pcsd/.bundle
2fc0ad8
cp -f %SOURCE1 pcsd/.bundle/config
2fc0ad8
mkdir -p pcsd/vendor/cache
0a8dade
#copy ruby gems
0a8dade
cp -f %SOURCE11 pcsd/vendor/cache
0a8dade
cp -f %SOURCE12 pcsd/vendor/cache
0a8dade
cp -f %SOURCE13 pcsd/vendor/cache
0a8dade
#ruby gems copied
4bfe6fb
Ivan Devat 47f1518
Ivan Devat 47f1518
mkdir -p %{bundled_lib_dir}
Ivan Devat 47f1518
tar -xzf %SOURCE41 -C %{bundled_lib_dir}
Ivan Devat 47f1518
mv %{bundled_lib_dir}/pyagentx-%{pyagentx_version} %{pyagentx_dir}
Ivan Devat 47f1518
cp %{pyagentx_dir}/LICENSE.txt pyagentx_LICENSE.txt
Ivan Devat 47f1518
cp %{pyagentx_dir}/CONTRIBUTORS.txt pyagentx_CONTRIBUTORS.txt
Ivan Devat 47f1518
cp %{pyagentx_dir}/README.md pyagentx_README.md
9b7a652
a0d1bea
%build
3e00919
%define debug_package %{nil}
a0d1bea
a0d1bea
%install
a0d1bea
rm -rf $RPM_BUILD_ROOT
a0d1bea
pwd
0a8dade
make install \
0a8dade
  DESTDIR=$RPM_BUILD_ROOT \
0a8dade
  PREFIX=%{PCS_PREFIX} \
0a8dade
  PYTHON=%{__python3} \
0a8dade
  PYTHON_SITELIB=%{python3_sitelib} \
4ad2fc6
  SYSTEMCTL_OVERRIDE=true \
Ivan Devat 47f1518
  BASH_COMPLETION_DIR=$RPM_BUILD_ROOT/usr/share/bash-completion/completions \
Ivan Devat 47f1518
  PYAGENTX_DIR=`readlink -f %{pyagentx_dir}` \
Ivan Devat 47f1518
  SYSTEMCTL_OVERRIDE=true
0a8dade
make install_pcsd \
0a8dade
  DESTDIR=$RPM_BUILD_ROOT \
0a8dade
  PREFIX=%{PCS_PREFIX} \
0a8dade
  PYTHON=%{__python3} \
0a8dade
  PYTHON_SITELIB=%{python3_sitelib} \
4ad2fc6
  SYSTEMCTL_OVERRIDE=true \
0a8dade
  hdrdir="%{_includedir}" \
0a8dade
  rubyhdrdir="%{_includedir}" \
0a8dade
  includedir="%{_includedir}"
195f96a
#after the ruby gem compilation we do not need ruby gems in the cache
195f96a
rm -r -v $RPM_BUILD_ROOT%{PCS_PREFIX}/lib/pcsd/vendor/cache
0a8dade
0a8dade
%check
beb8bbb
# In the building environment LC_CTYPE is set to C which causes tests to fail
beb8bbb
# due to python prints a warning about it to stderr. The following environment
beb8bbb
# variable disables the warning.
beb8bbb
# On the live system either UTF8 locale is set or the warning is emmited
beb8bbb
# which breaks pcs. That is the correct behavior since with wrong locales it
beb8bbb
# would be probably broken anyway.
beb8bbb
# The main concern here is to make the tests pass.
beb8bbb
# See https://fedoraproject.org/wiki/Changes/python3_c.utf-8_locale for details.
beb8bbb
export PYTHONCOERCECLOCALE=0
beb8bbb
0a8dade
run_all_tests(){
0a8dade
  #prepare environmet for tests
0a8dade
  sitelib=$RPM_BUILD_ROOT%{python3_sitelib}
0a8dade
  pcsd_dir=$RPM_BUILD_ROOT%{PCS_PREFIX}/lib/pcsd
0a8dade
  export PYTHONPATH="${PYTHONPATH}:${sitelib}"
0a8dade
195f96a
  #run pcs tests and remove them, we do not distribute them in the rpm
0a8dade
0a8dade
  # disabled tests:
0a8dade
  #
0a8dade
  # pcs.test.test_cluster.ClusterTest.testUIDGID
0a8dade
  #   touches live cluster configuration, cannot run in mock environment
195f96a
  # pcs.test.cib_resource.test_create.Success.test_base_create_with_agent_name_including_systemd_instance
195f96a
  #   It requires systemd to be running so pacemaker can connect to it via dbus.
195f96a
  #   This is not possible during building.
195f96a
  #   AssertionError: 0 != 1 : Expected return code "0", but was "1"
195f96a
  #   command: resource create R systemd:lvm2-pvscan@252:2 --no-default-ops
195f96a
  #   stdout: Error: Agent 'systemd:lvm2-pvscan@252:2' is not installed or does
195f96a
  #     not provide valid metadata: error: crm_abort: systemd_unit_exec:
195f96a
  #     Triggered fatal assert at systemd.c:728 : systemd_init(), use --force to
195f96a
  #     override
c088c22
  # pcs.lib.commands.test.test_resource_agent.DescribeAgentUtf8.test_describe
c088c22
  #   For a unknwon reason this test is passing outside the mock environment.
c088c22
  #   TODO: Investigate the issue
c088c22
  # all others:
c088c22
  #   resource agents metadata have been changed lately, units (seconds) have
c088c22
  #   been added to the intervals etc. (e.g.: interval="10" => interval="10s")
c088c22
c088c22
  %{__python3} ${sitelib}/pcs/test/suite.py -v --vanilla --all-but \
c088c22
    pcs.test.test_cluster.ClusterTest.testUIDGID \
c088c22
    pcs.test.cib_resource.test_create.Success.test_base_create_with_agent_name_including_systemd_instance \
c088c22
    pcs.lib.commands.test.test_resource_agent.DescribeAgentUtf8.test_describe \
c088c22
    pcs.test.cib_resource.test_create.Bundle.test_success \
c088c22
    pcs.test.cib_resource.test_create.FailOrWarnGroup.test_fail_when_try_use_id_of_another_element \
c088c22
    pcs.test.cib_resource.test_create.Success.test_base_create \
c088c22
    pcs.test.cib_resource.test_create.Success.test_base_create_with_default_ops \
c088c22
    pcs.test.cib_resource.test_create.Success.test_create_disabled \
c088c22
    pcs.test.cib_resource.test_create.Success.test_create_with_trace_options \
c088c22
    pcs.test.cib_resource.test_create.Success.test_with_clone \
c088c22
    pcs.test.cib_resource.test_create.Success.test_with_clone_options \
c088c22
    pcs.test.cib_resource.test_create.Success.test_with_master \
c088c22
    pcs.test.cib_resource.test_create.SuccessClone.test_clone_does_not_overshadow_meta_options \
c088c22
    pcs.test.cib_resource.test_create.SuccessClone.test_clone_does_not_overshadow_operations \
c088c22
    pcs.test.cib_resource.test_create.SuccessClone.test_clone_places_disabled_correctly \
c088c22
    pcs.test.cib_resource.test_create.SuccessGroup.test_with_existing_group \
c088c22
    pcs.test.cib_resource.test_create.SuccessGroup.test_with_group \
c088c22
    pcs.test.cib_resource.test_create.SuccessGroup.test_with_group_with_after \
c088c22
    pcs.test.cib_resource.test_create.SuccessGroup.test_with_group_with_before \
c088c22
    pcs.test.cib_resource.test_create.SuccessMaster.test_disable_is_on_master_element \
c088c22
    pcs.test.cib_resource.test_create.SuccessMaster.test_do_not_steal_primitive_meta_options \
c088c22
    pcs.test.cib_resource.test_create.SuccessMaster.test_put_options_after_master_as_its_meta_fix_1 \
c088c22
    pcs.test.cib_resource.test_create.SuccessOperations.test_completing_monitor_operation \
c088c22
    pcs.test.cib_resource.test_create.SuccessOperations.test_default_ops_only \
c088c22
    pcs.test.cib_resource.test_create.SuccessOperations.test_merging_default_ops_explictly_specified \
c088c22
    pcs.test.cib_resource.test_create.SuccessOperations.test_warn_on_forced_unknown_operation \
c088c22
    pcs.test.cib_resource.test_manage_unmanage.ManageUnmanage.test_manage_monitor \
c088c22
    pcs.test.cib_resource.test_manage_unmanage.ManageUnmanage.test_manage_monitor_disabled \
c088c22
    pcs.test.cib_resource.test_manage_unmanage.ManageUnmanage.test_manage_more \
c088c22
    pcs.test.cib_resource.test_manage_unmanage.ManageUnmanage.test_manage_nonexistent \
c088c22
    pcs.test.cib_resource.test_manage_unmanage.ManageUnmanage.test_manage_one \
c088c22
    pcs.test.cib_resource.test_manage_unmanage.ManageUnmanage.test_unmanage_monitor \
c088c22
    pcs.test.cib_resource.test_manage_unmanage.ManageUnmanage.test_unmanage_monitor_enabled \
c088c22
    pcs.test.cib_resource.test_manage_unmanage.ManageUnmanage.test_unmanage_more \
c088c22
    pcs.test.cib_resource.test_manage_unmanage.ManageUnmanage.test_unmanage_nonexistent \
c088c22
    pcs.test.cib_resource.test_manage_unmanage.ManageUnmanage.test_unmanage_one \
c088c22
    pcs.test.cib_resource.test_operation_add.OperationAdd.test_add_with_OCF_CHECK_LEVEL \
c088c22
    pcs.test.cib_resource.test_operation_add.OperationAdd.test_base_add \
c088c22
    pcs.test.cib_resource.test_operation_add.OperationAdd.test_can_multiple_operation_add \
c088c22
    pcs.test.cib_resource.test_operation_add.OperationAdd.test_id_specified \
c088c22
    pcs.test.test_cluster.ClusterTest.testRemoteNode \
c088c22
    pcs.test.test_cluster_pcmk_remote.NodeAddGuest.test_fail_when_disallowed_option_appear \
c088c22
    pcs.test.test_cluster_pcmk_remote.NodeAddGuest.test_fail_when_guest_node_conflicts_with_existing_guest \
c088c22
    pcs.test.test_cluster_pcmk_remote.NodeAddGuest.test_fail_when_guest_node_conflicts_with_existing_id \
c088c22
    pcs.test.test_cluster_pcmk_remote.NodeAddGuest.test_fail_when_guest_node_conflicts_with_existing_remote \
c088c22
    pcs.test.test_cluster_pcmk_remote.NodeAddGuest.test_fail_when_guest_node_name_conflicts_with_existing_remote \
c088c22
    pcs.test.test_cluster_pcmk_remote.NodeAddGuest.test_fail_when_invalid_interval_appear \
c088c22
    pcs.test.test_cluster_pcmk_remote.NodeAddGuest.test_fail_when_invalid_port_appear \
c088c22
    pcs.test.test_cluster_pcmk_remote.NodeAddGuest.test_fail_when_option_remote_node_specified \
c088c22
    pcs.test.test_cluster_pcmk_remote.NodeAddGuest.test_success \
c088c22
    pcs.test.test_cluster_pcmk_remote.NodeAddGuest.test_success_when_guest_node_matches_with_existing_guest \
c088c22
    pcs.test.test_cluster_pcmk_remote.NodeAddGuest.test_success_with_options \
c088c22
    pcs.test.test_cluster_pcmk_remote.NodeRemoveGuest.test_success_remove_by_node_name \
c088c22
    pcs.test.test_cluster_pcmk_remote.NodeRemoveGuest.test_success_remove_by_resource_host \
c088c22
    pcs.test.test_cluster_pcmk_remote.NodeRemoveGuest.test_success_remove_by_resource_id \
c088c22
    pcs.test.test_resource.CloneMasterUpdate.test_no_op_allowed_in_clone_update \
c088c22
    pcs.test.test_resource.CloneMasterUpdate.test_no_op_allowed_in_master_update \
c088c22
    pcs.test.test_resource.ResourceTest.testAddOperation \
c088c22
    pcs.test.test_resource.ResourceTest.testAddResourcesLargeCib \
c088c22
    pcs.test.test_resource.ResourceTest.testCloneMaster \
c088c22
    pcs.test.test_resource.ResourceTest.testCloneRemove \
c088c22
    pcs.test.test_resource.ResourceTest.testClonedGroup \
c088c22
    pcs.test.test_resource.ResourceTest.testClonedMasteredGroup \
c088c22
    pcs.test.test_resource.ResourceTest.testGroupRemoveTest \
c088c22
    pcs.test.test_resource.ResourceTest.testGroupRemoveWithConstraints2 \
c088c22
    pcs.test.test_resource.ResourceTest.testMSGroup \
c088c22
    pcs.test.test_resource.ResourceTest.testMasteredGroup \
c088c22
    pcs.test.test_resource.ResourceTest.testNoMoveMSClone \
c088c22
    pcs.test.test_resource.ResourceTest.testOPOption \
c088c22
    pcs.test.test_resource.ResourceTest.testResourceCloneId \
c088c22
    pcs.test.test_resource.ResourceTest.testResourceCloneUpdate \
c088c22
    pcs.test.test_resource.ResourceTest.testResourceEnable \
c088c22
    pcs.test.test_resource.ResourceTest.testResourceEnableClone \
c088c22
    pcs.test.test_resource.ResourceTest.testResourceMasterId \
c088c22
    pcs.test.test_resource.ResourceTest.testResourceMissingValues \
c088c22
    pcs.test.test_resource.ResourceTest.testUnclone \
c088c22
    pcs.test.test_resource.ResourceTest.testUpdateOperation \
c088c22
c088c22
  test_result_python=$?
0a8dade
195f96a
  #remove pcs tests, we do not distribute them in the rpm
195f96a
  find ${sitelib}/pcs -name test -type d -print0|xargs -0 rm -r -v --
0a8dade
0a8dade
  #run pcsd tests and remove them
0a8dade
  GEM_HOME=${pcsd_dir}/vendor/bundle/ruby ruby \
0a8dade
    -I${pcsd_dir} \
0a8dade
    -I${pcsd_dir}/test \
0a8dade
    ${pcsd_dir}/test/test_all_suite.rb
0a8dade
  test_result_ruby=$?
195f96a
  #remove pcsd tests, we do not distribute them in the rpm
0a8dade
  rm -r -v ${pcsd_dir}/test
0a8dade
0a8dade
  if [ $test_result_python -ne 0 ]; then
0a8dade
    return $test_result_python
0a8dade
  fi
0a8dade
  return $test_result_ruby
0a8dade
}
0a8dade
0a8dade
run_all_tests
4bfe6fb
4013dee
%pretrans -p <lua>
4013dee
-- workaround for upgrading from a broken package pcs-0.9.150-1.fc24
4013dee
-- taken from https://fedoraproject.org/wiki/Packaging:Directory_Replacement
4013dee
-- see https://bugzilla.redhat.com/show_bug.cgi?id=1370095 for details
4013dee
for i, path in pairs({
4013dee
  "/usr/lib/pcsd/vendor/bundle/ruby/extensions",
4013dee
  "/usr/lib/pcsd/vendor/bundle/ruby/gems",
4013dee
  "/usr/lib/pcsd/vendor/bundle/ruby/specifications"
4013dee
}) do
4013dee
  st = posix.stat(path)
4013dee
  if st and st.type == "link" then
4013dee
    os.remove(path)
4013dee
  end
4013dee
end
4013dee
4bfe6fb
%post
4bfe6fb
%systemd_post pcsd.service
4bfe6fb
Ivan Devat 47f1518
%post -n %{pcs_snmp_pkg_name}
Ivan Devat 47f1518
%systemd_post pcs_snmp_agent.service
Ivan Devat 47f1518
4bfe6fb
%preun
4bfe6fb
%systemd_preun pcsd.service
4bfe6fb
4bfe6fb
%postun
4bfe6fb
%systemd_postun_with_restart pcsd.service
337b855
a0d1bea
%files
195f96a
%doc CHANGELOG.md
4ad2fc6
%doc README.md
f104d71
%license COPYING
de104aa
%{python3_sitelib}/pcs
de104aa
%{python3_sitelib}/pcs-%{version}-py3.*.egg-info
a0d1bea
/usr/sbin/pcs
fdead59
/usr/lib/pcsd/*
4bfe6fb
/usr/lib/pcsd/.bundle/config
edefe50
/usr/lib/systemd/system/pcsd.service
0a8dade
/usr/share/bash-completion/completions/pcs
edefe50
/var/lib/pcsd
edefe50
/etc/pam.d/pcsd
4bfe6fb
%dir /var/log/pcsd
Ivan Devat 47f1518
%config(noreplace) /etc/logrotate.d/pcsd
de104aa
%config(noreplace) /etc/sysconfig/pcsd
0a8dade
%ghost %config(noreplace) /var/lib/pcsd/cfgsync_ctl
0a8dade
%ghost %config(noreplace) /var/lib/pcsd/pcsd.cookiesecret
0a8dade
%ghost %config(noreplace) /var/lib/pcsd/pcsd.crt
0a8dade
%ghost %config(noreplace) /var/lib/pcsd/pcsd.key
0a8dade
%ghost %config(noreplace) /var/lib/pcsd/pcs_settings.conf
0a8dade
%ghost %config(noreplace) /var/lib/pcsd/pcs_users.conf
0a8dade
%ghost %config(noreplace) /var/lib/pcsd/tokens
4bfe6fb
%{_mandir}/man8/pcs.*
779e837
%{_mandir}/man8/pcsd.*
21e433b
%exclude /usr/lib/pcsd/*.debian
de104aa
%exclude /usr/lib/pcsd/pcsd.service
de104aa
%exclude /usr/lib/pcsd/pcsd.conf
779e837
%exclude /usr/lib/pcsd/pcsd.8
195f96a
%exclude %{python3_sitelib}/pcs/bash_completion
de104aa
%exclude %{python3_sitelib}/pcs/pcs.8
de104aa
%exclude %{python3_sitelib}/pcs/pcs
a0d1bea
Ivan Devat 47f1518
%files -n %{pcs_snmp_pkg_name}
Ivan Devat 47f1518
/usr/lib/pcs/pcs_snmp_agent
Ivan Devat 47f1518
/usr/lib/pcs/bundled/packages/pyagentx*
Ivan Devat 47f1518
/usr/lib/systemd/system/pcs_snmp_agent.service
Ivan Devat 47f1518
/usr/share/snmp/mibs/PCMK-PCS*-MIB.txt
Ivan Devat 47f1518
%{_mandir}/man8/pcs_snmp_agent.*
Ivan Devat 47f1518
%config(noreplace) /etc/sysconfig/pcs_snmp_agent
Ivan Devat 47f1518
%dir /var/log/pcs
Ivan Devat 47f1518
%doc COPYING
Ivan Devat 47f1518
%doc CHANGELOG.md
Ivan Devat 47f1518
%doc pyagentx_LICENSE.txt
Ivan Devat 47f1518
%doc pyagentx_CONTRIBUTORS.txt
Ivan Devat 47f1518
%doc pyagentx_README.md
Ivan Devat 47f1518
a0d1bea
%changelog
c088c22
* Mon Apr 09 2018 Ondrej Mular <omular@redhat.com> - 0.9.164-1
c088c22
- Rebased to latest upstream sources (see CHANGELOG.md)
c088c22
- Fixed: CVE-2018-1086, CVE-2018-1079
c088c22
Ivan Devat 33b5b2b
* Mon Feb 26 2018 Ivan Devát <idevat@redhat.com> - 0.9.163-2
Ivan Devat 33b5b2b
- Fixed crash when adding a node to a cluster
Ivan Devat 33b5b2b
Ivan Devat 47f1518
* Tue Feb 20 2018 Ivan Devát <idevat@redhat.com> - 0.9.163-1
Ivan Devat 47f1518
- Rebased to latest upstream sources (see CHANGELOG.md)
Ivan Devat 47f1518
- Adapted for Rack 2 and Sinatra 2
Ivan Devat 47f1518
f9e106a
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.9.160-5
f9e106a
- Escape macros in %%changelog
f9e106a
b44327d
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.160-4
b44327d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
b44327d
9e50f9c
* Sat Jan 20 2018 Björn Esser <besser82@fedoraproject.org> - 0.9.160-3
9e50f9c
- Rebuilt for switch to libxcrypt
9e50f9c
9b7a652
* Fri Jan 05 2018 Mamoru TASAKA <mtasaka@fedoraproject.org> - 0.9.160-2
9b7a652
- F-28: rebuild for ruby25
9b7a652
- Workaround for gem install option
9b7a652
4ad2fc6
* Wed Oct 18 2017 Ondrej Mular <omular@redhat.com> - 0.9.160-1
4ad2fc6
- Rebased to latest upstream sources (see CHANGELOG.md)
4ad2fc6
- All pcs tests are temporarily disabled because of issues in pacemaker.
4ad2fc6
3e00919
* Thu Sep 14 2017 Ondrej Mular <omular@redhat.com> - 0.9.159-4
3e00919
- Bundle rubygem-rack-protection which is being updated to 2.0.0 in Fedora.
3e00919
- Removed setuptools patch.
3e00919
- Disabled debuginfo subpackage.
3e00919
8cadf8c
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.159-3
8cadf8c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
8cadf8c
30614f8
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.159-2
30614f8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
30614f8
779e837
* Wed Jul 12 2017 Ondrej Mular <omular@redhat.com> - 0.9.159-1
779e837
- Rebased to latest upstream sources (see CHANGELOG.md)
779e837
beb8bbb
* Tue May 23 2017 Tomas Jelinek <tojeline@redhat.com> - 0.9.156-3
beb8bbb
- Fixed python locales issue preventing build-time tests to pass
beb8bbb
- Bundle rubygem-tilt which is being retired from Fedora
beb8bbb
d9cf044
* Thu Mar 23 2017 Tomas Jelinek <tojeline@redhat.com> - 0.9.156-2
d9cf044
- Fixed Cross-site scripting (XSS) vulnerability in web UI CVE-2017-2661
d9cf044
- Re-added support for clufter as it is now available for Python 3
d9cf044
195f96a
* Wed Feb 22 2017 Tomas Jelinek <tojeline@redhat.com> - 0.9.156-1
195f96a
- Rebased to latest upstream sources (see CHANGELOG.md)
195f96a
2aa1067
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.155-3
2aa1067
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
2aa1067
7ea790e
* Thu Jan 12 2017 Vít Ondruch <vondruch@redhat.com> - 0.9.155-2
7ea790e
- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.4
7ea790e
f104d71
* Wed Jan 04 2017 Adam Williamson <awilliam@redhat.com> - 0.9.155-1
f104d71
- Latest release 0.9.155
f104d71
- Fix tests with Python 3.6 and lxml 3.7
f104d71
- Package the license as license, not doc
f104d71
- Use -f param for rm when wiping test directories as they are nested now
f104d71
f104d71
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com>
0775475
- Rebuild for Python 3.6
0775475
4013dee
* Tue Oct 18 2016 Tomas Jelinek <tojeline@redhat.com> - 0.9.154-2
4013dee
- Fixed upgrading from pcs-0.9.150
4013dee
0a8dade
* Thu Sep 22 2016 Tomas Jelinek <tojeline@redhat.com> - 0.9.154-1
0a8dade
- Re-synced to upstream sources
0a8dade
- Spec file cleanup and fixes
0a8dade
044cd9b
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.150-2
044cd9b
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
044cd9b
de104aa
* Mon Apr 11 2016 Tomas Jelinek <tojeline@redhat.com> - 0.9.150-1
de104aa
- Re-synced to upstream sources
de104aa
- Make pcs depend on python3
de104aa
- Spec file cleanup
de104aa
4d10d73
* Tue Feb 23 2016 Tomas Jelinek <tojeline@redhat.com> - 0.9.149-2
4d10d73
- Fixed rubygems issues which prevented pcsd from starting
4d10d73
- Added missing python-lxml dependency
4d10d73
2fc0ad8
* Thu Feb 18 2016 Tomas Jelinek <tojeline@redhat.com> - 0.9.149-1
2fc0ad8
- Re-synced to upstream sources
2fc0ad8
- Security fix for CVE-2016-0720, CVE-2016-0721
2fc0ad8
- Fixed rubygems issues which prevented pcsd from starting
2fc0ad8
- Rubygems built with RELRO
2fc0ad8
- Spec file cleanup
2fc0ad8
- Fixed multilib .pyc/.pyo issue
2fc0ad8
bb375ed
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.144-3
bb375ed
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
bb375ed
d8b9096
* Tue Jan 12 2016 Vít Ondruch <vondruch@redhat.com> - 0.9.144-2
d8b9096
- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.3
d8b9096
a80e8a1
* Fri Sep 18 2015 Tomas Jelinek <tojeline@redhat.com> - 0.9.144-1
a80e8a1
- Re-synced to upstream sources
a80e8a1
5968f87
* Tue Jun 23 2015 Tomas Jelinek <tojeline@redhat.com> - 0.9.141-2
5968f87
- Added requirement for psmisc for killall
5968f87
bea4b7d
* Tue Jun 23 2015 Tomas Jelinek <tojeline@redhat.com> - 0.9.141-1
bea4b7d
- Re-synced to upstream sources
bea4b7d
3ebb60a
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.140-2
3ebb60a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
3ebb60a
21e433b
* Fri Jun 05 2015 Tomas Jelinek <tojeline@redhat.com> - 0.9.140-1
21e433b
- Re-synced to upstream sources
21e433b
72637d9
* Fri May 22 2015 Tomas Jelinek <tojeline@redhat.com> - 0.9.139-4
72637d9
- Fix for CVE-2015-1848, CVE-2015-3983 (sessions not signed)
72637d9
9fb5798
* Thu Mar 26 2015 Tomas Jelinek <tojeline@redhat.com> - 0.9.139-3
9fb5798
- Add BuildRequires: systemd (rhbz#1206253)
9fb5798
fb7c9d6
* Fri Feb 27 2015 Tomas Jelinek <tojeline@redhat.com> - 0.9.139-2
fb7c9d6
- Reflect clufter inclusion (rhbz#1180723)
fb7c9d6
c1e59b1
* Thu Feb 19 2015 Tomas Jelinek <tojeline@redhat.com> - 0.9.139-1
c1e59b1
- Re-synced to upstream sources
c1e59b1
5fba2b6
* Sat Jan 17 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 0.9.115-5
5fba2b6
- Rebuild for https://fedoraproject.org/wiki/Changes/Ruby_2.2
5fba2b6
3828620
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.115-4
3828620
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
3828620
4d6e61f
* Fri Jun 06 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.115-3
4d6e61f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
4d6e61f
a61cbbe
* Tue May 06 2014 Tomas Jelinek <tojeline@redhat.com> - 0.9.115-2
a61cbbe
- Rebuild to fix ruby dependencies
a61cbbe
6044b69
* Mon Apr 21 2014 Chris Feist <cfeist@redhat.com> - 0.9.115-1
6044b69
- Re-synced to upstream sources
6044b69
4bfe6fb
* Fri Dec 13 2013 Chris Feist <cfeist@redhat.com> - 0.9.102-1
4bfe6fb
- Re-synced to upstream sources
4bfe6fb
174df12
* Wed Jun 19 2013 Chris Feist <cfeist@redhat.com> - 0.9.48-1
174df12
- Rebuild with upstream sources
174df12
337b855
* Thu Jun 13 2013 Chris Feist <cfeist@redhat.com> - 0.9.44-5
337b855
- Added fixes for building rpam with ruby-2.0.0
337b855
471dca8
* Mon Jun 03 2013 Chris Feist <cfeist@redhat.com> - 0.9.44-4
471dca8
- Rebuild with upstream sources
471dca8
05df7ef
* Tue May 07 2013 Chris Feist <cfeist@redhat.com> - 0.9.41-2
f032d5e
- Resynced to upstream sources
f032d5e
a6211c3
* Fri Apr 19 2013 Chris Feist <cfeist@redhat.com> - 0.9.39-1
a6211c3
- Fixed gem building
a6211c3
- Re-synced to upstream sources
a6211c3
274eea6
* Mon Mar 25 2013 Chris Feist <cfeist@rehdat.com> - 0.9.36-4
274eea6
- Don't try to build gems at all
274eea6
cb9739c
* Mon Mar 25 2013 Chris Feist <cfeist@rehdat.com> - 0.9.36-3
cb9739c
- Removed all gems from build, will need to find pam package in the future
cb9739c
b23d2bf
* Mon Mar 25 2013 Chris Feist <cfeist@redhat.com> - 0.9.36-2
b23d2bf
- Removed duplicate libraries already present in fedora
b23d2bf
4b95f46
* Mon Mar 18 2013 Chris Feist <cfeist@redhat.com> - 0.9.36-1
4b95f46
- Resynced to latest upstream
4b95f46
fdead59
* Mon Mar 11 2013 Chris Feist <cfeist@redhat.com> - 0.9.33-1
fdead59
- Resynched to latest upstream
fdead59
- pcsd has been moved to /usr/lib to fix /usr/local packaging issues
fdead59
0676999
* Thu Feb 21 2013 Chris Feist <cfeist@redhat.com> - 0.9.32-1
0676999
- Resynced to latest version of pcs/pcsd
0676999
d483875
* Mon Nov 05 2012 Chris Feist <cfeist@redhat.com> - 0.9.27-3
d483875
- Build on all archs
d483875
d483875
* Thu Oct 25 2012 Chris Feist <cfeist@redhat.com> - 0.9.27-2
edefe50
- Resync to latest version of pcs
edefe50
- Added pcsd daemon
edefe50
2e01a34
* Mon Oct 08 2012 Chris Feist <cfeist@redhat.cmo> - 0.9.26-1
2e01a34
- Resync to latest version of pcs
2e01a34
3fead96
* Thu Sep 20 2012 Chris Feist <cfeist@redhat.cmo> - 0.9.24-1
3fead96
- Resync to latest version of pcs
3fead96
857bdbf
* Thu Sep 20 2012 Chris Feist <cfeist@redhat.cmo> - 0.9.23-1
857bdbf
- Resync to latest version of pcs
857bdbf
a92303e
* Wed Sep 12 2012 Chris Feist <cfeist@redhat.cmo> - 0.9.22-1
a92303e
- Resync to latest version of pcs
a92303e
75bb1b1
* Thu Sep 06 2012 Chris Feist <cfeist@redhat.cmo> - 0.9.19-1
75bb1b1
- Resync to latest version of pcs
75bb1b1
802cd98
* Tue Aug 07 2012 Chris Feist <cfeist@redhat.com> - 0.9.12-1
802cd98
- Resync to latest version of pcs
802cd98
f04571f
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.3.1-2
f04571f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
f04571f
ebab0ab
* Thu May 24 2012 Chris Feist <cfeist@redhat.com> - 0.9.4-1
ebab0ab
- Resync to latest version of pcs
ebab0ab
- Move cluster creation options to cluster sub command.
ebab0ab
2be175f
* Mon May 07 2012 Chris Feist <cfeist@redhat.com> - 0.9.3.1-1
2be175f
- Resync to latest version of pcs which includes fixes to work with F17.
2be175f
5abd448
* Mon Mar 19 2012 Chris Feist <cfeist@redhat.com> - 0.9.2.4-1
511d924
- Resynced to latest version of pcs
511d924
a0d1bea
* Mon Jan 23 2012 Chris Feist <cfeist@redhat.com> - 0.9.1-1
f9e106a
- Updated BuildRequires and %%doc section for fedora
a0d1bea
a0d1bea
* Fri Jan 20 2012 Chris Feist <cfeist@redhat.com> - 0.9.0-2
a0d1bea
- Updated spec file for fedora specific changes
a0d1bea
a0d1bea
* Mon Jan 16 2012 Chris Feist <cfeist@redhat.com> - 0.9.0-1
a0d1bea
- Initial Build