From 9091e786fd95dcf66bede825ca6212d84d9aec91 Mon Sep 17 00:00:00 2001
From: Bernhard M. Wiedemann <bwiedemann@suse.de>
Date: Sep 13 2019 14:29:36 +0000
Subject: restructure files


to remain below github limit of 1000 entries

---

diff --git a/python-yarb.changes b/python-yarb.changes
new file mode 100644
index 0000000..e16de4b
--- /dev/null
+++ b/python-yarb.changes
@@ -0,0 +1,29 @@
+-------------------------------------------------------------------
+Fri Dec  7 14:54:43 UTC 2018 - rick.salevsky@suse.com
+
+- Add to SUSE OpenStack Cloud 7 (fate#326791, bsc#1111232)
+
+-------------------------------------------------------------------
+Tue Dec  4 12:56:21 UTC 2018 - Matej Cepl <mcepl@suse.com>
+
+- Remove superfluous devel dependency for noarch package
+
+-------------------------------------------------------------------
+Tue Feb 13 10:47:28 UTC 2018 - igarcia@suse.com
+
+- update to version 1.0.0
+  * update readme
+  * Update config file and provide an example one
+
+-------------------------------------------------------------------
+Thu Feb  8 16:14:37 UTC 2018 - igarcia@suse.com
+
+- update to version 0.1.2
+  * protect against a timeout while deleting
+  * improve error message on wrong/invalid credentials
+  * add more tests
+
+-------------------------------------------------------------------
+Tue Feb  6 15:10:35 UTC 2018 - igarcia@suse.com
+
+- First 0.1 version
diff --git a/python-yarb.spec b/python-yarb.spec
new file mode 100644
index 0000000..e683dff
--- /dev/null
+++ b/python-yarb.spec
@@ -0,0 +1,77 @@
+#
+# spec file for package python-yarb
+#
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+#
+# All modifications and additions to the file contributed by third parties
+# remain the property of their copyright owners, unless otherwise agreed
+# upon. The license for this file, and modifications and additions to the
+# file, is the same license as for the pristine package itself (unless the
+# license for the pristine package is not an Open Source License, in which
+# case the license is the MIT License). An "Open Source License" is a
+# license that conforms to the Open Source Definition (Version 1.9)
+# published by the Open Source Initiative.
+
+# Please submit bugfixes or comments via http://bugs.opensuse.org/
+#
+
+
+#
+%define simple_name yarb
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+Name:           python-%{simple_name}
+Version:        1.0.0
+Release:        0
+Url:            https://github.com/Itxaka/%{simple_name}
+Summary:        Yet Another Rabbitmq Balancer
+License:        GPL-2.0-only
+Group:          Development/Languages/Python
+Source:         %{simple_name}-%{version}.tar.gz
+BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+BuildRequires:  %{python_module mock}
+BuildRequires:  %{python_module requests}
+BuildRequires:  %{python_module setuptools}
+BuildRequires:  fdupes
+BuildRequires:  python-rpm-macros
+Requires:       python-requests
+Requires(post):   update-alternatives
+Requires(postun): update-alternatives
+BuildArch:      noarch
+
+%python_subpackages
+
+%description
+yarb is an script that tries to balance a rabbitmq cluster by calculating and
+deleting queues that should not be in a node in order to let them be recreated
+in a different node, reaching a more balanced cluster.
+
+%prep
+%setup -q -n %{simple_name}-%{version}
+
+%build
+%python_build
+
+%install
+%python_install
+%python_clone -a %{buildroot}%{_bindir}/yarb
+%python_expand %fdupes %{buildroot}%{$python_sitelib}/%{simple_name}
+%fdupes %{buildroot}%{_bindir}
+
+%check
+%python_exec setup.py test
+
+%post
+%python_install_alternative yarb
+
+%postun
+%python_uninstall_alternative yarb
+
+%files  %{python_files}
+%defattr(-,root,root,-)
+%doc README.md
+%license LICENSE
+%python_alternative %{_bindir}/yarb
+%{python_sitelib}/yarb/
+%{python_sitelib}/yarb-*.egg-info
+
+%changelog