## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Generated by rust2rpm 25 %bcond_without check %global debug_package %{nil} %global crate vhost Name: rust-vhost Version: 0.10.0 Release: %autorelease Summary: Pure rust library for vdpa, vhost and vhost-user License: Apache-2.0 OR BSD-3-Clause URL: https://crates.io/crates/vhost Source0: %{crates_source} Source1: https://raw.githubusercontent.com/rust-vmm/vhost/main/LICENSE Source2: https://raw.githubusercontent.com/rust-vmm/vhost/main/LICENSE-BSD-3-Clause BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: A pure rust library for vdpa, vhost and vhost-user.} %description %{_description} %package devel Summary: %{summary} BuildArch: noarch %description devel %{_description} This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel %license %{crate_instdir}/LICENSE %license %{crate_instdir}/LICENSE-BSD-3-Clause %doc %{crate_instdir}/CHANGELOG.md %doc %{crate_instdir}/README.md %{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+default-devel %{_description} This package contains library source intended for building other packages which use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+test-utils-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+test-utils-devel %{_description} This package contains library source intended for building other packages which use the "test-utils" feature of the "%{crate}" crate. %files -n %{name}+test-utils-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+vhost-kern-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+vhost-kern-devel %{_description} This package contains library source intended for building other packages which use the "vhost-kern" feature of the "%{crate}" crate. %files -n %{name}+vhost-kern-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+vhost-net-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+vhost-net-devel %{_description} This package contains library source intended for building other packages which use the "vhost-net" feature of the "%{crate}" crate. %files -n %{name}+vhost-net-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+vhost-user-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+vhost-user-devel %{_description} This package contains library source intended for building other packages which use the "vhost-user" feature of the "%{crate}" crate. %files -n %{name}+vhost-user-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+vhost-user-backend-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+vhost-user-backend-devel %{_description} This package contains library source intended for building other packages which use the "vhost-user-backend" feature of the "%{crate}" crate. %files -n %{name}+vhost-user-backend-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+vhost-user-frontend-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+vhost-user-frontend-devel %{_description} This package contains library source intended for building other packages which use the "vhost-user-frontend" feature of the "%{crate}" crate. %files -n %{name}+vhost-user-frontend-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+vhost-vdpa-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+vhost-vdpa-devel %{_description} This package contains library source intended for building other packages which use the "vhost-vdpa" feature of the "%{crate}" crate. %files -n %{name}+vhost-vdpa-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+vhost-vsock-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+vhost-vsock-devel %{_description} This package contains library source intended for building other packages which use the "vhost-vsock" feature of the "%{crate}" crate. %files -n %{name}+vhost-vsock-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+xen-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+xen-devel %{_description} This package contains library source intended for building other packages which use the "xen" feature of the "%{crate}" crate. %files -n %{name}+xen-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep cp %{SOURCE1} . cp %{SOURCE2} . %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog ## START: Generated by rpmautospec * Sat Jan 27 2024 Fedora Release Engineering - 0.10.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Jan 11 2024 Sergio Lopez - 0.10.0-1 - Update to version 0.10.0; Fixes RHBZ#2248535 * Thu Dec 21 2023 Sergio Lopez - 0.9.0-1 - Update to version 0.9.0; Fixes RHBZ#2248535 * Sat Jul 22 2023 Fedora Release Engineering - 0.8.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jul 18 2023 Sergio Lopez - 0.8.1-1 - Update to version 0.8.1 - Update to version 0.8.1 - Drop no longer needed temporary patch * Fri Jul 14 2023 Sergio Lopez - 0.8.0-2 - Add a reference to the PR for the temporary patch * Fri Jul 14 2023 Sergio Lopez - 0.8.0-1 - Update to version 0.8.0 - Update to version 0.8.0 - Regenerate with rust2rpm 24 - Add a temporary patch for fix a dependency problem * Wed Feb 08 2023 Sergio Lopez - 0.6.0-1 - Update to version 0.6.0 - Regenerate with rust2rpm 23 - Update to version 0.6.0 - Add license files, since crate has moved into a workspace * Sat Jan 21 2023 Fedora Release Engineering - 0.4.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Sat Jul 23 2022 Fedora Release Engineering - 0.4.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Wed Jun 01 2022 Sergio Lopez - 0.4.0-1 - Update to 0.4.0 - Update to 0.4.0 * Tue Mar 01 2022 Sergio Lopez - 0.3.0-1 - Initial import (fedora#2055584). ## END: Generated by rpmautospec