15
0

Compare commits

4 Commits

2 changed files with 23 additions and 13 deletions

View File

@@ -1,3 +1,13 @@
-------------------------------------------------------------------
Wed Jun 4 15:00:53 UTC 2025 - Felix Stegmeier <felix.stegmeier@suse.com>
- fix usage of libalternatives
-------------------------------------------------------------------
Fri May 16 09:16:42 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build
------------------------------------------------------------------- -------------------------------------------------------------------
Wed May 27 09:36:45 UTC 2020 - Petr Gajdos <pgajdos@suse.com> Wed May 27 09:36:45 UTC 2020 - Petr Gajdos <pgajdos@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-cloud-init-seed # spec file for package python-cloud-init-seed
# #
# Copyright (c) 2020 SUSE LLC # 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,8 +16,7 @@
# #
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %bcond_without libalternatives
%define skip_python2 1
Name: python-cloud-init-seed Name: python-cloud-init-seed
Version: 0.3.0 Version: 0.3.0
Release: 0 Release: 0
@@ -28,12 +27,14 @@ URL: https://github.com/toabctl/cloud-init-seed
Source: https://files.pythonhosted.org/packages/source/c/cloud-init-seed/cloud-init-seed-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/c/cloud-init-seed/cloud-init-seed-%{version}.tar.gz
BuildRequires: %{python_module devel} BuildRequires: %{python_module devel}
BuildRequires: %{python_module pbr} BuildRequires: %{python_module pbr}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: alts
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: alts
Requires: mkisofs Requires: mkisofs
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch BuildArch: noarch
%python_subpackages %python_subpackages
@@ -44,23 +45,22 @@ Create cloud-init compatible image seeds
%setup -q -n cloud-init-seed-%{version} %setup -q -n cloud-init-seed-%{version}
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_clone -a %{buildroot}%{_bindir}/cloud-init-seed %python_clone -a %{buildroot}%{_bindir}/cloud-init-seed
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%post %pre
%python_install_alternative cloud-init-seed # Removing old update-alternatives entries.
%python_libalternatives_reset_alternative cloud-init-seed
%postun
%python_uninstall_alternative cloud-init-seed
%files %{python_files} %files %{python_files}
%doc AUTHORS ChangeLog README.rst %doc AUTHORS ChangeLog README.rst
%license LICENSE %license LICENSE
%python_alternative %{_bindir}/cloud-init-seed %python_alternative %{_bindir}/cloud-init-seed
%{python_sitelib}/* %{python_sitelib}/cloud[-_]init[-_]seed
%{python_sitelib}/cloud[-_]init[-_]seed-%{version}*-info
%changelog %changelog