From e1a02f4df7ce15549a8c92017702e07b05828600 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Sun, 17 Sep 2023 16:39:52 +0200 Subject: [PATCH] Initial import (linux-raw-sys 0.3 compat package) --- .gitignore | 1 + README.md | 3 - rust-linux-raw-sys0.3.spec | 145 +++++++++++++++++++++++++++++++++++++ rust2rpm.conf | 5 ++ sources | 1 + 5 files changed, 152 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-linux-raw-sys0.3.spec create mode 100644 rust2rpm.conf create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..873a2b0 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/linux-raw-sys-0.3.8.crate diff --git a/README.md b/README.md deleted file mode 100644 index a9346eb..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-linux-raw-sys0.3 - -The rust-linux-raw-sys0.3 package diff --git a/rust-linux-raw-sys0.3.spec b/rust-linux-raw-sys0.3.spec new file mode 100644 index 0000000..d9fd0cb --- /dev/null +++ b/rust-linux-raw-sys0.3.spec @@ -0,0 +1,145 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate linux-raw-sys + +Name: rust-linux-raw-sys0.3 +Version: 0.3.8 +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: rust-packaging >= 21 + +%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}+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}+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}+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}+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 + +%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 +%endif + +%changelog +%autochangelog diff --git a/rust2rpm.conf b/rust2rpm.conf new file mode 100644 index 0000000..302578b --- /dev/null +++ b/rust2rpm.conf @@ -0,0 +1,5 @@ +[DEFAULT] +unwanted-features = + compiler_builtins + core + rustc-dep-of-std diff --git a/sources b/sources new file mode 100644 index 0000000..eeb2f5e --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (linux-raw-sys-0.3.8.crate) = cb0e5c54870dacfa513ad05f7a84e9e90dc1a42f55685fe3e252fd25cffa4b875f1b65eaf4ad132ef0a19e6677c7763b360d71ff0060fe6ce5198f38b9956375