From 91cb9f6f9e1476e82dfe28f0e3713902941bf911 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Wed, 17 May 2023 14:43:21 +0200 Subject: [PATCH] Sync from SUSE:ALP:Source:Standard:1.0 python-fqdn revision a8fb1bf2bd36e16c16c1598304fd3284 --- .gitattributes | 23 +++++++++++++++ fqdn-1.5.1-gh.tar.gz | 3 ++ python-fqdn.changes | 15 ++++++++++ python-fqdn.spec | 69 ++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 110 insertions(+) create mode 100644 .gitattributes create mode 100644 fqdn-1.5.1-gh.tar.gz create mode 100644 python-fqdn.changes create mode 100644 python-fqdn.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..fecc750 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/fqdn-1.5.1-gh.tar.gz b/fqdn-1.5.1-gh.tar.gz new file mode 100644 index 0000000..a9dfb3a --- /dev/null +++ b/fqdn-1.5.1-gh.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a2c026226f1a1eaace81362fda27b3df479693aefe19f160d6c4c3a032add498 +size 18334 diff --git a/python-fqdn.changes b/python-fqdn.changes new file mode 100644 index 0000000..dc18abb --- /dev/null +++ b/python-fqdn.changes @@ -0,0 +1,15 @@ +------------------------------------------------------------------- +Fri Apr 21 12:25:25 UTC 2023 - Dirk Müller + +- add sle15_python_module_pythons (jsc#PED-68) + +------------------------------------------------------------------- +Thu Apr 13 22:41:26 UTC 2023 - Matej Cepl + +- Make calling of %{sle15modernpython} optional. + +------------------------------------------------------------------- +Mon Dec 26 11:15:56 UTC 2022 - Ben Greiner + +- Initial specfile for v1.5.1 +- Required for python-jsonschema[format, format-nongpl] diff --git a/python-fqdn.spec b/python-fqdn.spec new file mode 100644 index 0000000..00c595b --- /dev/null +++ b/python-fqdn.spec @@ -0,0 +1,69 @@ +# +# spec file for package python-fqdn +# +# Copyright (c) 2023 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/ +# + + +%{?sle15_python_module_pythons} +Name: python-fqdn +Version: 1.5.1 +Release: 0 +Summary: RFC-compliant FQDN validation and manipulation for Python +License: MPL-2.0 +URL: https://github.com/ypcrts/fqdn +Source: https://github.com/ypcrts/fqdn/archive/refs/tags/v%{version}.tar.gz#/fqdn-%{version}-gh.tar.gz +BuildRequires: %{python_module cached-property if %python-base < 3.8} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +%if %python_version_nodots < 38 +Requires: python-cached-property >= 1.3.0 +%endif +BuildArch: noarch +%python_subpackages + +%description +This package validates Fully Qualified Domain Names (FQDNs) conforming to the +Internet Engineering Task Force specification . The design intent is to +validate that a string would be traditionally acceptable as a public Internet +hostname to RFC-conforming software, which is a strict subset of the logic in +modern web browsers like Mozilla Firefox and Chromium that determines whether +make a DNS lookup. Configuration options can relax constraints so that short +hostnames without periods or others with underscores will be valid. These +relaxations are closer to how modern web browsers work. + +%prep +%setup -q -n fqdn-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%doc README.rst +%license LICENSE +%{python_sitelib}/fqdn +%{python_sitelib}/fqdn-%{version}.dist-info + +%changelog