dfa03f
%{?python_enable_dependency_generator}
4c6c8a
# virtual provides:
4c6c8a
#   clufter        -> clufter-cli
4c6c8a
#   clufter-lib    -> python.+-clufter (any if multiple)
4c6c8a
#   python-clufter -> python2-clufter (subject of change)
4c6c8a
ff813d
# conditionals:
ff813d
%bcond_with python2
ff813d
b37751
# https://fedoraproject.org/wiki/Packaging:Python_Appendix#Manual_byte_compilation
b37751
%global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g')
b37751
1390a9
Name:           clufter
edd2a1
Version:        0.77.1
dfa03f
Release:        8%{?dist}
1390a9
Summary:        Tool/library for transforming/analyzing cluster configuration formats
1390a9
License:        GPLv2+
66c5d8
URL:            https://pagure.io/%{name}
1390a9
dc9bab
BuildRequires:  gcc
50e9d3
# required for autosetup macro
dc9bab
BuildRequires:  git-core
1390a9
ff813d
%if %{with python2}
4c6c8a
# Python 2 related
1390a9
BuildRequires:  python2-devel
e101a0
BuildRequires:  python2-setuptools
e101a0
BuildRequires:  python2-lxml
ff813d
%endif
1390a9
4c6c8a
# Python 3 related
4c6c8a
BuildRequires:  python3-devel
4c6c8a
BuildRequires:  python3-setuptools
4c6c8a
BuildRequires:  python3-lxml
4c6c8a
00260d
# following to ensure "which bash" (and, in extension, "which sh") works
00260d
BuildRequires:  bash which
00260d
4c6c8a
BuildRequires:  pkgconfig(libxml-2.0)
4c6c8a
# needed for schemadir path pointer
4c6c8a
BuildRequires:  pkgconfig(pacemaker)
4c6c8a
# needed for schemas themselves
4c6c8a
BuildRequires:  pacemaker
4c6c8a
# needed to squash multi-file schemas to single file
4c6c8a
BuildRequires:  jing
4c6c8a
# needed for xsltproc and xmllint respectively
4c6c8a
BuildRequires:  libxslt libxml2
4c6c8a
d369ce
#global test_version
6b67c3
%global testver      %{?test_version}%{?!test_version:%{version}}
6b67c3
1390a9
Source0:        https://people.redhat.com/jpokorny/pkgs/%{name}/%{name}-%{version}.tar.gz
6b67c3
Source1:        https://people.redhat.com/jpokorny/pkgs/%{name}/%{name}-%{testver}-tests.tar.xz
4c6c8a
Source2:        https://pagure.io/%{name}/raw/v%{version}/f/misc/fix-jing-simplified-rng.xsl
bbcfa6
Source3:        https://pagure.io/%{name}/raw/v%{version}/f/misc/pacemaker-borrow-schemas
9a2d84
1390a9
%description
1390a9
While primarily aimed at (CMAN,rgmanager)->(Corosync/CMAN,Pacemaker) cluster
1390a9
stacks configuration conversion (as per RHEL trend), the command-filter-format
1390a9
framework (capable of XSLT) offers also other uses through its plugin library.
1390a9
1390a9
%package cli
1390a9
Summary:        Tool for transforming/analyzing cluster configuration formats
4c6c8a
Provides:       %{name} = %{version}-%{release}
1390a9
1390a9
BuildRequires:  bash-completion
1390a9
1390a9
BuildRequires:  help2man
1390a9
cae757
# following for pkg_resources module
4c6c8a
Requires:       python3-setuptools
4c6c8a
Requires:       python3-%{name} = %{version}-%{release}
79a135
Requires:       %{_bindir}/nano
1390a9
BuildArch:      noarch
1390a9
1390a9
%description cli
1390a9
While primarily aimed at (CMAN,rgmanager)->(Corosync/CMAN,Pacemaker) cluster
1390a9
stacks configuration conversion (as per RHEL trend), the command-filter-format
1390a9
framework (capable of XSLT) offers also other uses through its plugin library.
1390a9
1390a9
This package contains %{name} command-line interface for the underlying
4c6c8a
library (packaged as python3-%{name}).
1390a9
ff813d
%if %{with python2}
4c6c8a
%package -n python2-%{name}
1390a9
Summary:        Library for transforming/analyzing cluster configuration formats
1390a9
License:        GPLv2+ and GFDL
1390a9
4c6c8a
Provides:       %{name}-lib = %{version}-%{release}
4c6c8a
%{?python_provide:%python_provide python2-%{name}}
4c6c8a
Requires:       %{name}-bin = %{version}-%{release}
4c6c8a
BuildArch:      noarch
1390a9
4c6c8a
%description -n python2-%{name}
4c6c8a
While primarily aimed at (CMAN,rgmanager)->(Corosync/CMAN,Pacemaker) cluster
4c6c8a
stacks configuration conversion (as per RHEL trend), the command-filter-format
4c6c8a
framework (capable of XSLT) offers also other uses through its plugin library.
6b67c3
4c6c8a
This package contains %{name} library including built-in plugins.
ff813d
%endif
4c6c8a
4c6c8a
%package -n python3-%{name}
4c6c8a
Summary:        Library for transforming/analyzing cluster configuration formats
4c6c8a
License:        GPLv2+ and GFDL
4c6c8a
4c6c8a
Provides:       %{name}-lib = %{version}-%{release}
4c6c8a
%{?python_provide:%python_provide python3-%{name}}
ff813d
%if %{without python2}
ff813d
Obsoletes:      python-%{name} < %{version}-%{release}
ff813d
Obsoletes:      python2-%{name} < %{version}-%{release}
ff813d
%endif
4c6c8a
Requires:       %{name}-bin = %{version}-%{release}
4c6c8a
BuildArch:      noarch
1390a9
4c6c8a
%description -n python3-%{name}
1390a9
While primarily aimed at (CMAN,rgmanager)->(Corosync/CMAN,Pacemaker) cluster
1390a9
stacks configuration conversion (as per RHEL trend), the command-filter-format
1390a9
framework (capable of XSLT) offers also other uses through its plugin library.
1390a9
1390a9
This package contains %{name} library including built-in plugins.
1390a9
4c6c8a
%package bin
4c6c8a
Summary:        Common internal compiled files for %{name}
4c6c8a
License:        GPLv2+
4c6c8a
4c6c8a
Requires:       %{name}-common = %{version}-%{release}
4c6c8a
4c6c8a
%description bin
4c6c8a
While primarily aimed at (CMAN,rgmanager)->(Corosync/CMAN,Pacemaker) cluster
4c6c8a
stacks configuration conversion (as per RHEL trend), the command-filter-format
4c6c8a
framework (capable of XSLT) offers also other uses through its plugin library.
4c6c8a
4c6c8a
This package contains internal, arch-specific files for %{name}.
4c6c8a
4c6c8a
%package common
4c6c8a
Summary:        Common internal data files for %{name}
4c6c8a
License:        GPLv2+
4c6c8a
BuildArch:      noarch
4c6c8a
4c6c8a
%description common
4c6c8a
While primarily aimed at (CMAN,rgmanager)->(Corosync/CMAN,Pacemaker) cluster
4c6c8a
stacks configuration conversion (as per RHEL trend), the command-filter-format
4c6c8a
framework (capable of XSLT) offers also other uses through its plugin library.
4c6c8a
4c6c8a
This package contains internal, arch-agnostic files for %{name}.
4c6c8a
1390a9
%package lib-general
1390a9
Summary:        Extra %{name} plugins usable for/as generic/auxiliary products
4c6c8a
Requires:       %{name}-lib = %{version}-%{release}
1390a9
BuildArch:      noarch
1390a9
1390a9
%description lib-general
1390a9
This package contains set of additional plugins targeting variety of generic
1390a9
formats often serving as a byproducts in the intermediate steps of the overall
1390a9
process arrangement: either experimental commands or internally unused,
1390a9
reusable formats and filters.
1390a9
1390a9
%package lib-ccs
1390a9
Summary:        Extra plugins for transforming/analyzing CMAN configuration
1390a9
Requires:       %{name}-lib-general = %{version}-%{release}
1390a9
BuildArch:      noarch
1390a9
1390a9
%description lib-ccs
1390a9
This package contains set of additional plugins targeting CMAN cluster
1390a9
configuration: either experimental commands or internally unused, reusable
1390a9
formats and filters.
1390a9
1390a9
%package lib-pcs
1390a9
Summary:        Extra plugins for transforming/analyzing Pacemaker configuration
1390a9
Requires:       %{name}-lib-general = %{version}-%{release}
1390a9
BuildArch:      noarch
1390a9
1390a9
%description lib-pcs
1390a9
This package contains set of additional plugins targeting Pacemaker cluster
1390a9
configuration: either experimental commands or internally unused, reusable
1390a9
formats and filters.
1390a9
1390a9
%prep
9a2d84
%autosetup -p1 -S git -b 1
1390a9
6b67c3
%if "%{testver}" != "%{version}"
6b67c3
    %{__cp} -a ../"%{name}-%{testver}"/* .
6b67c3
%endif
6b67c3
1390a9
## for some esoteric reason, the line above has to be empty
edd2a1
%{__python3} setup.py saveopts -f setup.cfg pkg_prepare \
edd2a1
                      --ccs-flatten='%{_libexecdir}/%{name}-%{version}/ccs_flatten' \
edd2a1
                      --editor='%{_bindir}/nano' \
edd2a1
                      --extplugins-shared='%{_datarootdir}/%{name}/ext-plugins' \
edd2a1
                      --ra-metadata-dir='%{_datadir}/cluster' \
edd2a1
                      --ra-metadata-ext='metadata' \
edd2a1
                      --shell-posix='%(which sh 2>/dev/null || echo /bin/SHELL-POSIX)' \
edd2a1
                      --shell-bashlike='%(which bash 2>/dev/null || echo /bin/SHELL-BASHLIKE)'
edd2a1
%{__python3} setup.py saveopts -f setup.cfg pkg_prepare \
4c6c8a
  --report-bugs='https://bugzilla.redhat.com/enter_bug.cgi?product=Fedora&component=%{name}'
1390a9
1390a9
%build
ff813d
%if %{with python2}
4c6c8a
%py2_build
ff813d
%endif
4c6c8a
# see https://fedoraproject.org/wiki/Changes/python3_c.utf-8_locale;
4c6c8a
# specifically:
4c6c8a
#   File "setup.py", line 466, in _pkg_prepare_file
4c6c8a
#     content = fr.read()
4c6c8a
#   File "/usr/lib64/python3.5/encodings/ascii.py", line 26, in decode
4c6c8a
#     return codecs.ascii_decode(input, self.errors)[0]
4c6c8a
# UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 221: ordinal not in range(128)
4c6c8a
export LC_ALL=C.UTF-8 LANG=C.UTF-8
4c6c8a
%py3_build
4c6c8a
b37751
%{__python3} -I ./run-dev --skip-ext --completion-bash 2>/dev/null \
1390a9
  | sed 's|run[-_]dev|%{name}|g' > .bashcomp
9a2d84
# generate man pages (proper commands and aliases from a sorted sequence)
1390a9
%{__mkdir_p} -- .manpages/man1
b37751
{ echo; %{__python3} -I ./run-dev -l | sed -n 's|^  \(\S\+\).*|\1|p' \
ff813d
  | sort; } > .subcmds
6b67c3
sed -e 's:\(.\+\):\\\&\\fIrun_dev-\1\\fR\\\|(1), :' \
6b67c3
  -e '1s|\(.*\)|\[SEE ALSO\]\n|' \
9a2d84
  -e '$s|\(.*\)|\1\nand perhaps more|' \
9a2d84
  .subcmds > .see-also
9a2d84
help2man -N -h -H -i .see-also \
b37751
  -n "$(sed -n '2s|[^(]\+(\([^)]\+\))|\1|p' README)" \
b37751
  '%{__python3} -I ./run-dev' | sed 's|run\\\?[-_]dev|%{name}|g' \
9a2d84
  > ".manpages/man1/%{name}.1"
9a2d84
while read cmd; do
6b67c3
  [ -n "${cmd}" ] || continue
9a2d84
  echo -e "#\!/bin/sh\n{ [ \$# -ge 1 ] && [ \"\$1\" = \"--version\" ] \
b37751
  && %{__python3} -I ./run-dev \"\$@\" \
b37751
  || %{__python3} -I ./run-dev \"${cmd}\" \"\$@\"; }" > ".tmp-${cmd}"
9a2d84
  chmod +x ".tmp-${cmd}"
9a2d84
  grep -v "^${cmd}\$" .subcmds \
6b67c3
    | grep -e '^$' -e "$(echo ${cmd} | cut -d- -f1)\(-\|\$\)" \
6b67c3
    | sed -e 's:\(.\+\):\\\&\\fIrun_dev-\1\\fR\\\|(1), :' \
6b67c3
      -e '1s|\(.*\)|\[SEE ALSO\]\n\\\&\\fIrun_dev\\fR\\\|(1), \n|' \
9a2d84
      -e '$s|\(.*\)|\1\nand perhaps more|' > .see-also
9a2d84
  # XXX uses ";;&" bashism
9a2d84
  case "${cmd}" in
9a2d84
  ccs[2-]*)
9a2d84
    sed -i \
9a2d84
      '1s:\(.*\):\1\n\\\&\\fIcluster.conf\\fR\\\|(5), \\\&\\fIccs\\fR\\\|(7), :' \
9a2d84
    .see-also
9a2d84
    ;;&
66c5d8
  ccs2pcs*)
66c5d8
    sed -i \
66c5d8
      '1s:\(.*\):\1\n\\\&\\fI%{_defaultdocdir}/%{name}-%{version}/rgmanager-pacemaker\\fR\\\|, :' \
66c5d8
    .see-also
66c5d8
    ;;&
9a2d84
  *[2-]pcscmd*)
9a2d84
    sed -i '1s:\(.*\):\1\n\\\&\\fIpcs\\fR\\\|(8), :' .see-also
9a2d84
    ;;&
9a2d84
  esac
9a2d84
  help2man -N -h -H -i .see-also -n "${cmd}" "./.tmp-${cmd}" \
9a2d84
    | sed 's|run\\\?[-_]dev|%{name}|g' \
9a2d84
  > ".manpages/man1/%{name}-${cmd}.1"
9a2d84
done < .subcmds
1390a9
bbcfa6
OUTPUTDIR=.schemas POSTPROCESS="%{SOURCE2}" sh "%{SOURCE3}" --clobber
6b67c3
1390a9
%install
ff813d
%if %{with python2}
4c6c8a
%py2_install
ff813d
%endif
4c6c8a
# see build section
4c6c8a
export LC_ALL=C.UTF-8 LANG=C.UTF-8
4c6c8a
%py3_install
1390a9
1390a9
# following is needed due to umask 022 not taking effect(?) leading to 775
1390a9
%{__chmod} -- g-w '%{buildroot}%{_libexecdir}/%{name}-%{version}/ccs_flatten'
1390a9
# %%{_bindir}/%%{name} should have been created
1390a9
test -f '%{buildroot}%{_bindir}/%{name}' \
1390a9
  || %{__install} -D -pm 644 -- '%{buildroot}%{_bindir}/%{name}' \
1390a9
                                '%{buildroot}%{_bindir}/%{name}'
4c6c8a
4c6c8a
# move data files from python-specific locations to a single common one
4c6c8a
# and possibly symlink that back
4c6c8a
%{__mkdir_p} -- '%{buildroot}%{_datarootdir}/%{name}/formats'
4c6c8a
for format in cib corosync; do
4c6c8a
  %{__cp} -a -t '%{buildroot}%{_datarootdir}/%{name}/formats' \
4c6c8a
          -- "%{buildroot}%{python3_sitelib}/%{name}/formats/${format}"
ff813d
%if %{with python2}
4c6c8a
  %{__rm} -f -- "%{buildroot}%{python2_sitelib}/%{name}/formats/${format}"/*
4c6c8a
  ln -s -t "%{buildroot}%{python2_sitelib}/%{name}/formats/${format}" \
4c6c8a
     -- $(pushd "%{buildroot}%{_datarootdir}/%{name}/formats/${format}" >/dev/null; \
4c6c8a
          ls -1A | sed "s:.*:%{_datarootdir}/%{name}/formats/${format}/\\0:")
ff813d
%endif
4c6c8a
  %{__rm} -f -- "%{buildroot}%{python3_sitelib}/%{name}/formats/${format}"/*
4c6c8a
  ln -s -t "%{buildroot}%{python3_sitelib}/%{name}/formats/${format}" \
4c6c8a
     -- $(pushd "%{buildroot}%{_datarootdir}/%{name}/formats/${format}" >/dev/null; \
4c6c8a
          ls -1A | sed "s:.*:%{_datarootdir}/%{name}/formats/${format}/\\0:")
4c6c8a
done
4c6c8a
4c6c8a
# move ext-plugins from python-specific locations to a single common one
4c6c8a
# incl. the different sorts of precompiled bytecodes
4c6c8a
%{__mkdir_p} -- '%{buildroot}%{_datarootdir}/%{name}/ext-plugins'
ff813d
%if %{with python2}
4c6c8a
mv -t '%{buildroot}%{_datarootdir}/%{name}/ext-plugins' \
4c6c8a
   -- '%{buildroot}%{python2_sitelib}/%{name}'/ext-plugins/*/
