Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
devel:languages:python:backports
python-sgmllib3k
python-sgmllib3k.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-sgmllib3k.spec of Package python-sgmllib3k
# # spec file for package python-sgmllib3k # # Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %define skip_python2 1 %{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?sle15_python_module_pythons} Name: python-sgmllib3k Version: 1.0.0 Release: 0 Summary: Python 3 port of sgmllib License: BSD-3-Clause AND Python-2.0 Group: Development/Languages/Python URL: https://github.com/hsoft/sgmllib Source: https://files.pythonhosted.org/packages/source/s/sgmllib3k/sgmllib3k-%{version}.tar.gz Source1: https://raw.githubusercontent.com/hsoft/sgmllib/master/LICENSE Source5: test_sgmllib.py Source6: sgml_input.html # PATCH-{FIX|FEATURE}-{OPENSUSE|SLE|UPSTREAM} name-of-file.patch bsc#[0-9]+ mcepl@suse.com # this patch makes things totally awesome Patch0: adjust_test_sgmllib.patch BuildRequires: %{python_module setuptools} BuildRequires: %{python_module testsuite} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch %python_subpackages %description Python 3 port of Python 2's standard library `sgmllib`. %prep %setup -q -n sgmllib3k-%{version} cp %{SOURCE1} . cp %{SOURCE5} . cp %{SOURCE6} . %autopatch -p1 # cp %%{_libdir}/python2.7/test/test_sgmllib.py . # cp %%{_libdir}/python2.7/test/sgml_input.html . # sed -i 's/from test import test_support/from test import support as test_support/' test_sgmllib.py # Disable one test failing with # UnicodeDecodeError: 'utf-8' codec can't decode byte 0xed in position 2873: invalid continuation byte # sed -i 's/test_read_chunks/_test_read_chunks/' test_sgmllib.py %build %python_build %install %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check %pyunittest -v test_sgmllib %files %{python_files} %doc README %license LICENSE %{python_sitelib}/sgmllib* %pycache_only %{python_sitelib}/__pycache__/sgmllib*.pyc %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor