15
0
Files
python-publicsuffixlist/python-publicsuffixlist.spec
Markéta Machová bb5294386b Accepting request 1008047 from home:yarunachalam:branches:devel:languages:python
- Update to version to 0.9.0
  * Update PSL
  * Add tests for accept_unknown as method argument
  * Fix using a non-default accept_unknown in privatesuffix()
- Update to version to 0.8.0
  * Update PSL
  * Ensure privateparts returns lowercase labels
  * Fix is_public for upper case input
  * Fix lowercase for TLD only suffix
  * Update PSL
  * Update PSL
  * Update PSL
  * Increment version
  * Update PSL
  * Add testcase for wildcard match
  * Update test data and readme link
  * Update PSL
  * Update PSL
  * Migrate CI to travis-ci.com
  * Update PSL
  * Update PSL
  * Update PSL
  * Update PSL

OBS-URL: https://build.opensuse.org/request/show/1008047
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-publicsuffixlist?expand=0&rev=29
2022-10-05 14:57:05 +00:00

72 lines
2.2 KiB
RPMSpec

#
# spec file for package python-publicsuffixlist
#
# 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/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-publicsuffixlist
Version: 0.7.14
Release: 0
Summary: Public suffix list implementaion in Python
License: MPL-2.0
Group: Development/Languages/Python
URL: https://github.com/ko-zu/psl
Source: https://files.pythonhosted.org/packages/source/p/publicsuffixlist/publicsuffixlist-%{version}.tar.gz
# PATCH-FIX-OPENSUSE change_psl_location.patch -- use list from publicsuffix package
Patch0: change_psl_location.patch
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
# SECTION tests
BuildRequires: publicsuffix
# /SECTION
Requires: publicsuffix
Recommends: python-requests
BuildArch: noarch
%python_subpackages
%description
Parser implementation for the Public Suffix List <https://publicsuffix.org/> in Python.
Support for IDN (unicode or punycoded).
%prep
%setup -q -n publicsuffixlist-%{version}
%patch0 -p1
sed -i '/public_suffix_list\.dat/ d' setup.py
rm publicsuffixlist/update.py
%build
%python_build
%install
%python_install
rm %{buildroot}%{_bindir}/publicsuffixlist-download
%{python_expand rm -f %{buildroot}%{$python_sitelib}/publicsuffixlist/test* %{buildroot}%{$python_sitelib}/publicsuffixlist/__pycache__/test*
%fdupes %{buildroot}%{$python_sitelib}
}
%check
%pyunittest discover -v
%files %{python_files}
%doc README.md
%license LICENSE
%{python_sitelib}/*
%changelog