## 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 24 %bcond_without check %global debug_package %{nil} %global crate userfaultfd-sys Name: rust-userfaultfd-sys Version: 0.5.0 Release: %autorelease Summary: Low-level bindings for userfaultfd functionality on Linux License: MIT OR Apache-2.0 URL: https://crates.io/crates/userfaultfd-sys Source: %{crates_source} BuildRequires: rust-packaging >= 21 %global _description %{expand: Low-level bindings for userfaultfd functionality on Linux.} %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-APACHE %license %{crate_instdir}/LICENSE-MIT %{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}+linux4_14-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+linux4_14-devel %{_description} This package contains library source intended for building other packages which use the "linux4_14" feature of the "%{crate}" crate. %files -n %{name}+linux4_14-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+linux5_7-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+linux5_7-devel %{_description} This package contains library source intended for building other packages which use the "linux5_7" feature of the "%{crate}" crate. %files -n %{name}+linux5_7-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test -- -- --exact --skip=linux4_11::const_tests::consts_correct %endif %changelog ## START: Generated by rpmautospec * Sat Jan 27 2024 Fedora Release Engineering - 0.5.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Oct 12 2023 David Michael - 0.5.0-1 - Update to version 0.5.0 (rhbz#2240016) * Mon Sep 18 2023 David Michael - 0.4.4-1 - Update to version 0.4.4 (rhbz#2189405) * Sat Jul 22 2023 Fedora Release Engineering - 0.4.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Wed Apr 05 2023 David Michael - 0.4.3-2 - Update bindgen to 0.63 * Mon Mar 27 2023 David Michael - 0.4.3-1 - Update to version 0.4.3 * Mon Mar 27 2023 Tomas Hrcka - 0.4.1-3 - Unretirement request: https://pagure.io/releng/issue/11356 * Sat Jul 23 2022 Fedora Release Engineering - 0.4.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Fri Apr 15 2022 Fabio Valentini - 0.4.1-1 - Initial import (#2075217) ## END: Generated by rpmautospec