diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..4a73b51 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2014-2017 Erik Olof Gunnar Andersson + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/python-amqpstorm.changes b/python-amqpstorm.changes index da1c5d3..d0d3f76 100644 --- a/python-amqpstorm.changes +++ b/python-amqpstorm.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Wed Aug 29 13:47:38 UTC 2018 - tchvatal@suse.com + +- Install license file +- Make sure we run unittests +- State out all the requirements from setup.py and friends +- Drop not really required devel dependency + ------------------------------------------------------------------- Tue Aug 28 22:14:56 UTC 2018 - sean.marlow@suse.com diff --git a/python-amqpstorm.spec b/python-amqpstorm.spec index c41bc42..d1ef2a4 100644 --- a/python-amqpstorm.spec +++ b/python-amqpstorm.spec @@ -26,12 +26,17 @@ License: MIT Group: Development/Languages/Python URL: https://github.com/eandersson/amqpstorm Source: https://files.pythonhosted.org/packages/source/A/AMQPStorm/AMQPStorm-%{version}.tar.gz -BuildRequires: %{python_module devel} -BuildRequires: %{python_module pamqp} +Source1: https://raw.githubusercontent.com/eandersson/amqpstorm/master/LICENSE +BuildRequires: %{python_module mock} +BuildRequires: %{python_module nose-timer} +BuildRequires: %{python_module nose} +BuildRequires: %{python_module pamqp >= 1.6.1} +BuildRequires: %{python_module requests} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-pamqp +Requires: python-pamqp >= 1.6.1 +Requires: python-requests BuildArch: noarch %python_subpackages @@ -44,6 +49,7 @@ When using a SSL connection, TLSv1 or higher is required. %prep %setup -q -n AMQPStorm-%{version} +cp %{SOURCE1} . %build %python_build @@ -53,7 +59,11 @@ When using a SSL connection, TLSv1 or higher is required. %python_expand %fdupes %{buildroot}%{$python_sitelib}/amqpstorm %python_expand %fdupes %{buildroot}%{$python_sitelib}/examples +%check +%python_expand nosetests-%{$python_bin_suffix} amqpstorm/tests/unit + %files %{python_files} +%license LICENSE %doc README.rst %{python_sitelib}/*