ff813d
%endif
4c6c8a
%{__cp} -af -t '%{buildroot}%{_datarootdir}/%{name}/ext-plugins' \
4c6c8a
        -- '%{buildroot}%{python3_sitelib}/%{name}'/ext-plugins/*
4c6c8a
%{__rm} -rf -- '%{buildroot}%{python3_sitelib}/%{name}'/ext-plugins/*/
4c6c8a
b37751
# byte-compilation
b37751
%if %{with python2}
d29130
%if "%{?quote:1}" != "" && "%{?quote:1}" != "1"
d29130
%py_byte_compile %{quote:%{__python2} -Es} %{python2_sitelib}/%{name}
d29130
%py_byte_compile %{quote:%{__python2} -Es} %{buildroot}%{_datarootdir}/%{name}/ext-plugins
d29130
%else
d29130
%py_byte_compile %{__python2} %{python2_sitelib}/%{name}
d29130
%py_byte_compile %{__python2} %{buildroot}%{_datarootdir}/%{name}/ext-plugins
d29130
%endif
d29130
%endif
d29130
%if "%{?quote:1}" != "" && "%{?quote:1}" != "1"
d29130
%py_byte_compile %{quote:%{__python3} -I} %{python3_sitelib}/%{name}
d29130
%py_byte_compile %{quote:%{__python3} -I} %{buildroot}%{_datarootdir}/%{name}/ext-plugins
d29130
%else
d29130
%py_byte_compile %{__python3} %{python3_sitelib}/%{name}
d29130
%py_byte_compile %{__python3} %{buildroot}%{_datarootdir}/%{name}/ext-plugins
b37751
%endif
b37751
1390a9
declare bashcompdir="$(pkg-config --variable=completionsdir bash-completion \
1390a9
                       || echo '%{_datadir}/bash-completion/completions')"
