public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-publicsuffix2] epel10: initial commit (#1842475)
@ 2026-10-30 22:47 Dominik 'Rathann' Mierzejewski
  0 siblings, 0 replies; only message in thread
From: Dominik 'Rathann' Mierzejewski @ 2026-10-30 22:47 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/python-publicsuffix2
Branch : epel10
Commit : 7e58946206855e8538aa098d33f2bc49cd9df3bc
Author : Dominik 'Rathann' Mierzejewski <dominik@greysector.net>
Date   : 2020-06-15T00:55:38+02:00
Stats  : +59/-0 in 3 file(s)
URL    : https://src.fedoraproject.org/rpms/python-publicsuffix2/c/7e58946206855e8538aa098d33f2bc49cd9df3bc?branch=epel10

Log:
initial commit (#1842475)

---
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..7547fff
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/publicsuffix2-2.20191221.tar.gz

diff --git a/python-publicsuffix2.spec b/python-publicsuffix2.spec
new file mode 100644
index 0000000..f55d814
--- /dev/null
+++ b/python-publicsuffix2.spec
@@ -0,0 +1,57 @@
+%global pypi_name publicsuffix2
+
+%global desc This module allows you to get the public suffix, as well as the registrable\
+domain, of a domain name using the Public Suffix List from\
+http://publicsuffix.org\
+\
+This module builds the public suffix list as a Trie structure, making it more\
+efficient than other string-based modules available for the same purpose. It can\
+be used effectively in large-scale distributed environments, such as PySpark.\
+\
+The code is a fork of the publicsuffix package and includes the same base API.\
+In addition, it contains a few variants useful for certain use cases, such as\
+the option to ignore wildcards or return only the extended TLD (eTLD). You just\
+need to import publicsuffix2 instead.
+
+Name: python-%{pypi_name}
+Version: 2.20191221
+Release: 1%{?dist}
+Summary: Get a public suffix for a domain name using the Public Suffix List
+License: MIT
+URL: https://github.com/nexb/python-publicsuffix2
+Source0: %{pypi_source}
+BuildArch: noarch
+
+%description
+%{desc}
+
+%package -n python3-%{pypi_name}
+Summary: %{summary}
+BuildRequires: python3-devel
+BuildRequires: python3-requests
+Requires: publicsuffix-list
+
+%description -n python3-%{pypi_name}
+%{desc}
+
+%prep
+%setup -q -n %{pypi_name}-%{version}
+rm -r src/%{pypi_name}.egg-info
+
+%build
+%py3_build
+
+%install
+%py3_install
+rm %{buildroot}%{python3_sitelib}/%{pypi_name}/public_suffix_list.dat
+ln -s ../../../../share/publicsuffix/public_suffix_list.dat %{buildroot}%{python3_sitelib}/%{pypi_name}
+
+%files -n python3-%{pypi_name}
+%doc README.rst
+%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
+%{python3_sitelib}/%{pypi_name}
+
+%changelog
+* Mon Jun 01 2020 Dominik Mierzejewski <dominik@greysector.net> 2.20191221-1
+- initial build
+- unbundle public_suffix_list.dat file

diff --git a/sources b/sources
new file mode 100644
index 0000000..08c0156
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (publicsuffix2-2.20191221.tar.gz) = d863f0937b340958ef7c8bd07d62054aead993ba31b0c2753631f2e75e48f7cea412c6501d8a94d98bf6a97a13eb0716c24a89e336787d5570e9af0386c58320

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-30 22:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-30 22:47 [rpms/python-publicsuffix2] epel10: initial commit (#1842475) Dominik 'Rathann' Mierzejewski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox