From aa335068b799bc19e48fd0959328d45e8c405023414a0d9c6fafe91d81539364 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 25 Feb 2019 12:43:29 +0000 Subject: [PATCH] - Install doc and license OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-coreapi?expand=0&rev=3 --- LICENSE.md | 29 +++++++++++++++++++++++++++++ python-coreapi.changes | 5 +++++ python-coreapi.spec | 6 +++++- 3 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 LICENSE.md diff --git a/LICENSE.md b/LICENSE.md new file mode 100644 index 0000000..253596f --- /dev/null +++ b/LICENSE.md @@ -0,0 +1,29 @@ +# License + +Copyright © 2017-present, Tom Christie. +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +* Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/python-coreapi.changes b/python-coreapi.changes index b874a29..0e68129 100644 --- a/python-coreapi.changes +++ b/python-coreapi.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Feb 25 12:43:17 UTC 2019 - Tomáš Chvátal + +- Install doc and license + ------------------------------------------------------------------- Sun Feb 24 14:52:31 UTC 2019 - John Vandenberg diff --git a/python-coreapi.spec b/python-coreapi.spec index 00242d9..7db3ec1 100644 --- a/python-coreapi.spec +++ b/python-coreapi.spec @@ -24,7 +24,8 @@ Summary: Python client library for Core API License: BSD-2-Clause Group: Development/Languages/Python URL: https://github.com/core-api/python-client -Source: https://github.com/core-api/python-client/archive/2.3.3.tar.gz#/coreapi-%{version}.tar.gz +Source: https://github.com/core-api/python-client/archive/%{version}.tar.gz#/coreapi-%{version}.tar.gz +Source1: https://raw.githubusercontent.com/core-api/python-client/master/LICENSE.md BuildRequires: %{python_module coreschema} BuildRequires: %{python_module itypes} BuildRequires: %{python_module pytest} @@ -46,6 +47,7 @@ for representing Web APIs. %prep %setup -q -n python-client-%{version} +cp %{SOURCE1} . %build %python_build @@ -58,6 +60,8 @@ for representing Web APIs. %python_exec -m pytest %files %{python_files} +%license LICENSE.md +%doc README.md %{python_sitelib}/coreapi/ %{python_sitelib}/coreapi-%{version}-py*.egg-info