%if 0%{?fedora} > 22 %bcond_without python3 %else %bcond_with python3 %endif %global srcname curator Name: elastic-curator Version: 5.2.0 Release: 1%{?dist} Summary: Tools for managing Elasticsearch indices License: ASL 2.0 URL: https://github.com/elastic/curator # wget preserves the name of the file - curl does not Source0: https://github.com/elastic/%{srcname}/archive/v%{version}.tar.gz BuildArch: noarch %if %{with python3} BuildRequires: python3-certifi BuildRequires: python3-click BuildRequires: python3-coverage BuildRequires: python3-devel BuildRequires: python3-elasticsearch >= 5.4.0 BuildRequires: python3-mock BuildRequires: python3-nose BuildRequires: python3-nose-xcover BuildRequires: python3-sphinx BuildRequires: python3-yaml BuildRequires: python3-setuptools BuildRequires: python3-urllib3 BuildRequires: python3-voluptuous Requires: python3-certifi Requires: python3-click Requires: python3-elasticsearch >= 5.4.0 Requires: python3-yaml Requires: python3-urllib3 Requires: python3-voluptuous %else BuildRequires: python-certifi BuildRequires: python-click BuildRequires: python-coverage BuildRequires: python-devel BuildRequires: python-elasticsearch >= 5.4.0 BuildRequires: python-mock BuildRequires: python-nose BuildRequires: python-nose-xcover BuildRequires: python-sphinx BuildRequires: python-yaml BuildRequires: python-setuptools BuildRequires: python-urllib3 BuildRequires: python-voluptuous Requires: python-certifi Requires: python-click Requires: python-elasticsearch >= 5.4.0 Requires: python-yaml Requires: python-urllib3 Requires: python-voluptuous %endif %description Tools for managing Elasticsearch 5 indices. Curator performs many operations on your Elasticsearch indices, from delete to snapshot to shard allocation routing. %prep %setup -q -n %{srcname}-%{version} # don't run integration tests, they need a working ES instance rm -rf test/integration %build %if %{with python3} %{__python3} setup.py build %else %{__python2} setup.py build %endif # build Sphinx documents sphinx-build -b html docs/ build/sphinx/html sphinx-build -b man docs/ build/sphinx/man cp -pr build/sphinx/html . cp -pr build/sphinx/man . rm -fr {man,html}/{.buildinfo,.doctrees} %install %if %{with python3} %{__python3} setup.py install -O1 --skip-build --root %{buildroot} %else %{__python2} setup.py install -O1 --skip-build --root %{buildroot} %endif install -D -p -m0644 man/curator.1 %{buildroot}%{_mandir}/man1/curator.1 %check %if %{with python3} %{__python3} setup.py test %else %{__python2} setup.py test %endif %files %doc Changelog.rst CONTRIBUTING.md CONTRIBUTORS README.rst html/ %license LICENSE.txt %{_bindir}/es_repo_mgr %{_bindir}/curator %{_bindir}/curator_cli %{_mandir}/man1/curator.1* %if %{with python3} %{python3_sitelib}/%{srcname} %{python3_sitelib}/elasticsearch_curator-%{version}-py3.?.egg-info %else %{python2_sitelib}/%{srcname} %{python2_sitelib}/elasticsearch_curator-%{version}-py2.?.egg-info %endif %changelog * Fri Jun 15 2018 Jeff Cantrill - 5.2.0-1 - elasticsearch-curator-5.2.0 * Wed Feb 07 2018 Fedora Release Engineering - 4.2.5-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 4.2.5-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Feb 10 2017 Fedora Release Engineering - 4.2.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Wed Dec 28 2016 Adam Williamson - 4.2.5-1 - Update to latest release 4.2.5 - Build and package HTML docs, build man page (don't SOURCE it) * Mon Dec 19 2016 Miro HronĨok - Rebuild for Python 3.6 * Tue Jul 19 2016 Fedora Release Engineering - 3.4.0-3 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Wed Feb 03 2016 Fedora Release Engineering - 3.4.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Nov 11 2015 Piotr Popieluch - 3.4.0-1 - Update to new version * Tue Nov 10 2015 Fedora Release Engineering - 3.3.0-2 - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 * Tue Sep 22 2015 Piotr Popieluch - 3.3.0-1 - Update to 3.3.0 * Fri Jul 17 2015 Piotr Popieluch - 3.2.3-1 - Update to 3.2.3 * Thu Jul 2 2015 Piotr Popieluch - 3.2.0-1 - Update to 3.2.0 - Rewrite description - Remove mkdir in %%install - Add missing BuildRequires * Tue Jun 16 2015 Piotr Popieluch - 3.1.0-2 - Fix tests - Switch to python3 on f22 and higher * Tue May 26 2015 Piotr Popieluch - 3.1.0-1 - Update to 3.1.0 * Mon May 11 2015 Piotr Popieluch - 3.0.3-1 - Initial package