1
0
forked from pool/python-itypes

- 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
This commit is contained in:
Tomáš Chvátal 2019-02-25 12:46:23 +00:00 committed by Git OBS Bridge
parent 48403cbf5b
commit 7868bae8e7
3 changed files with 43 additions and 8 deletions

29
LICENSE.md Normal file
View File

@ -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.

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Mon Feb 25 12:46:09 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Cleanup with spec-cleaner
- Add license
- Fix URL
-------------------------------------------------------------------
Sat May 20 13:16:08 UTC 2017 - matwey.kornilov@gmail.com

View File

@ -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__