15
0
Files
diskimage-builder/diskimage-builder.spec
Steve Kowalik e2a3fb8ce5 Accepting request 1275540 from home:dgarcia:branches:devel:languages:python
- Update to 3.37.0:
  - Supports Gentoo profile 23.0 and removes support for the
    nonworking 17.1 and 17.0 profiles.
  - Gentoo element updated to avoid using testing (~arch) packages.
  - Gentoo element now uses upstream binary package host by default.
  - Fixes an issue where an image using the manifest element could
    fail to build when using a non-root user. See bug 2069956.
  - Fixed an issue where the growroot element on openrc init systems
    would not function.
  - Fixed an issue where the devuser element was unable to grant sudo
    capabilities on gentoo images.
  - Fixed an issue in Gentoo implmentation for install-packages
    element where build time would grow linearly with each additional
    package removal. Now, all removed packages are deselected and
    removed in a single transaction.
- 3.36.0:
  - The vm element is no longer included dependency of the
    rocky-container, almalinux-container and fedora-container
    elements. You will need to update your build configuration to
    include this element if you still wish to create partitioned disk
    based images.
- 3.34.0:
  - Adds the ability for diskimage-builder to create images with
    different block sizes. By default, this remains at the default of
    512 bytes, but some newer devices require 4096 bytes to be used,
    which impacts the overall layout rendering 512 byte images
    incompatible. This setting can also be asserted and overridden
    using the DIB_BLOCK_SIZE environment variable, but alternatively
    exists as a new block_size parameter for local_loop section in
    block device YAML documents.

OBS-URL: https://build.opensuse.org/request/show/1275540
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/diskimage-builder?expand=0&rev=69
2025-05-12 06:06:51 +00:00

100 lines
3.4 KiB
RPMSpec

#
# spec file for package diskimage-builder
#
# 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/
#
# Prevent shebangs of element scripts from being added as a requirement (they
# are only ever run inside the disk image build chroot).
%global __requires_exclude_from ^%{python3_sitelib}/diskimage_builder/elements/.*$
Name: diskimage-builder
Version: 3.37.0
Release: 0
Summary: Image Building Tools for OpenStack
License: Apache-2.0
Group: Development/Languages/Python
URL: https://github.com/openstack/diskimage-builder
Source0: https://pypi.io/packages/source/d/%{name}/%{name}-%{version}.tar.gz
Source99: diskimage-builder-rpmlintrc
BuildRequires: fdupes
BuildRequires: findutils
BuildRequires: python-rpm-macros
BuildRequires: python3-PyYAML >= 3.12
BuildRequires: python3-fixtures
BuildRequires: python3-jsonschema
BuildRequires: python3-networkx >= 1.10
BuildRequires: python3-oslotest
BuildRequires: python3-pbr >= 2.0.0
BuildRequires: python3-pip
BuildRequires: python3-setuptools
BuildRequires: python3-stestr
BuildRequires: python3-stevedore >= 1.20.0
BuildRequires: python3-testrepository
BuildRequires: python3-testtools
BuildRequires: python3-wheel
BuildRequires: sed
# No stuff in python_sitelib, thus autoreqprov won't work:
Requires: kpartx
Requires: python3-Babel >= 2.3.4
Requires: python3-PyYAML >= 3.12
Requires: python3-jsonschema
Requires: python3-networkx >= 1.10
Requires: python3-stevedore >= 1.20.0
Requires: qemu-tools
Requires: sudo
BuildArch: noarch
%description
diskimage-builder is a tool for automatically building customized
operating-system images for use in clouds and other environments.
It includes support for building images based on many major
distributions and can produce cloud-images in all common formats
(qcow2, vhd, raw, etc), bare metal file-system images and ram-disk
images. These images are composed from the many included elements;
diskimage-builder acts as a framework to easily add your own elements
for even further customization.
%prep
%setup -q
# Fix env-script-interpreter rpmlint warning
find diskimage_builder/elements -type f -perm /a+x \
-exec sh -c "sed -E -i s@^#\!%{_bindir}/env[[:space:]]+python@#\!%{_bindir}/python@ {}" \;
%build
%python3_pyproject_wheel
%install
%python3_pyproject_install
%fdupes %{buildroot}
%check
export PYTHON=%{_bindir}/python3
# Skip test_mount_comparator that's broken with python3
# https://bugs.launchpad.net/diskimage-builder/+bug/2110216
stestr run --exclude-regex "test_mount_comparator"
%files
%doc ChangeLog README.rst AUTHORS
%license LICENSE
%{_bindir}/disk-image-create
%{_bindir}/diskimage-builder
%{_bindir}/dib-lint
%{_bindir}/ramdisk-image-create
%{python3_sitelib}/diskimage_builder/
%{python3_sitelib}/diskimage_builder*-info/
%changelog