From c2c7020cab28fc68a9623b2532f5311b872f563bb0d4258ca4b09f17841a5b61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Wed, 4 Jun 2025 08:02:27 +0000 Subject: [PATCH 1/2] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyLibravatar?expand=0&rev=8 --- .gitattributes | 23 +++++++++++++++ .gitignore | 1 + pyLibravatar-1.7.tar.gz | 3 ++ python-pyLibravatar.changes | 19 +++++++++++++ python-pyLibravatar.spec | 57 +++++++++++++++++++++++++++++++++++++ 5 files changed, 103 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 pyLibravatar-1.7.tar.gz create mode 100644 python-pyLibravatar.changes create mode 100644 python-pyLibravatar.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /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/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/pyLibravatar-1.7.tar.gz b/pyLibravatar-1.7.tar.gz new file mode 100644 index 0000000..5045bcb --- /dev/null +++ b/pyLibravatar-1.7.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f239caae2aed0e2dcdd695ffcde4572958c001b4bdc464a9291d1b0cae0caa8d +size 4718 diff --git a/python-pyLibravatar.changes b/python-pyLibravatar.changes new file mode 100644 index 0000000..82e9920 --- /dev/null +++ b/python-pyLibravatar.changes @@ -0,0 +1,19 @@ +------------------------------------------------------------------- +Wed Jun 4 07:58:47 UTC 2025 - Markéta Machová + +- Convert to pip-based build + +------------------------------------------------------------------- +Thu Apr 23 07:27:30 UTC 2020 - Tomáš Chvátal + +- Disable python2 build + +------------------------------------------------------------------- +Wed Aug 8 13:16:58 UTC 2018 - jengelh@inai.de + +- Ensure neutrality of descrpition. + +------------------------------------------------------------------- +Thu Aug 2 08:20:34 UTC 2018 - tchvatal@suse.com + +- Initial commit, needed by weblate diff --git a/python-pyLibravatar.spec b/python-pyLibravatar.spec new file mode 100644 index 0000000..08cf811 --- /dev/null +++ b/python-pyLibravatar.spec @@ -0,0 +1,57 @@ +# +# spec file for package python-pyLibravatar +# +# Copyright (c) 2025 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/ +# + + +Name: python-pyLibravatar +Version: 1.7 +Release: 0 +Summary: Python module for Libravatar +License: MIT +URL: https://launchpad.net/pylibravatar +Source: https://files.pythonhosted.org/packages/source/p/pyLibravatar/pyLibravatar-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module py3dns} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-py3dns +BuildArch: noarch +%python_subpackages + +%description +PyLibravatar is a module for using federated Libravatar +avatar hosting service from within Python applications. + +%prep +%setup -q -n pyLibravatar-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%files %{python_files} +%license README.txt +%doc README.txt Changelog.txt +%{python_sitelib}/libravatar.py +%{python_sitelib}/py[Ll]ibravatar-%{version}*-info +%pycache_only %{python_sitelib}/__pycache__/libravatar* + +%changelog From 1a762331f1a147e9101cacccc3b2b442cd14d02406d245ae7e8816f5c06df8df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Wed, 4 Jun 2025 08:05:05 +0000 Subject: [PATCH 2/2] fix some rpm warnings OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyLibravatar?expand=0&rev=9 --- python-pyLibravatar.spec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python-pyLibravatar.spec b/python-pyLibravatar.spec index 08cf811..c5b7944 100644 --- a/python-pyLibravatar.spec +++ b/python-pyLibravatar.spec @@ -27,6 +27,7 @@ BuildRequires: %{python_module pip} BuildRequires: %{python_module py3dns} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} +BuildRequires: dos2unix BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-py3dns @@ -39,6 +40,7 @@ avatar hosting service from within Python applications. %prep %setup -q -n pyLibravatar-%{version} +dos2unix *.txt %build %pyproject_wheel