From f9e9890849b6fa16d339b734f596fe1adc24b1c3fb564997b01d628196014eac 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:46:23 +0000 Subject: [PATCH] - Cleanup with spec-cleaner - Add license - Fix URL OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-itypes?expand=0&rev=2 --- LICENSE.md | 29 +++++++++++++++++++++++++++++ python-itypes.changes | 7 +++++++ python-itypes.spec | 15 +++++++-------- 3 files changed, 43 insertions(+), 8 deletions(-) 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-itypes.changes b/python-itypes.changes index 554ccd5..c0c7e73 100644 --- a/python-itypes.changes +++ b/python-itypes.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon Feb 25 12:46:09 UTC 2019 - Tomáš Chvátal + +- Cleanup with spec-cleaner +- Add license +- Fix URL + ------------------------------------------------------------------- Sat May 20 13:16:08 UTC 2017 - matwey.kornilov@gmail.com diff --git a/python-itypes.spec b/python-itypes.spec index f910e01..9d2a8e9 100644 --- a/python-itypes.spec +++ b/python-itypes.spec @@ -1,7 +1,7 @@ # # spec file for package python-itypes # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 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 @@ -12,7 +12,7 @@ # 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/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -23,13 +23,12 @@ Release: 0 Summary: Basic immutable container types for Python License: BSD-2-Clause Group: Development/Languages/Python -Url: https://pypi.python.org/pypi/itypes/1.1.0 +URL: https://github.com/tomchristie/itypes Source: https://files.pythonhosted.org/packages/source/i/itypes/itypes-%{version}.tar.gz -BuildRequires: %{python_module base} +Source1: https://raw.githubusercontent.com/tomchristie/itypes/master/LICENSE.md BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %python_subpackages @@ -43,17 +42,17 @@ when you want to create custom types with restricted, immutable interfaces. %prep %setup -q -n itypes-%{version} +cp %{SOURCE1} . %build %python_build %install %python_install - -%fdupes %{buildroot}%{_prefix} +%python_expand %fdupes %{buildroot}%{$python_sitelib} %files %{python_files} -%defattr(-,root,root) +%license LICENSE.md %{python_sitelib}/itypes.py* %{python_sitelib}/itypes-%{version}-py*.egg-info %pycache_only %{python_sitelib}/__pycache__