commit aee5d78f9289d852a456626493e775ff01ab79e9 Author: MSVSphere Packaging Team Date: Fri Dec 20 16:15:02 2024 +0300 import rust-linux-raw-sys0.4-0.4.14-1.el10 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fc71c59 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/linux-raw-sys-0.4.14.crate diff --git a/.rust-linux-raw-sys0.4.metadata b/.rust-linux-raw-sys0.4.metadata new file mode 100644 index 0000000..5a36f33 --- /dev/null +++ b/.rust-linux-raw-sys0.4.metadata @@ -0,0 +1 @@ +4788f1e0e25840eab2338b3a9b900d3026871d7a SOURCES/linux-raw-sys-0.4.14.crate diff --git a/SOURCES/rust2rpm.toml b/SOURCES/rust2rpm.toml new file mode 100644 index 0000000..3cb13d1 --- /dev/null +++ b/SOURCES/rust2rpm.toml @@ -0,0 +1,6 @@ +[features] +hide = [ + "compiler_builtins", + "core", + "rustc-dep-of-std", +] diff --git a/SPECS/rust-linux-raw-sys0.4.spec b/SPECS/rust-linux-raw-sys0.4.spec new file mode 100644 index 0000000..44e0b09 --- /dev/null +++ b/SPECS/rust-linux-raw-sys0.4.spec @@ -0,0 +1,314 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.7.2) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 1; + 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 26 +%bcond_without check +%global debug_package %{nil} + +%global crate linux-raw-sys + +Name: rust-linux-raw-sys0.4 +Version: 0.4.14 +Release: %autorelease +Summary: Generated bindings for Linux's userspace API + +License: Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT +URL: https://crates.io/crates/linux-raw-sys +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Generated bindings for Linux's userspace API.} + +%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}/COPYRIGHT +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-Apache-2.0_WITH_LLVM-exception +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/CODE_OF_CONDUCT.md +%doc %{crate_instdir}/ORG_CODE_OF_CONDUCT.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}+bootparam-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+bootparam-devel %{_description} + +This package contains library source intended for building other packages which +use the "bootparam" feature of the "%{crate}" crate. + +%files -n %{name}+bootparam-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+elf-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+elf-devel %{_description} + +This package contains library source intended for building other packages which +use the "elf" feature of the "%{crate}" crate. + +%files -n %{name}+elf-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+errno-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+errno-devel %{_description} + +This package contains library source intended for building other packages which +use the "errno" feature of the "%{crate}" crate. + +%files -n %{name}+errno-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+general-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+general-devel %{_description} + +This package contains library source intended for building other packages which +use the "general" feature of the "%{crate}" crate. + +%files -n %{name}+general-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+if_arp-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+if_arp-devel %{_description} + +This package contains library source intended for building other packages which +use the "if_arp" feature of the "%{crate}" crate. + +%files -n %{name}+if_arp-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+if_ether-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+if_ether-devel %{_description} + +This package contains library source intended for building other packages which +use the "if_ether" feature of the "%{crate}" crate. + +%files -n %{name}+if_ether-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+if_packet-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+if_packet-devel %{_description} + +This package contains library source intended for building other packages which +use the "if_packet" feature of the "%{crate}" crate. + +%files -n %{name}+if_packet-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+io_uring-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+io_uring-devel %{_description} + +This package contains library source intended for building other packages which +use the "io_uring" feature of the "%{crate}" crate. + +%files -n %{name}+io_uring-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+ioctl-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+ioctl-devel %{_description} + +This package contains library source intended for building other packages which +use the "ioctl" feature of the "%{crate}" crate. + +%files -n %{name}+ioctl-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+loop_device-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+loop_device-devel %{_description} + +This package contains library source intended for building other packages which +use the "loop_device" feature of the "%{crate}" crate. + +%files -n %{name}+loop_device-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+mempolicy-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+mempolicy-devel %{_description} + +This package contains library source intended for building other packages which +use the "mempolicy" feature of the "%{crate}" crate. + +%files -n %{name}+mempolicy-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+net-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+net-devel %{_description} + +This package contains library source intended for building other packages which +use the "net" feature of the "%{crate}" crate. + +%files -n %{name}+net-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+netlink-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+netlink-devel %{_description} + +This package contains library source intended for building other packages which +use the "netlink" feature of the "%{crate}" crate. + +%files -n %{name}+netlink-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+no_std-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+no_std-devel %{_description} + +This package contains library source intended for building other packages which +use the "no_std" feature of the "%{crate}" crate. + +%files -n %{name}+no_std-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+prctl-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+prctl-devel %{_description} + +This package contains library source intended for building other packages which +use the "prctl" feature of the "%{crate}" crate. + +%files -n %{name}+prctl-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+std-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+std-devel %{_description} + +This package contains library source intended for building other packages which +use the "std" feature of the "%{crate}" crate. + +%files -n %{name}+std-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+system-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+system-devel %{_description} + +This package contains library source intended for building other packages which +use the "system" feature of the "%{crate}" crate. + +%files -n %{name}+system-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+xdp-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+xdp-devel %{_description} + +This package contains library source intended for building other packages which +use the "xdp" feature of the "%{crate}" crate. + +%files -n %{name}+xdp-devel +%ghost %{crate_instdir}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +* Fri Dec 20 2024 MSVSphere Packaging Team - 0.4.14-1 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Mon Sep 16 2024 Fabio Valentini - 0.4.14-1 +- Update to version 0.4.14 + +* Sat Jul 20 2024 Fedora Release Engineering - 0.4.12-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Fri Jan 26 2024 Fedora Release Engineering - 0.4.12-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jan 05 2024 Fabio Valentini - 0.4.12-1 +- Initial import (linux-raw-sys 0.4 compat package) +## END: Generated by rpmautospec