|
|
54b999 |
# virtual provides:
|
|
|
54b999 |
# clufter -> clufter-cli
|
|
|
54b999 |
# clufter-lib -> python.+-clufter (any if multiple)
|
|
|
54b999 |
# python2-clufter -> python-clufter
|
|
|
54b999 |
|
|
|
c999e3 |
Name: clufter
|
|
|
caa933 |
Version: 0.77.0
|
|
|
caa933 |
Release: 2%{?dist}
|
|
|
c999e3 |
Group: System Environment/Base
|
|
|
c999e3 |
Summary: Tool/library for transforming/analyzing cluster configuration formats
|
|
|
c999e3 |
License: GPLv2+
|
|
|
f27990 |
URL: https://pagure.io/%{name}
|
|
|
c999e3 |
|
|
|
c999e3 |
# required for autosetup macro
|
|
|
c999e3 |
BuildRequires: git
|
|
|
c999e3 |
|
|
|
54b999 |
# Python 2 related
|
|
|
c999e3 |
BuildRequires: python2-devel
|
|
|
c999e3 |
BuildRequires: python-setuptools
|
|
|
c999e3 |
BuildRequires: python-lxml
|
|
|
c999e3 |
|
|
|
54b999 |
# following to ensure "which bash" (and, in extension, "which sh") works
|
|
|
54b999 |
BuildRequires: bash which
|
|
|
54b999 |
|
|
|
54b999 |
BuildRequires: pkgconfig(libxml-2.0)
|
|
|
54b999 |
# needed for schemadir path pointer
|
|
|
54b999 |
BuildRequires: pkgconfig(pacemaker)
|
|
|
54b999 |
# needed for schemas themselves
|
|
|
54b999 |
BuildRequires: pacemaker
|
|
|
54b999 |
# needed to squash multi-file schemas to single file
|
|
|
54b999 |
BuildRequires: jing
|
|
|
54b999 |
# needed for xsltproc and xmllint respectively
|
|
|
54b999 |
BuildRequires: libxslt libxml2
|
|
|
54b999 |
|
|
|
54b999 |
#global test_version
|
|
|
f27990 |
%global testver %{?test_version}%{?!test_version:%{version}}
|
|
|
f27990 |
|
|
|
c999e3 |
Source0: https://people.redhat.com/jpokorny/pkgs/%{name}/%{name}-%{version}.tar.gz
|
|
|
f27990 |
Source1: https://people.redhat.com/jpokorny/pkgs/%{name}/%{name}-%{testver}-tests.tar.xz
|
|
|
54b999 |
Source2: https://pagure.io/%{name}/raw/v%{version}/f/misc/fix-jing-simplified-rng.xsl
|
|
|
54b999 |
Source3: https://pagure.io/%{name}/raw/v%{version}/f/misc/pacemaker-borrow-schemas
|
|
|
caa933 |
Patch0: https://pagure.io/clufter/c/a75e1456f11725b7a58bc81148a6d6403b2530d2.patch
|
|
|
f27990 |
|
|
|
f27990 |
# for pacemaker BuildRequires dependency
|
|
|
f27990 |
%if 0%{?rhel} > 0
|
|
|
5cf1d9 |
ExclusiveArch: i686 x86_64 ppc64le s390x %{arm}
|
|
|
f27990 |
%endif
|
|
|
c999e3 |
|
|
|
c999e3 |
%description
|
|
|
c999e3 |
While primarily aimed at (CMAN,rgmanager)->(Corosync/CMAN,Pacemaker) cluster
|
|
|
c999e3 |
stacks configuration conversion (as per RHEL trend), the command-filter-format
|
|
|
c999e3 |
framework (capable of XSLT) offers also other uses through its plugin library.
|
|
|
c999e3 |
|
|
|
c999e3 |
%package cli
|
|
|
c999e3 |
Group: System Environment/Base
|
|
|
c999e3 |
Summary: Tool for transforming/analyzing cluster configuration formats
|
|
|
54b999 |
Provides: %{name} = %{version}-%{release}
|
|
|
c999e3 |
|
|
|
c999e3 |
BuildRequires: bash-completion
|
|
|
c999e3 |
|
|
|
c999e3 |
BuildRequires: help2man
|
|
|
c999e3 |
|
|
|
c999e3 |
# following for pkg_resources module
|
|
|
c999e3 |
Requires: python-setuptools
|
|
|
c999e3 |
Requires: python-%{name} = %{version}-%{release}
|
|
|
54b999 |
Requires: %{_bindir}/nano
|
|
|
c999e3 |
BuildArch: noarch
|
|
|
c999e3 |
|
|
|
c999e3 |
%description cli
|
|
|
c999e3 |
While primarily aimed at (CMAN,rgmanager)->(Corosync/CMAN,Pacemaker) cluster
|
|
|
c999e3 |
stacks configuration conversion (as per RHEL trend), the command-filter-format
|
|
|
c999e3 |
framework (capable of XSLT) offers also other uses through its plugin library.
|
|
|
c999e3 |
|
|
|
c999e3 |
This package contains %{name} command-line interface for the underlying
|
|
|
c999e3 |
library (packaged as python-%{name}).
|
|
|
c999e3 |
|
|
|
c999e3 |
%package -n python-%{name}
|
|
|
c999e3 |
Group: System Environment/Libraries
|
|
|
c999e3 |
Summary: Library for transforming/analyzing cluster configuration formats
|
|
|
c999e3 |
License: GPLv2+ and GFDL
|
|
|
54b999 |
Provides: %{name}-lib = %{version}-%{release}
|
|
|
54b999 |
Provides: python2-%{name} = %{version}-%{release}
|
|
|
c999e3 |
|
|
|
54b999 |
Requires: %{name}-bin = %{version}-%{release}
|
|
|
c999e3 |
Requires: python-lxml
|
|
|
54b999 |
BuildArch: noarch
|
|
|
c999e3 |
|
|
|
c999e3 |
%description -n python-%{name}
|
|
|
c999e3 |
While primarily aimed at (CMAN,rgmanager)->(Corosync/CMAN,Pacemaker) cluster
|
|
|
c999e3 |
stacks configuration conversion (as per RHEL trend), the command-filter-format
|
|
|
c999e3 |
framework (capable of XSLT) offers also other uses through its plugin library.
|
|
|
c999e3 |
|
|
|
c999e3 |
This package contains %{name} library including built-in plugins.
|
|
|
c999e3 |
|
|
|
54b999 |
%package bin
|
|
|
54b999 |
Group: System Environment/Libraries
|
|
|
54b999 |
Summary: Common internal compiled files for %{name}
|
|
|
54b999 |
License: GPLv2+
|
|
|
54b999 |
|
|
|
54b999 |
Requires: %{name}-common = %{version}-%{release}
|
|
|
54b999 |
|
|
|
54b999 |
%description bin
|
|
|
54b999 |
While primarily aimed at (CMAN,rgmanager)->(Corosync/CMAN,Pacemaker) cluster
|
|
|
54b999 |
stacks configuration conversion (as per RHEL trend), the command-filter-format
|
|
|
54b999 |
framework (capable of XSLT) offers also other uses through its plugin library.
|
|
|
54b999 |
|
|
|
54b999 |
This package contains internal, arch-specific files for %{name}.
|
|
|
54b999 |
|
|
|
54b999 |
%package common
|
|
|
54b999 |
Group: System Environment/Libraries
|
|
|
54b999 |
Summary: Common internal data files for %{name}
|
|
|
54b999 |
License: GPLv2+
|
|
|
54b999 |
BuildArch: noarch
|
|
|
54b999 |
|
|
|
54b999 |
%description common
|
|
|
54b999 |
While primarily aimed at (CMAN,rgmanager)->(Corosync/CMAN,Pacemaker) cluster
|
|
|
54b999 |
stacks configuration conversion (as per RHEL trend), the command-filter-format
|
|
|
54b999 |
framework (capable of XSLT) offers also other uses through its plugin library.
|
|
|
54b999 |
|
|
|
54b999 |
This package contains internal, arch-agnostic files for %{name}.
|
|
|
54b999 |
|
|
|
c999e3 |
%package lib-general
|
|
|
c999e3 |
Group: System Environment/Libraries
|
|
|
c999e3 |
Summary: Extra %{name} plugins usable for/as generic/auxiliary products
|
|
|
54b999 |
Requires: %{name}-lib = %{version}-%{release}
|
|
|
c999e3 |
BuildArch: noarch
|
|
|
c999e3 |
|
|
|
c999e3 |
%description lib-general
|
|
|
c999e3 |
This package contains set of additional plugins targeting variety of generic
|
|
|
c999e3 |
formats often serving as a byproducts in the intermediate steps of the overall
|
|
|
c999e3 |
process arrangement: either experimental commands or internally unused,
|
|
|
c999e3 |
reusable formats and filters.
|
|
|
c999e3 |
|
|
|
c999e3 |
%package lib-ccs
|
|
|
c999e3 |
Group: System Environment/Libraries
|
|
|
c999e3 |
Summary: Extra plugins for transforming/analyzing CMAN configuration
|
|
|
c999e3 |
Requires: %{name}-lib-general = %{version}-%{release}
|
|
|
c999e3 |
BuildArch: noarch
|
|
|
c999e3 |
|
|
|
c999e3 |
%description lib-ccs
|
|
|
c999e3 |
This package contains set of additional plugins targeting CMAN cluster
|
|
|
c999e3 |
configuration: either experimental commands or internally unused, reusable
|
|
|
c999e3 |
formats and filters.
|
|
|
c999e3 |
|
|
|
c999e3 |
%package lib-pcs
|
|
|
c999e3 |
Group: System Environment/Libraries
|
|
|
c999e3 |
Summary: Extra plugins for transforming/analyzing Pacemaker configuration
|
|
|
c999e3 |
Requires: %{name}-lib-general = %{version}-%{release}
|
|
|
c999e3 |
BuildArch: noarch
|
|
|
c999e3 |
|
|
|
c999e3 |
%description lib-pcs
|
|
|
c999e3 |
This package contains set of additional plugins targeting Pacemaker cluster
|
|
|
c999e3 |
configuration: either experimental commands or internally unused, reusable
|
|
|
c999e3 |
formats and filters.
|
|
|
c999e3 |
|
|
|
c999e3 |
%prep
|
|
|
caa933 |
%setup -b 1
|
|
|
caa933 |
#XXX cannot patch ccs-flatten this way
|
|
|
caa933 |
pushd %{name} >/dev/null
|
|
|
caa933 |
%global __scm git_am
|
|
|
caa933 |
%{expand:%__scm_setup_%{__scm}}
|
|
|
caa933 |
%{__git} config core.whitespace -blank-at-eol
|
|
|
caa933 |
%autopatch -p1
|
|
|
caa933 |
popd >/dev/null
|
|
|
f27990 |
|
|
|
f27990 |
%if "%{testver}" != "%{version}"
|
|
|
f27990 |
%{__cp} -a ../"%{name}-%{testver}"/* .
|
|
|
f27990 |
%endif
|
|
|
c999e3 |
|
|
|
c999e3 |
## for some esoteric reason, the line above has to be empty
|
|
|
54b999 |
%{__python} setup.py saveopts -f setup.cfg pkg_prepare \
|
|
|
54b999 |
--ccs-flatten='%{_libexecdir}/%{name}-%{version}/ccs_flatten' \
|
|
|
54b999 |
--editor='%{_bindir}/nano' \
|
|
|
54b999 |
--extplugins-shared='%{_datarootdir}/%{name}/ext-plugins' \
|
|
|
54b999 |
--ra-metadata-dir='%{_datadir}/cluster' \
|
|
|
54b999 |
--ra-metadata-ext='metadata' \
|
|
|
54b999 |
--shell-posix='%(which sh 2>/dev/null || echo /bin/SHELL-POSIX)' \
|
|
|
54b999 |
--shell-bashlike='%(which bash 2>/dev/null || echo /bin/SHELL-BASHLIKE)'
|
|
|
f27990 |
%{__python} setup.py saveopts -f setup.cfg pkg_prepare \
|
|
|
f27990 |
--report-bugs='https://bugzilla.redhat.com/enter_bug.cgi?product=Red%20Hat%20Enterprise%20Linux%207&component=clufter'
|
|
|
f27990 |
# make Python interpreter executation sane (via -Es flags)
|
|
|
f27990 |
%{__python2} setup.py saveopts -f setup.cfg build_scripts \
|
|
|
f27990 |
--executable='%{__python2} -Es'
|
|
|
c999e3 |
|
|
|
c999e3 |
%build
|
|
|
c999e3 |
%{__python2} setup.py build
|
|
|
54b999 |
%{__python} ./run-dev --skip-ext --completion-bash 2>/dev/null \
|
|
|
c999e3 |
| sed 's|run[-_]dev|%{name}|g' > .bashcomp
|
|
|
f27990 |
# generate man pages (proper commands and aliases from a sorted sequence)
|
|
|
c999e3 |
%{__mkdir_p} -- .manpages/man1
|
|
|
f27990 |
{ echo; ./run-dev -l | sed -n 's|^ \(\S\+\).*|\1|p' | sort; } > .subcmds
|
|
|
f27990 |
sed -e 's:\(.\+\):\\\&\\fIrun_dev-\1\\fR\\\|(1), :' \
|
|
|
f27990 |
-e '1s|\(.*\)|\[SEE ALSO\]\n|' \
|
|
|
f27990 |
-e '$s|\(.*\)|\1\nand perhaps more|' \
|
|
|
f27990 |
.subcmds > .see-also
|
|
|
f27990 |
help2man -N -h -H -i .see-also \
|
|
|
f27990 |
-n "$(sed -n '2s|[^(]\+(\([^)]\+\))|\1|p' README)" ./run-dev \
|
|
|
f27990 |
| sed 's|run\\\?[-_]dev|%{name}|g' \
|
|
|
f27990 |
> ".manpages/man1/%{name}.1"
|
|
|
f27990 |
while read cmd; do
|
|
|
f27990 |
[ -n "${cmd}" ] || continue
|
|
|
f27990 |
echo -e "#\!/bin/sh\n{ [ \$# -ge 1 ] && [ \"\$1\" = \"--version\" ] \
|
|
|
f27990 |
&& ./run-dev \"\$@\" || ./run-dev \"${cmd}\" \"\$@\"; }" > ".tmp-${cmd}"
|
|
|
f27990 |
chmod +x ".tmp-${cmd}"
|
|
|
f27990 |
grep -v "^${cmd}\$" .subcmds \
|
|
|
f27990 |
| grep -e '^$' -e "$(echo ${cmd} | cut -d- -f1)\(-\|\$\)" \
|
|
|
f27990 |
| sed -e 's:\(.\+\):\\\&\\fIrun_dev-\1\\fR\\\|(1), :' \
|
|
|
f27990 |
-e '1s|\(.*\)|\[SEE ALSO\]\n\\\&\\fIrun_dev\\fR\\\|(1), \n|' \
|
|
|
f27990 |
-e '$s|\(.*\)|\1\nand perhaps more|' > .see-also
|
|
|
f27990 |
# XXX uses ";;&" bashism
|
|
|
f27990 |
case "${cmd}" in
|
|
|
f27990 |
ccs[2-]*)
|
|
|
f27990 |
sed -i \
|
|
|
f27990 |
'1s:\(.*\):\1\n\\\&\\fIcluster.conf\\fR\\\|(5), \\\&\\fIccs\\fR\\\|(7), :' \
|
|
|
f27990 |
.see-also
|
|
|
f27990 |
;;&
|
|
|
f27990 |
ccs2pcs*)
|
|
|
f27990 |
sed -i \
|
|
|
f27990 |
'1s:\(.*\):\1\n\\\&\\fI%{_defaultdocdir}/%{name}-%{version}/rgmanager-pacemaker\\fR\\\|, :' \
|
|
|
f27990 |
.see-also
|
|
|
f27990 |
;;&
|
|
|
f27990 |
*[2-]pcscmd*)
|
|
|
f27990 |
sed -i '1s:\(.*\):\1\n\\\&\\fIpcs\\fR\\\|(8), :' .see-also
|
|
|
f27990 |
;;&
|
|
|
f27990 |
esac
|
|
|
f27990 |
help2man -N -h -H -i .see-also -n "${cmd}" "./.tmp-${cmd}" \
|
|
|
f27990 |
| sed 's|run\\\?[-_]dev|%{name}|g' \
|
|
|
f27990 |
> ".manpages/man1/%{name}-${cmd}.1"
|
|
|
f27990 |
done < .subcmds
|
|
|
f27990 |
|
|
|
54b999 |
OUTPUTDIR=.schemas POSTPROCESS="%{SOURCE2}" sh "%{SOURCE3}" --clobber
|
|
|
c999e3 |
|
|
|
c999e3 |
%install
|
|
|
c999e3 |
|
|
|
c999e3 |
# '--root' implies setuptools involves distutils to do old-style install
|
|
|
c999e3 |
%{__python2} setup.py install --skip-build --root '%{buildroot}'
|
|
|
c999e3 |
# following is needed due to umask 022 not taking effect(?) leading to 775
|
|
|
c999e3 |
%{__chmod} -- g-w '%{buildroot}%{_libexecdir}/%{name}-%{version}/ccs_flatten'
|
|
|
f27990 |
# fix excessive script interpreting "executable" quoting with old setuptools:
|
|
|
f27990 |
# https://github.com/pypa/setuptools/issues/188
|
|
|
f27990 |
# https://bugzilla.redhat.com/1353934
|
|
|
f27990 |
sed -i '1s|^\(#!\)"\(.*\)"$|\1\2|' '%{buildroot}%{_bindir}/%{name}'
|
|
|
c999e3 |
# %%{_bindir}/%%{name} should have been created
|
|
|
c999e3 |
test -f '%{buildroot}%{_bindir}/%{name}' \
|
|
|
c999e3 |
|| %{__install} -D -pm 644 -- '%{buildroot}%{_bindir}/%{name}' \
|
|
|
c999e3 |
'%{buildroot}%{_bindir}/%{name}'
|
|
|
54b999 |
|
|
|
54b999 |
# move data files from python-specific locations to a single common one
|
|
|
54b999 |
# and possibly symlink that back
|
|
|
54b999 |
%{__mkdir_p} -- '%{buildroot}%{_datarootdir}/%{name}/formats'
|
|
|
54b999 |
for format in cib corosync; do
|
|
|
54b999 |
%{__cp} -a -t '%{buildroot}%{_datarootdir}/%{name}/formats' \
|
|
|
54b999 |
-- "%{buildroot}%{python2_sitelib}/%{name}/formats/${format}"
|
|
|
54b999 |
%{__rm} -f -- "%{buildroot}%{python2_sitelib}/%{name}/formats/${format}"/*
|
|
|
54b999 |
ln -s -t "%{buildroot}%{python2_sitelib}/%{name}/formats/${format}" \
|
|
|
54b999 |
-- $(pushd "%{buildroot}%{_datarootdir}/%{name}/formats/${format}" >/dev/null; \
|
|
|
54b999 |
ls -1A | sed "s:.*:%{_datarootdir}/%{name}/formats/${format}/\\0:")
|
|
|
54b999 |
done
|
|
|
54b999 |
|
|
|
54b999 |
# move ext-plugins from python-specific locations to a single common one
|
|
|
54b999 |
# incl. the different sorts of precompiled bytecodes
|
|
|
54b999 |
%{__mkdir_p} -- '%{buildroot}%{_datarootdir}/%{name}/ext-plugins'
|
|
|
54b999 |
mv -t '%{buildroot}%{_datarootdir}/%{name}/ext-plugins' \
|
|
|
54b999 |
-- '%{buildroot}%{python2_sitelib}/%{name}'/ext-plugins/*/
|
|
|
54b999 |
|
|
|
c999e3 |
declare bashcompdir="$(pkg-config --variable=completionsdir bash-completion \
|
|
|
c999e3 |
|| echo '%{_datadir}/bash-completion/completions')"
|
|
|
c999e3 |
declare bashcomp="${bashcompdir}/%{name}"
|
|
|
c999e3 |
%{__install} -D -pm 644 -- \
|
|
|
c999e3 |
.bashcomp '%{buildroot}%{_sysconfdir}/%{name}/bash-completion'
|
|
|
c999e3 |
%{__mkdir_p} -- "%{buildroot}${bashcompdir}"
|
|
|
c999e3 |
ln -s '%{_sysconfdir}/%{name}/bash-completion' "%{buildroot}${bashcomp}"
|
|
|
c999e3 |
# own %%{_datadir}/bash-completion in case of ...bash-completion/completions,
|
|
|
c999e3 |
# more generally any path up to any of /, /usr, /usr/share, /etc
|
|
|
c999e3 |
while true; do
|
|
|
c999e3 |
test "$(dirname "${bashcompdir}")" != "/" \
|
|
|
c999e3 |
&& test "$(dirname "${bashcompdir}")" != "%{_prefix}" \
|
|
|
c999e3 |
&& test "$(dirname "${bashcompdir}")" != "%{_datadir}" \
|
|
|
c999e3 |
&& test "$(dirname "${bashcompdir}")" != "%{_sysconfdir}" \
|
|
|
c999e3 |
|| break
|
|
|
c999e3 |
bashcompdir="$(dirname "${bashcompdir}")"
|
|
|
c999e3 |
done
|
|
|
c999e3 |
cat >.bashcomp-files <<-EOF
|
|
|
c999e3 |
${bashcompdir}
|
|
|
c999e3 |
%dir %{_sysconfdir}/%{name}
|
|
|
c999e3 |
%verify(not size md5 mtime) %{_sysconfdir}/%{name}/bash-completion
|
|
|
c999e3 |
EOF
|
|
|
c999e3 |
%{__mkdir_p} -- '%{buildroot}%{_mandir}'
|
|
|
f27990 |
%{__cp} -a -t '%{buildroot}%{_mandir}' -- .manpages/*
|
|
|
54b999 |
%{__cp} -a -f -t '%{buildroot}%{_datarootdir}/%{name}/formats/cib' \
|
|
|
f27990 |
-- .schemas/pacemaker-*.*.rng
|
|
|
c999e3 |
%{__mkdir_p} -- '%{buildroot}%{_defaultdocdir}/%{name}-%{version}'
|
|
|
f27990 |
%{__cp} -a -t '%{buildroot}%{_defaultdocdir}/%{name}-%{version}' \
|
|
|
f27990 |
-- gpl-2.0.txt doc/*.txt doc/rgmanager-pacemaker
|
|
|
c999e3 |
|
|
|
c999e3 |
%check
|
|
|
c999e3 |
# just a basic sanity check
|
|
|
c999e3 |
# we need to massage RA metadata files and PATH so the local run works
|
|
|
c999e3 |
# XXX we could also inject buildroot's site_packages dir to PYTHONPATH
|
|
|
c999e3 |
declare ret=0 \
|
|
|
c999e3 |
ccs_flatten_dir="$(dirname '%{buildroot}%{_libexecdir}/%{name}-%{version}/ccs_flatten')"
|
|
|
c999e3 |
ln -s '%{buildroot}%{_datadir}/cluster'/*.'metadata' \
|
|
|
c999e3 |
"${ccs_flatten_dir}"
|
|
|
54b999 |
PATH="${PATH:+${PATH}:}${ccs_flatten_dir}" PYTHONEXEC="%{__python2} -Es" ./run-tests
|
|
|
c999e3 |
ret=$?
|
|
|
c999e3 |
%{__rm} -f -- "${ccs_flatten_dir}"/*.'metadata'
|
|
|
c999e3 |
[ ${ret} -eq 0 ] || exit ${ret}
|
|
|
c999e3 |
|
|
|
c999e3 |
%post cli
|
|
|
c999e3 |
if [ $1 -gt 1 ]; then # no gain regenerating it w/ fresh install (same result)
|
|
|
c999e3 |
declare bashcomp="%{_sysconfdir}/%{name}/bash-completion"
|
|
|
c999e3 |
%{_bindir}/%{name} --completion-bash > "${bashcomp}" 2>/dev/null || :
|
|
|
c999e3 |
fi
|
|
|
c999e3 |
|
|
|
c999e3 |
%post lib-general
|
|
|
c999e3 |
declare bashcomp="%{_sysconfdir}/%{name}/bash-completion"
|
|
|
c999e3 |
# if the completion file is not present, suppose it is not desired
|
|
|
c999e3 |
test -x '%{_bindir}/%{name}' && test -f "${bashcomp}" \
|
|
|
c999e3 |
&& %{_bindir}/%{name} --completion-bash > "${bashcomp}" 2>/dev/null || :
|
|
|
c999e3 |
|
|
|
c999e3 |
%post lib-ccs
|
|
|
c999e3 |
declare bashcomp="%{_sysconfdir}/%{name}/bash-completion"
|
|
|
c999e3 |
# if the completion file is not present, suppose it is not desired
|
|
|
c999e3 |
test -x '%{_bindir}/%{name}' && test -f "${bashcomp}" \
|
|
|
c999e3 |
&& %{_bindir}/%{name} --completion-bash > "${bashcomp}" 2>/dev/null || :
|
|
|
c999e3 |
|
|
|
c999e3 |
%post lib-pcs
|
|
|
c999e3 |
declare bashcomp="%{_sysconfdir}/%{name}/bash-completion"
|
|
|
c999e3 |
# if the completion file is not present, suppose it is not desired
|
|
|
c999e3 |
test -x '%{_bindir}/%{name}' && test -f "${bashcomp}" \
|
|
|
c999e3 |
&& %{_bindir}/%{name} --completion-bash > "${bashcomp}" 2>/dev/null || :
|
|
|
c999e3 |
|
|
|
c999e3 |
%files cli -f .bashcomp-files
|
|
|
c999e3 |
%{_mandir}/man1/*.1*
|
|
|
c999e3 |
%{_bindir}/%{name}
|
|
|
c999e3 |
|
|
|
c999e3 |
%files -n python-%{name}
|
|
|
c999e3 |
%{python2_sitelib}/%{name}
|
|
|
c999e3 |
%{python2_sitelib}/%{name}-*.egg-info
|
|
|
54b999 |
|
|
|
54b999 |
%files bin
|
|
|
c999e3 |
%{_libexecdir}/%{name}-%{version}
|
|
|
54b999 |
|
|
|
54b999 |
%files common
|
|
|
c999e3 |
%{_datadir}/cluster
|
|
|
54b999 |
%{_datarootdir}/%{name}
|
|
|
54b999 |
%dir %{_defaultdocdir}/%{name}-%{version}
|
|
|
54b999 |
%{_defaultdocdir}/%{name}-%{version}/*[^[:digit:]]
|
|
|
54b999 |
%license %{_defaultdocdir}/%{name}-%{version}/*[[:digit:]].txt
|
|
|
c999e3 |
|
|
|
c999e3 |
%files lib-general
|
|
|
54b999 |
%{_datarootdir}/%{name}/ext-plugins/lib-general
|
|
|
c999e3 |
|
|
|
c999e3 |
%files lib-ccs
|
|
|
54b999 |
%{_datarootdir}/%{name}/ext-plugins/lib-ccs
|
|
|
c999e3 |
|
|
|
c999e3 |
%files lib-pcs
|
|
|
54b999 |
%{_datarootdir}/%{name}/ext-plugins/lib-pcs
|
|
|
c999e3 |
|
|
|
c999e3 |
%changelog
|
|
|
5cf1d9 |
* Sat Apr 14 2018 Fabian Arrotin <arrfab@centos.org> - 0.77.0-2
|
|
|
5cf1d9 |
- Added %{arm} to supported arches to allow building for c7 armhfp
|
|
|
5cf1d9 |
|
|
|
caa933 |
* Fri Dec 01 2017 Jan Pokorný <jpokorny+rpm-clufter@redhat.com> - 0.77.0-2
|
|
|
caa933 |
- fix nodelist.node.name configuration option (originaly devised by pacemaker)
|
|
|
caa933 |
not supported in corosync.conf with the built-in validation schema
|
|
|
caa933 |
[rhbz#1517834]
|
|
|
caa933 |
|
|
|
caa933 |
* Fri Nov 10 2017 Jan Pokorný <jpokorny+rpm-clufter@redhat.com> - 0.77.0-1
|
|
|
caa933 |
- bump upstream package, see https://pagure.io/clufter/releases
|
|
|
caa933 |
|
|
|
54b999 |
* Tue Jun 06 2017 Jan Pokorný <jpokorny+rpm-clufter@redhat.com> - 0.76.0-1
|
|
|
54b999 |
- factor "borrow validation schemas from pacemaker" out to a separate script
|
|
|
54b999 |
- bump upstream package, see https://pagure.io/clufter/releases
|
|
|
54b999 |
|
|
|
54b999 |
* Fri May 26 2017 Jan Pokorný <jpokorny+rpm-clufter@redhat.com> - 0.75.0-1
|
|
|
54b999 |
- move nano fallback editor dependency to -cli package [PGissue#1]
|
|
|
54b999 |
- bump upstream package, see https://pagure.io/clufter/releases
|
|
|
54b999 |
|
|
|
54b999 |
* Wed Mar 29 2017 Jan Pokorný <jpokorny+rpm-clufter@redhat.com> - 0.70.0-2
|
|
|
54b999 |
- split -bin and -common packages, the former becoming the only arch-specific
|
|
|
54b999 |
- also move python-specific (entry points, main files) back from -cli package
|
|
|
54b999 |
- also add virtual provides for python-clufter as python2-clufter
|
|
|
54b999 |
- bump upstream package (version rolling the above changes out)
|
|
|
54b999 |
- build for ppc64le
|
|
|
54b999 |
[rhbz#1402565]
|
|
|
54b999 |
|
|
|
f27990 |
* Wed Aug 10 2016 Jan Pokorný <jpokorny+rpm-clufter@redhat.com> - 0.59.5-2
|
|
|
f27990 |
- fix malformed man pages due to help screen being previously split on hyphens
|
|
|
f27990 |
|
|
|
f27990 |
* Mon Aug 08 2016 Jan Pokorný <jpokorny+rpm-clufter@redhat.com> - 0.59.5-1
|
|
|
f27990 |
- bump upstream package, see https://pagure.io/clufter/releases
|
|
|
f27990 |
|
|
|
f27990 |
* Tue Aug 02 2016 Jan Pokorný <jpokorny+rpm-clufter@redhat.com> - 0.59.4-1
|
|
|
f27990 |
- bump upstream package, see https://pagure.io/clufter/releases
|
|
|
f27990 |
|
|
|
f27990 |
* Fri Jul 29 2016 Jan Pokorný <jpokorny+rpm-clufter@redhat.com> - 0.59.3-1
|
|
|
f27990 |
- bump upstream package, see https://pagure.io/clufter/releases
|
|
|
f27990 |
|
|
|
f27990 |
* Thu Jul 28 2016 Jan Pokorný <jpokorny+rpm-clufter@redhat.com> - 0.59.2-1
|
|
|
f27990 |
- bump upstream package, see https://pagure.io/clufter/releases
|
|
|
f27990 |
|
|
|
f27990 |
* Tue Jul 26 2016 Jan Pokorný <jpokorny+rpm-clufter@redhat.com> - 0.59.1-1
|
|
|
f27990 |
- bump upstream package, see https://pagure.io/clufter/releases
|
|
|
f27990 |
|
|
|
f27990 |
* Fri Jul 22 2016 Jan Pokorný <jpokorny+rpm-clufter@redhat.com> - 0.59.0-1
|
|
|
f27990 |
- add ability to borrow validation schemas from pacemaker installed along
|
|
|
f27990 |
- bump upstream package, see https://pagure.io/clufter/releases
|
|
|
f27990 |
|
|
|
f27990 |
* Fri Jul 15 2016 Jan Pokorný <jpokorny+rpm-clufter@redhat.com> - 0.58.0-1
|
|
|
f27990 |
- fix Python interpreter propagated as enquoted string with old setuptools
|
|
|
f27990 |
- bump upstream package, see https://pagure.io/clufter/releases
|
|
|
f27990 |
|
|
|
f27990 |
* Fri Jul 01 2016 Jan Pokorný <jpokorny+rpm-clufter@redhat.com> - 0.57.0-1
|
|
|
f27990 |
- bump upstream package, see https://pagure.io/clufter/releases
|
|
|
f27990 |
- generate man pages also for offered commands
|
|
|
f27990 |
- auto-generate SEE ALSO sections for the man pages
|
|
|
f27990 |
- move entry_points.txt to clufter-cli sub-package
|
|
|
f27990 |
- general spec file refresh (pagure.io as a default project base, etc.)
|
|
|
f27990 |
- make Python interpreter execution sane
|
|
|
f27990 |
- fix *2pcscmd* commands so they do not suggest
|
|
|
f27990 |
"pcs cluster cib <file> --config" that doesn't currently
|
|
|
f27990 |
work for subsequent local-modification pcs commands
|
|
|
f27990 |
[rhbz#1328078]
|
|
|
f27990 |
- add support for ticket constraints to *2pcscmd commands
|
|
|
f27990 |
[rhbz#1340243]
|
|
|
f27990 |
|
|
|
c999e3 |
* Wed Sep 09 2015 Jan Pokorný <jpokorny+rpm-clufter@redhat.com> - 0.50.4-1
|
|
|
c999e3 |
- bump upstream package
|
|
|
c999e3 |
|
|
|
c999e3 |
* Thu Sep 03 2015 Jan Pokorný <jpokorny+rpm-clufter@redhat.com> - 0.50.3-1
|
|
|
c999e3 |
- bump upstream package
|
|
|
c999e3 |
|
|
|
c999e3 |
* Wed Aug 12 2015 Jan Pokorný <jpokorny+rpm-clufter@redhat.com> - 0.50.2-1
|
|
|
c999e3 |
- bump upstream package
|
|
|
c999e3 |
|
|
|
c999e3 |
* Tue Jul 14 2015 Jan Pokorný <jpokorny+rpm-clufter@redhat.com> - 0.50.1-1
|
|
|
c999e3 |
- bump upstream package
|
|
|
c999e3 |
|
|
|
c999e3 |
* Fri Jul 03 2015 Jan Pokorný <jpokorny+rpm-clufter@redhat.com> - 0.50.0-1
|
|
|
c999e3 |
- bump upstream package (intentional jump on upstream front)
|
|
|
c999e3 |
|
|
|
c999e3 |
* Fri Jun 19 2015 Jan Pokorný <jpokorny+rpm-clufter@redhat.com> - 0.12.0-1
|
|
|
c999e3 |
- move completion module to clufter-cli sub-package
|
|
|
c999e3 |
- bump upstream package
|
|
|
c999e3 |
|
|
|
c999e3 |
* Wed Apr 15 2015 Jan Pokorný <jpokorny+rpm-clufter@redhat.com> - 0.11.0-1
|
|
|
c999e3 |
- bump upstream package
|
|
|
c999e3 |
|
|
|
c999e3 |
* Fri Mar 20 2015 Jan Pokorný <jpokorny+rpm-clufter@redhat.com> - 0.10.3-1
|
|
|
c999e3 |
- bump upstream package
|
|
|
c999e3 |
|
|
|
c999e3 |
* Mon Mar 16 2015 Jan Pokorný <jpokorny+rpm-clufter@redhat.com> - 0.10.2-1
|
|
|
c999e3 |
- bump upstream package
|
|
|
c999e3 |
|
|
|
c999e3 |
* Fri Mar 06 2015 Jan Pokorný <jpokorny+rpm-clufter@redhat.com> - 0.10.1-2
|
|
|
c999e3 |
- packaging fixes (%{name}-cli requires python-setuptools, adjust for
|
|
|
c999e3 |
older schema of Bash completions)
|
|
|
c999e3 |
|
|
|
c999e3 |
* Fri Mar 06 2015 Jan Pokorný <jpokorny+rpm-clufter@redhat.com> - 0.10.1-1
|
|
|
c999e3 |
- bump upstream package
|
|
|
c999e3 |
|
|
|
c999e3 |
* Thu Feb 26 2015 Jan Pokorný <jpokorny+rpm-clufter@redhat.com> - 0.10.0-1
|
|
|
c999e3 |
- packaging enhacements (structure, redundancy, ownership, scriptlets, symlink)
|
|
|
c999e3 |
- version bump so as not to collide with python-clufter co-packaged with pcs
|
|
|
c999e3 |
|
|
|
c999e3 |
* Tue Jan 20 2015 Jan Pokorný <jpokorny+rpm-clufter@redhat.com> - 0.3.5-1
|
|
|
c999e3 |
- packaging enhancements (pkg-config, license tag)
|
|
|
c999e3 |
|
|
|
c999e3 |
* Wed Jan 14 2015 Jan Pokorný <jpokorny+rpm-clufter@redhat.com> - 0.3.4-1
|
|
|
c999e3 |
- packaging enhancements (permissions, ownership)
|
|
|
c999e3 |
- man page for CLI frontend now included
|
|
|
c999e3 |
|
|
|
c999e3 |
* Tue Jan 13 2015 Jan Pokorný <jpokorny+rpm-clufter@redhat.com> - 0.3.3-1
|
|
|
c999e3 |
- initial build
|