2 %define module tldextract
3 Summary: Accurately separate the TLD from the registered domain and subdomains of a URL
4 Name: python3-%{module}
8 Group: Libraries/Python
9 #Source0Download: https://pypi.org/simple/tldextract/
10 Source0: https://files.pythonhosted.org/packages/source/t/tldextract/%{module}-%{version}.tar.gz
11 # Source0-md5: 6eec76d6318a1019ae9b72be08a8bbd8
12 URL: https://github.com/john-kurkowski/tldextract/stargazers
13 BuildRequires: python3-modules >= 1:3.6
14 BuildRequires: python3-setuptools
15 BuildRequires: python3-setuptools_scm
16 BuildRequires: rpm-pythonprov
17 BuildRequires: rpmbuild(macros) >= 1.714
18 Requires: python3-modules >= 1:3.6
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 Accurately separate the TLD from the registered domain and
24 subdomains of a URL, using the Public Suffix List. By default,
25 this includes the public ICANN TLDs and their exceptions. You can
26 optionally support the Public Suffix List's private domains as
30 %setup -q -n %{module}-%{version}
36 rm -rf $RPM_BUILD_ROOT
41 rm -rf $RPM_BUILD_ROOT
43 %files -n python3-%{module}
44 %defattr(644,root,root,755)
45 %doc CHANGELOG.md README.md
46 %attr(755,root,root) %{_bindir}/tldextract
47 %{py3_sitescriptdir}/%{module}
48 %{py3_sitescriptdir}/%{module}-%{version}-py*.egg-info