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