17
0

Compare commits

2 Commits

Author SHA256 Message Date
6f2b1d99f4 Accepting request 1288112 from devel:languages:python
- Switch to pyproject macros.
- No more greedy globs in %files.
- Update URL.

OBS-URL: https://build.opensuse.org/request/show/1288112
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ruamel.yaml.convert?expand=0&rev=3
2025-06-24 18:48:59 +00:00
b15a730ad4 - Switch to pyproject macros.
- No more greedy globs in %files.
- Update URL.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruamel.yaml.convert?expand=0&rev=5
2025-06-24 02:30:18 +00:00
2 changed files with 17 additions and 8 deletions

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Jun 24 02:22:48 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
- No more greedy globs in %files.
- Update URL.
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Sep 10 10:33:27 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com> Tue Sep 10 10:33:27 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-ruamel.yaml.convert # spec file for package python-ruamel.yaml.convert
# #
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2025 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -16,18 +16,18 @@
# #
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-ruamel.yaml.convert Name: python-ruamel.yaml.convert
Version: 0.3.2 Version: 0.3.2
Release: 0 Release: 0
Summary: Data format conversion routines to and from YAML Summary: Data format conversion routines to and from YAML
License: MIT License: MIT
Group: Development/Languages/Python URL: https://sourceforge.net/projects/ruamel-yaml-convert/
Url: https://bitbucket.org/ruamel/yaml.convert
Source: https://files.pythonhosted.org/packages/source/r/ruamel.yaml.convert/ruamel.yaml.convert-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/r/ruamel.yaml.convert/ruamel.yaml.convert-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module ruamel.base >= 1.0.0+post1} BuildRequires: %{python_module ruamel.base >= 1.0.0+post1}
BuildRequires: %{python_module ruamel.yaml} BuildRequires: %{python_module ruamel.yaml}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
# 1.0.0+post1 needed to depend on revised base namespace technique # 1.0.0+post1 needed to depend on revised base namespace technique
@@ -40,7 +40,7 @@ BuildArch: noarch
%python_subpackages %python_subpackages
%description %description
Format conversion routines to and from YAML. Data format conversion routines to and from YAML.
%prep %prep
%setup -q -n ruamel.yaml.convert-%{version} %setup -q -n ruamel.yaml.convert-%{version}
@@ -48,11 +48,11 @@ Format conversion routines to and from YAML.
sed -i '/namespace_packages=/d' setup.py sed -i '/namespace_packages=/d' setup.py
%build %build
%python_build %pyproject_wheel
%install %install
export RUAMEL_NO_PIP_INSTALL_CHECK=1 export RUAMEL_NO_PIP_INSTALL_CHECK=1
%python_install %pyproject_install
%{python_expand rm -r %{buildroot}%{$python_sitelib}/ruamel/__* %{buildroot}%{$python_sitelib}/ruamel/yaml/__* %{python_expand rm -r %{buildroot}%{$python_sitelib}/ruamel/__* %{buildroot}%{$python_sitelib}/ruamel/yaml/__*
%fdupes %{buildroot}%{$python_sitelib} %fdupes %{buildroot}%{$python_sitelib}
} }
@@ -60,6 +60,8 @@ export RUAMEL_NO_PIP_INSTALL_CHECK=1
%files %{python_files} %files %{python_files}
%doc README.rst %doc README.rst
%license LICENSE %license LICENSE
%{python_sitelib}/* %dir %{python_sitelib}/ruamel/yaml
%{python_sitelib}/ruamel/yaml/convert
%{python_sitelib}/ruamel[_.]yaml[._]convert-%{version}.dist-info
%changelog %changelog