File bootc.spec of Package bootc
#
# spec file for package bootc
#
# 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/
#
Name: bootc
Version: 1.9.0
Release: 0
Summary: Bootable container system
License: Apache-2.0 OR MIT
URL: https://github.com/bootc-dev/bootc
Source0: %{url}/releases/download/v%{version}/%{name}-%{version}.tar.zstd#/%{name}-%{version}.tar.zst
Source1: %{url}/releases/download/v%{version}/%{name}-%{version}-vendor.tar.zstd#/%{name}-%{version}-vendor.tar.zst
BuildRequires: cargo-packaging
BuildRequires: libostree
BuildRequires: rust >= 1.82
BuildRequires: skopeo
BuildRequires: pkgconfig(composefs)
BuildRequires: pkgconfig(libzstd)
BuildRequires: pkgconfig(openssl) >= 3.0.0
BuildRequires: pkgconfig(ostree-1) >= 2025.3
BuildRequires: pkgconfig(systemd)
Requires: composefs
Requires: libostree
Requires: podman
Requires: skopeo
%systemd_requires
%description
Transactional, in-place operating system updates using OCI/Docker container images.
%prep
%autosetup -a1
cat .cargo/vendor-config.toml >> .cargo/config.toml
%build
%{cargo_build}
%install
%make_install
%check
%{cargo_test}
%files
%license LICENSE-APACHE LICENSE-MIT
%doc README.md
%{_bindir}/%{name}
%{_bindir}/system-reinstall-%{name}
%{_datadir}/doc/%{name}
%{_mandir}/man?/%{name}*.?%{?ext_man}
%{_systemdgeneratordir}/%{name}-systemd-generator
%{_unitdir}/%{name}-fetch-apply-updates.service
%{_unitdir}/%{name}-fetch-apply-updates.timer
%{_unitdir}/%{name}-publish-rhsm-facts.service
%{_unitdir}/%{name}-status-updated.path
%{_unitdir}/%{name}-status-updated.target
%{_unitdir}/multi-user.target.wants/%{name}-status-updated.path
%changelog