[packages/python3-yamlloader] - up to 1.5.2
baggins
baggins at pld-linux.org
Sat Sep 20 22:59:53 CEST 2025
commit 9a51b755c8001cec70b420e3df777d34ac8837b7
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sun Sep 21 00:59:40 2025 +0200
- up to 1.5.2
python3-yamlloader.spec | 71 +++++++------------------------------------------
1 file changed, 9 insertions(+), 62 deletions(-)
---
diff --git a/python3-yamlloader.spec b/python3-yamlloader.spec
index 532e6ea..75dc4c5 100644
--- a/python3-yamlloader.spec
+++ b/python3-yamlloader.spec
@@ -1,28 +1,17 @@
-#
-# Conditional build:
-%bcond_without python2 # CPython 2.x module
-%bcond_without python3 # CPython 3.x module
-
Summary: Ordered YAML loader and dumper for PyYAML
Summary(pl.UTF-8): Moduł dla PyYAML-a do wczytywania i zapisywania YAML-a z zachowaniem porządku
-Name: python-yamlloader
-# keep 0.x here for python2 support
-Version: 0.5.5
-Release: 8
+Name: python3-yamlloader
+Version: 1.5.2
+Release: 1
License: MIT
Group: Libraries/Python
#Source0Download: https://pypi.org/simple/yamlloader/
Source0: https://files.pythonhosted.org/packages/source/y/yamlloader/yamlloader-%{version}.tar.gz
-# Source0-md5: 2e0750ace81235f750c072833d79c4c3
+# Source0-md5: c806c13b6d85c2b87063dcbc37678066
URL: https://pypi.org/project/yamlloader/
-%if %{with python2}
-BuildRequires: python-modules >= 1:2.7
-BuildRequires: python-setuptools
-%endif
-%if %{with python3}
+BuildRequires: python3-build
+BuildRequires: python3-installer
BuildRequires: python3-modules >= 1:3.4
-BuildRequires: python3-setuptools
-%endif
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.714
Requires: python-modules >= 1:2.7
@@ -41,64 +30,22 @@ PyYAML-a. Obecnie obsługiwane są struktury OrderedDict, pozwalające na
zachowanie kolejności między wczytaniem a zrzucaniem (dla Pythona 3.7+
obsługiwane są także zwykłe słowniki).
-%package -n python3-yamlloader
-Summary: Ordered YAML loader and dumper for PyYAML
-Summary(pl.UTF-8): Moduł dla PyYAML-a do wczytywania i zapisywania YAML-a z zachowaniem porządku
-Group: Libraries/Python
-Requires: python3-modules >= 1:3.4
-
-%description -n python3-yamlloader
-This module provides loaders and dumpers for PyYAML. Currently, an
-OrderedDict loader/dumper is implemented, allowing to keep items order
-when loading resp. dumping a file from/to an OrderedDict (or regular
-dict in Python 3.7+).
-
-%description -n python3-yamlloader -l pl.UTF-8
-Ten moduł udostępnia funkcje do wczytywania i zapisywania dla
-PyYAML-a. Obecnie obsługiwane są struktury OrderedDict, pozwalające na
-zachowanie kolejności między wczytaniem a zrzucaniem (dla Pythona 3.7+
-obsługiwane są także zwykłe słowniki).
-
%prep
%setup -q -n yamlloader-%{version}
%build
-%if %{with python2}
-%py_build
-%endif
-
-%if %{with python3}
-%py3_build
-%endif
+%py3_build_pyproject
%install
rm -rf $RPM_BUILD_ROOT
-%if %{with python2}
-%py_install
-
-%py_postclean
-%endif
-
-%if %{with python3}
-%py3_install
-%endif
+%py3_install_pyproject
%clean
rm -rf $RPM_BUILD_ROOT
-%if %{with python2}
%files
%defattr(644,root,root,755)
%doc LICENSE README.rst
-%{py_sitescriptdir}/yamlloader
-%{py_sitescriptdir}/yamlloader-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-yamlloader
-%defattr(644,root,root,755)
-%doc LICENSE README.rst
%{py3_sitescriptdir}/yamlloader
-%{py3_sitescriptdir}/yamlloader-%{version}-py*.egg-info
-%endif
+%{py3_sitescriptdir}/yamlloader-%{version}.dist-info
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-yamlloader.git/commitdiff/9a51b755c8001cec70b420e3df777d34ac8837b7
More information about the pld-cvs-commit
mailing list