1390a9
declare bashcomp="${bashcompdir}/%{name}"
1390a9
%{__install} -D -pm 644 -- \
1390a9
  .bashcomp '%{buildroot}%{_sysconfdir}/%{name}/bash-completion'
1390a9
%{__mkdir_p} -- "%{buildroot}${bashcompdir}"
1390a9
ln -s '%{_sysconfdir}/%{name}/bash-completion' "%{buildroot}${bashcomp}"
1390a9
# own %%{_datadir}/bash-completion in case of ...bash-completion/completions,
1390a9
# more generally any path up to any of /, /usr, /usr/share, /etc
1390a9
while true; do
1390a9
  test "$(dirname "${bashcompdir}")" != "/" \
1390a9
  && test "$(dirname "${bashcompdir}")" != "%{_prefix}" \
1390a9
  && test "$(dirname "${bashcompdir}")" != "%{_datadir}" \
1390a9
  && test "$(dirname "${bashcompdir}")" != "%{_sysconfdir}" \
1390a9
  || break
1390a9
  bashcompdir="$(dirname "${bashcompdir}")"
1390a9
done
1390a9
cat >.bashcomp-files <<-EOF
1390a9
	${bashcompdir}
1390a9
	%dir %{_sysconfdir}/%{name}
1390a9
	%verify(not size md5 mtime) %{_sysconfdir}/%{name}/bash-completion
