Accepting request 1276035 from devel:languages:python:numeric
- Ship the license file. - Switch to pyproject macros. OBS-URL: https://build.opensuse.org/request/show/1276035 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xlwt?expand=0&rev=11
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri May 9 05:21:50 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Ship the license file.
|
||||
- Switch to pyproject macros.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Jan 18 11:40:45 UTC 2025 - ecsos <ecsos@opensuse.org>
|
||||
|
||||
|
||||
+13
-8
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-xlwt
|
||||
#
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -22,11 +22,13 @@ Name: python-xlwt
|
||||
Version: 1.3.0
|
||||
Release: 0
|
||||
Summary: Library to Create Spreadsheet Files Compatible With MS Excel 97/2000/XP/2003
|
||||
License: BSD-4-Clause AND BSD-3-Clause AND LGPL-2.1-or-later
|
||||
Group: Development/Languages/Python
|
||||
URL: https://secure.simplistix.co.uk/svn/xlwt/trunk
|
||||
Source: https://files.pythonhosted.org/packages/source/x/xlwt/xlwt-%{version}.tar.gz
|
||||
License: BSD-3-Clause AND BSD-4-Clause AND LGPL-2.1-or-later
|
||||
URL: https://github.com/python-excel/xlwt
|
||||
Source0: https://files.pythonhosted.org/packages/source/x/xlwt/xlwt-%{version}.tar.gz
|
||||
Source1: https://raw.githubusercontent.com/python-excel/xlwt/refs/heads/master/LICENSE
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: python3-Sphinx
|
||||
@@ -48,13 +50,14 @@ Python 2.3 to 2.6. xlwt is a fork of pyExcelerator.
|
||||
%setup -q -n xlwt-%{version}
|
||||
# fix end of line encoding
|
||||
sed -i 's/\r$//' examples/{numbers_demo.py,panes2.py,image_chg_col_wid.py,zoom_magnification.py}
|
||||
cp %{SOURCE1} .
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
cd docs && make html && rm _build/html/.buildinfo
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%if %{with tests}
|
||||
@@ -66,6 +69,8 @@ cd docs && make html && rm _build/html/.buildinfo
|
||||
%doc README.rst
|
||||
%doc docs/_build/html/
|
||||
%doc examples/
|
||||
%{python_sitelib}/*
|
||||
%license LICENSE
|
||||
%{python_sitelib}/xlwt
|
||||
%{python_sitelib}/xlwt-%{version}.dist-info
|
||||
|
||||
%changelog
|
||||
|
||||
@@ -0,0 +1,114 @@
|
||||
xlwt has various licenses that apply to the different parts of it, they are
|
||||
listed below:
|
||||
|
||||
The license for the work John Machin has done since xlwt was created::
|
||||
|
||||
Portions copyright (c) 2007, Stephen John Machin, Lingfo Pty Ltd
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
|
||||
1. Redistributions of source code must retain the above copyright notice,
|
||||
this list of conditions and the following disclaimer.
|
||||
|
||||
2. 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.
|
||||
|
||||
3. None of the names of Stephen John Machin, Lingfo Pty Ltd and any
|
||||
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 OWNER 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.
|
||||
|
||||
The licensing for the unit tests added as part of the work for Python 3
|
||||
compatibility is as follows::
|
||||
|
||||
Author: mozman --<mozman@gmx.at>
|
||||
Purpose: test_mini
|
||||
Created: 03.12.2010
|
||||
Copyright (C) 2010, Manfred Moitzi
|
||||
License: BSD licence
|
||||
|
||||
The license for pyExcelerator, from which xlwt was forked::
|
||||
|
||||
Copyright (C) 2005 Roman V. Kiseliov
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions
|
||||
are met:
|
||||
|
||||
1. Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
|
||||
2. 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.
|
||||
|
||||
3. All advertising materials mentioning features or use of this
|
||||
software must display the following acknowledgment:
|
||||
"This product includes software developed by
|
||||
Roman V. Kiseliov <roman@kiseliov.ru>."
|
||||
|
||||
4. Redistributions of any form whatsoever must retain the following
|
||||
acknowledgment:
|
||||
"This product includes software developed by
|
||||
Roman V. Kiseliov <roman@kiseliov.ru>."
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY Roman V. Kiseliov ``AS IS'' AND ANY
|
||||
EXPRESSED 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 Roman V. Kiseliov OR
|
||||
ITS 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.
|
||||
|
||||
Roman V. Kiseliov
|
||||
Russia
|
||||
Kursk
|
||||
Libknecht St., 4
|
||||
|
||||
+7(0712)56-09-83
|
||||
|
||||
<roman@kiseliov.ru>
|
||||
|
||||
Portions of xlwt.Utils are based on pyXLWriter which is licensed as follows::
|
||||
|
||||
Copyright (c) 2004 Evgeny Filatov <fufff@users.sourceforge.net>
|
||||
Copyright (c) 2002-2004 John McNamara (Perl Spreadsheet::WriteExcel)
|
||||
|
||||
This library is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU Lesser General Public License as published by
|
||||
the Free Software Foundation; either version 2.1 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
|
||||
General Public License for more details:
|
||||
|
||||
https://www.gnu.org/licenses/lgpl.html
|
||||
|
||||
pyXLWriter also makes reference to the PERL Spreadsheet::WriteExcel as follows::
|
||||
|
||||
This module was written/ported from PERL Spreadsheet::WriteExcel module
|
||||
The author of the PERL Spreadsheet::WriteExcel module is John McNamara
|
||||
<jmcnamara@cpan.org>
|
||||
Reference in New Issue
Block a user