%global debug_package %{nil} %global pypi_name osbuild %global pkgdir %{_prefix}/lib/%{pypi_name} Name: osbuild Version: 187 Release: 1.1%{?dist} Summary: A build system for OS images License: Apache-2.0 URL: https://github.com/osbuild/osbuild Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz BuildArch: noarch BuildRequires: make BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-docutils Requires: bash Requires: bubblewrap Requires: coreutils Requires: curl Requires: e2fsprogs Requires: qemu-img Requires: systemd Requires: skopeo Requires: tar Requires: util-linux Requires: python3-%{pypi_name} = %{version}-%{release} %description A build system for OS images. osbuild provides a pipeline-based approach to building operating system artifacts such as disk images, installer ISOs, and container images. %package -n python3-%{pypi_name} Summary: osbuild Python library Requires: python3-jsonschema %description -n python3-%{pypi_name} Python library for osbuild. %package ostree Summary: OSTree support for osbuild Requires: %{name} = %{version}-%{release} Requires: ostree Requires: rpm-ostree %description ostree OSTree support stages and assemblers for osbuild. %prep %autosetup -n %{name}-%{version} %build %py3_build # Build man pages rst2man docs/osbuild.1.rst docs/osbuild.1 rst2man docs/osbuild-manifest.5.rst docs/osbuild-manifest.5 %install %py3_install # Install osbuild modules (stages, runners, etc) mkdir -p %{buildroot}%{pkgdir} for d in stages runners sources devices inputs mounts; do [ -d "$d" ] && cp -a "$d" %{buildroot}%{pkgdir}/ done # Schemas mkdir -p %{buildroot}%{pkgdir}/schemas cp -a schemas/* %{buildroot}%{pkgdir}/schemas/ # Man pages install -D -m 644 docs/osbuild.1 %{buildroot}%{_mandir}/man1/osbuild.1 install -D -m 644 docs/osbuild-manifest.5 %{buildroot}%{_mandir}/man5/osbuild-manifest.5 %check python3 -c "import osbuild; print('osbuild imported OK')" %files %license LICENSE %doc README.md %{_bindir}/osbuild %{_bindir}/osbuild-* %{pkgdir}/ %{_mandir}/man1/osbuild.1* %{_mandir}/man5/osbuild-manifest.5* %files -n python3-%{pypi_name} %license LICENSE %{python3_sitelib}/%{pypi_name}/ %{python3_sitelib}/%{pypi_name}-*.egg-info/ %files ostree %changelog * Fri Jul 11 2025 Yonghang Wang - 187-1.1 - Build for al-stream-2023 COPR - Adapted from Fedora f44 spec