1390a9
EOF
1390a9
%{__mkdir_p} -- '%{buildroot}%{_mandir}'
66c5d8
%{__cp} -a -t '%{buildroot}%{_mandir}' -- .manpages/*
4c6c8a
%{__cp} -a -f -t '%{buildroot}%{_datarootdir}/%{name}/formats/cib' \
6b67c3
              -- .schemas/pacemaker-*.*.rng
1390a9
%{__mkdir_p} -- '%{buildroot}%{_defaultdocdir}/%{name}-%{version}'
66c5d8
%{__cp} -a -t '%{buildroot}%{_defaultdocdir}/%{name}-%{version}' \
66c5d8
           -- gpl-2.0.txt doc/*.txt doc/rgmanager-pacemaker
1390a9
1390a9
%check
1390a9
# just a basic sanity check
1390a9
# we need to massage RA metadata files and PATH so the local run works
1390a9
# XXX we could also inject buildroot's site_packages dir to PYTHONPATH
1390a9
declare ret=0 \
1390a9
        ccs_flatten_dir="$(dirname '%{buildroot}%{_libexecdir}/%{name}-%{version}/ccs_flatten')"
1390a9
ln -s '%{buildroot}%{_datadir}/cluster'/*.'metadata' \
1390a9
      "${ccs_flatten_dir}"
ff813d
%if %{with python2}
4c6c8a
PATH="${PATH:+${PATH}:}${ccs_flatten_dir}" PYTHONEXEC="%{__python2} -Es" ./run-tests
ff813d
%endif
4c6c8a
# see build section
4c6c8a
export LC_ALL=C.UTF-8 LANG=C.UTF-8
b37751
PATH="${PATH:+${PATH}:}${ccs_flatten_dir}" PYTHONEXEC="%{__python3} -I" ./run-tests
1390a9
ret=$?
1390a9
%{__rm} -f -- "${ccs_flatten_dir}"/*.'metadata'
1390a9
[ ${ret} -eq 0 ] || exit ${ret}
1390a9
1390a9
%post cli
1390a9
if [ $1 -gt 1 ]; then  # no gain regenerating it w/ fresh install (same result)
1390a9
declare bashcomp="%{_sysconfdir}/%{name}/bash-completion"
1390a9
%{_bindir}/%{name} --completion-bash > "${bashcomp}" 2>/dev/null || :
1390a9
fi
1390a9
1390a9
%post lib-general
1390a9
declare bashcomp="%{_sysconfdir}/%{name}/bash-completion"
1390a9
# if the completion file is not present, suppose it is not desired
1390a9
test -x '%{_bindir}/%{name}' && test -f "${bashcomp}" \
1390a9
  && %{_bindir}/%{name} --completion-bash > "${bashcomp}" 2>/dev/null || :
1390a9
1390a9
%post lib-ccs
1390a9
declare bashcomp="%{_sysconfdir}/%{name}/bash-completion"
1390a9
# if the completion file is not present, suppose it is not desired
1390a9
test -x '%{_bindir}/%{name}' && test -f "${bashcomp}" \
1390a9
  && %{_bindir}/%{name} --completion-bash > "${bashcomp}" 2>/dev/null || :
1390a9
1390a9
%post lib-pcs
1390a9
declare bashcomp="%{_sysconfdir}/%{name}/bash-completion"
1390a9
# if the completion file is not present, suppose it is not desired
1390a9
test -x '%{_bindir}/%{name}' && test -f "${bashcomp}" \
1390a9
  && %{_bindir}/%{name} --completion-bash > "${bashcomp}" 2>/dev/null || :
1390a9
1390a9
%files cli -f .bashcomp-files
1390a9
%{_mandir}/man1/*.1*
1390a9
%{_bindir}/%{name}
1390a9
ff813d
%if %{with python2}
4c6c8a
%files -n python2-%{name}
1390a9
%{python2_sitelib}/%{name}
1390a9
%{python2_sitelib}/%{name}-*.egg-info
ff813d
%endif
4c6c8a
4c6c8a
%files -n python3-%{name}
4c6c8a
%{python3_sitelib}/%{name}
4c6c8a
%{python3_sitelib}/%{name}-*.egg-info
4c6c8a
4c6c8a
%files bin
1390a9
%{_libexecdir}/%{name}-%{version}
4c6c8a
4c6c8a
%files common
1390a9
%{_datadir}/cluster
4c6c8a
%{_datarootdir}/%{name}
4c6c8a
%dir %{_defaultdocdir}/%{name}-%{version}
4c6c8a
%{_defaultdocdir}/%{name}-%{version}/*[^[:digit:]]
4c6c8a
%license %{_defaultdocdir}/%{name}-%{version}/*[[:digit:]].txt
1390a9
1390a9
%files lib-general
4c6c8a
%{_datarootdir}/%{name}/ext-plugins/lib-general
1390a9
1390a9
%files lib-ccs
4c6c8a
%{_datarootdir}/%{name}/ext-plugins/lib-ccs
1390a9
1390a9
%files lib-pcs
4c6c8a
%{_datarootdir}/%{name}/ext-plugins/lib-pcs
1390a9
1390a9
%changelog
dfa03f
* Mon Feb 18 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.77.1-8
dfa03f
- Enable python dependency generator
dfa03f
668deb
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.77.1-7
668deb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
668deb
d29130
* Thu Aug 02 2018 Jan Pokorný <jpokorny+rpm-clufter@fedoraproject.org> - 0.77.1-6
d29130
- fix missing explicit BuildRequires to ensure environment for compiling
d29130
  C code per the guidelines, and to fix FTBFS: rhbz#1603658
d29130
  (contributed by Igor Gnatenko <ignatenkobrain@fedoraproject.org>)
d29130
- fix a thinko in py_byte_compile space-contained argument passing
d29130
  (https://github.com/rpm-software-management/rpm/issues/222#issuecomment-410026431)
d29130
f51f7e
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.77.1-5
f51f7e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
f51f7e
c851ed
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.77.1-4
c851ed
- Rebuilt for Python 3.7
c851ed
b37751
* Mon Mar 19 2018 Jan Pokorný <jpokorny+rpm-clufter@fedoraproject.org> - 0.77.1-3
b37751
- fix previously omitted unqualified python invocations, drop no longer
b37751
  needed byte-compilation products through a full grip on such a process,
b37751
  and also use -I switch to python3 instead of possibly weaker -Es
b37751
ff813d
* Mon Mar 19 2018 Jan Pokorný <jpokorny+rpm-clufter@fedoraproject.org> - 0.77.1-2
ff813d
- stop creating Python 2 packages by default (nothing in Fedora uses it)
ff813d
- fix a previously omitted unqualified python invocation
ff813d
edd2a1
* Thu Mar 15 2018 Jan Pokorný <jpokorny+rpm-clufter@fedoraproject.org> - 0.77.1-1
edd2a1
- drop no longer favoured Group tag
edd2a1
- replace unqualified python invocations with explicit python3
edd2a1
- bump upstream package, see https://pagure.io/clufter/releases
edd2a1
8cb641
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.77.0-3
8cb641
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
8cb641
e101a0
* Wed Jan 03 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.77.0-2
e101a0
- Update Python 2 dependency declarations to new packaging standards
e101a0
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
e101a0
be36e1
* Sun Nov 12 2017 Jan Pokorný <jpokorny+rpm-clufter@fedoraproject.org> - 0.77.0-1
be36e1
- bump upstream package, see https://pagure.io/clufter/releases
be36e1
27dacb
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.76.0-3
27dacb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
27dacb
cd53ad
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.76.0-2
cd53ad
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
cd53ad
bbcfa6
* Tue Jun 06 2017 Jan Pokorný <jpokorny+rpm-clufter@fedoraproject.org> - 0.76.0-1
bbcfa6
- factor "borrow validation schemas from pacemaker" out to a separate script
bbcfa6
- bump upstream package, see https://pagure.io/clufter/releases
bbcfa6
79a135
* Fri May 26 2017 Jan Pokorný <jpokorny+rpm-clufter@fedoraproject.org> - 0.75.0-1
79a135
- move nano fallback editor dependency to -cli package [PGissue#1]
79a135
- bump upstream package, see https://pagure.io/clufter/releases
79a135
4c6c8a
* Tue Mar 21 2017 Jan Pokorný <jpokorny+rpm-clufter@fedoraproject.org> - 0.70.0-1
4c6c8a
- split -bin and -common packages, the former becoming the only arch-specific
4c6c8a
- also move python-specific (entry points, main files) back from -cli package
4c6c8a
- also rename python-clufter to python2-clufter (former is a legacy alias)
4c6c8a
- also leverage the above modularization to package python3-clufter in parallel
4c6c8a
- bump upstream package (version rolling the above changes out)
4c6c8a
6c350d
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.59.8-2
6c350d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
6c350d
a4f177
* Wed Jan 18 2017 Jan Pokorný <jpokorny+rpm-clufter@fedoraproject.org> - 0.59.8-1
a4f177
- bump upstream package, see
a4f177
  https://github.com/jnpkrn/clufter/releases/tag/v0.59.8
a4f177
00260d
* Mon Dec 12 2016 Jan Pokorný <jpokorny+rpm-clufter@fedoraproject.org> - 0.59.7-1
00260d
- bump upstream package, see
00260d
  https://github.com/jnpkrn/clufter/releases/tag/v0.59.7
00260d
d369ce
* Fri Oct 21 2016 Jan Pokorný <jpokorny+rpm-clufter@fedoraproject.org> - 0.59.6-1
d369ce
- bump upstream package, see https://pagure.io/clufter/releases
d369ce
363efd
* Tue Aug 09 2016 Jan Pokorný <jpokorny+rpm-clufter@fedoraproject.org> - 0.59.5-1
363efd
- bump upstream package, see https://pagure.io/clufter/releases
363efd
f31a61
* Wed Jul 27 2016 Jan Pokorný <jpokorny+rpm-clufter@fedoraproject.org> - 0.59.1-1
f31a61
- bump upstream package, see https://pagure.io/clufter/releases
f31a61
1120b4
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.58.0-2
1120b4
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
1120b4
62e5f1
* Mon Jul 18 2016 Jan Pokorný <jpokorny+rpm-clufter@fedoraproject.org> - 0.58.0-1
62e5f1
- bump upstream package, see https://pagure.io/clufter/releases
62e5f1
8c9ee7
* Fri Jul 01 2016 Jan Pokorný <jpokorny+rpm-clufter@fedoraproject.org> - 0.57.0-1
8c9ee7
- bump upstream package, see https://pagure.io/clufter/releases
8c9ee7
  (cumulative update incl. 0.56.3 and 0.57.0 changes)
8c9ee7
- make Python interpreter execution sane
8c9ee7
- drop license compatibility macro as pointless for Fedora (and EPEL,
8c9ee7
  when it comes to it) at this point
8c9ee7
b1f1ab
* Fri Mar 18 2016 Jan Pokorný <jpokorny+rpm-clufter@fedoraproject.org> - 0.56.2-1
b1f1ab
- bump upstream package, see
b1f1ab
  https://github.com/jnpkrn/clufter/releases/tag/v0.56.2
b1f1ab
6b67c3
* Tue Feb 09 2016 Jan Pokorný <jpokorny+rpm-clufter@fedoraproject.org> - 0.56.1-1
6b67c3
- add ability to borrow validation schemas from pacemaker installed along
6b67c3
- bump upstream package, see
6b67c3
  https://github.com/jnpkrn/clufter/releases/tag/v0.56.1
6b67c3
66c5d8
* Tue Feb 02 2016 Jan Pokorný <jpokorny+rpm-clufter@fedoraproject.org> - 0.56.0-1
66c5d8
- move entry_points.txt to clufter-cli sub-package
66c5d8
- general spec file refresh (pagure.io as a default project base, etc.)
66c5d8
- bump upstream package, see
66c5d8
  https://github.com/jnpkrn/clufter/releases/tag/v0.56.0
66c5d8
9a2d84
* Mon Dec 21 2015 Jan Pokorný <jpokorny+rpm-clufter@fedoraproject.org> - 0.55.0-1
9a2d84
- auto-generate SEE ALSO sections for the man pages
9a2d84
- bump upstream package (intentional jump on upstream front),
9a2d84
  see https://github.com/jnpkrn/clufter/releases/tag/v0.55.0
9a2d84
4eea7c
* Fri Oct 09 2015 Jan Pokorný <jpokorny+rpm-clufter@fedoraproject.org> - 0.50.5-1
4eea7c
- generate man pages also for offered commands
4eea7c
- bump upstream package
4eea7c
b7138f
* Thu Sep 10 2015 Jan Pokorný <jpokorny+rpm-clufter@fedoraproject.org> - 0.50.4-1
b7138f
- bump upstream package
b7138f
d718fb
* Mon Sep 07 2015 Jan Pokorný <jpokorny+rpm-clufter@fedoraproject.org> - 0.50.3-1
d718fb
- bump upstream package
d718fb
1a829a
* Wed Aug 12 2015 Jan Pokorný <jpokorny+rpm-clufter@fedoraproject.org> - 0.50.2-1
1a829a
- bump upstream package
1a829a
b24859
* Wed Jul 15 2015 Jan Pokorný <jpokorny+rpm-clufter@fedoraproject.org> - 0.50.1-1
b24859
- bump upstream package
b24859
280dba
* Fri Jul 03 2015 Jan Pokorný <jpokorny+rpm-clufter@fedoraproject.org> - 0.50.0-1
280dba
- bump upstream package (intentional jump on upstream front)
280dba
22da59
* Fri Jun 19 2015 Jan Pokorný <jpokorny+rpm-clufter@fedoraproject.org> - 0.12.0-1
22da59
- bump upstream package
22da59
adfdfb
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11.2-2
adfdfb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
adfdfb
f2412c
* Mon Jun 01 2015 Jan Pokorný <jpokorny+rpm-clufter@fedoraproject.org> - 0.11.2-1
f2412c
- move completion module to clufter-cli sub-package
f2412c
- bump upstream package
f2412c
50e9d3
* Tue May 19 2015 Jan Pokorný <jpokorny+rpm-clufter@fedoraproject.org> - 0.11.1-1
50e9d3
- bump upstream package
50e9d3
742711
* Wed Apr 15 2015 Jan Pokorný <jpokorny+rpm-clufter@fedoraproject.org> - 0.11.0-1
742711
- bump upstream package
742711
1cd461
* Wed Apr 08 2015 Jan Pokorný <jpokorny+rpm-clufter@fedoraproject.org> - 0.10.4-1
1cd461
- bump upstream package
1cd461
3eed98
* Mon Mar 23 2015 Jan Pokorný <jpokorny+rpm-clufter@fedoraproject.org> - 0.10.3-1
3eed98
- bump upstream package
3eed98
cae757
* Tue Mar 17 2015 Jan Pokorný <jpokorny+rpm-clufter@fedoraproject.org> - 0.10.2-1
cae757
- bump upstream package
cae757
- add dependency on python-setuptools
cae757
5cc76c
* Wed Mar 04 2015 Jan Pokorný <jpokorny+rpm-clufter@fedoraproject.org> - 0.10.1-1
5cc76c
- bump upstream package
5cc76c
1390a9
* Thu Feb 26 2015 Jan Pokorný <jpokorny+rpm-clufter@fedoraproject.org> - 0.10.0-1
1390a9
- packaging enhacements (structure, redundancy, ownership, scriptlets, symlink)
1390a9
- version bump so as not to collide with python-clufter co-packaged with pcs
1390a9
1390a9
* Tue Jan 20 2015 Jan Pokorný <jpokorny+rpm-clufter@fedoraproject.org> - 0.3.5-1
1390a9
- packaging enhancements (pkg-config, license tag)
1390a9
1390a9
* Wed Jan 14 2015 Jan Pokorný <jpokorny+rpm-clufter@fedoraproject.org> - 0.3.4-1
1390a9
- packaging enhancements (permissions, ownership)
1390a9
- man page for CLI frontend now included
1390a9
1390a9
* Tue Jan 13 2015 Jan Pokorný <jpokorny+rpm-clufter@fedoraproject.org> - 0.3.3-1
1390a9
- initial build