diff --git a/.gitignore b/.gitignore index d091f6e..28cd57e 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /linux-raw-sys-0.0.36.crate +/linux-raw-sys-0.0.42.crate 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/rust-linux-raw-sys.spec b/rust-linux-raw-sys.spec index e85a1e0..a7ae9eb 100644 --- a/rust-linux-raw-sys.spec +++ b/rust-linux-raw-sys.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 18 +# Generated by rust2rpm 21 %bcond_without check %global debug_package %{nil} %global crate linux-raw-sys Name: rust-%{crate} -Version: 0.0.36 +Version: 0.0.42 Release: %autorelease Summary: Generated bindings for Linux's userspace API @@ -13,16 +13,10 @@ Summary: Generated bindings for Linux's userspace API License: ASL 2.0 or MIT URL: https://crates.io/crates/linux-raw-sys Source: %{crates_source} -# Initial patched metadata -# - drop dependencies on compiler internals -Patch0: linux-raw-sys-fix-metadata.diff ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Generated bindings for Linux's userspace API.} @@ -35,14 +29,16 @@ BuildArch: noarch %description devel %{_description} -This package contains library source intended for building other packages -which use "%{crate}" crate. +This package contains library source intended for building other packages which +use the "%{crate}" crate. %files devel -%doc README.md -%license LICENSE-APACHE LICENSE-MIT COPYRIGHT -%license LICENSE-Apache-2.0_WITH_LLVM-exception -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%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}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -50,11 +46,11 @@ BuildArch: noarch %description -n %{name}+default-devel %{_description} -This package contains library source intended for building other packages -which use "default" feature of "%{crate}" crate. +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 %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+errno-devel Summary: %{summary} @@ -62,11 +58,11 @@ BuildArch: noarch %description -n %{name}+errno-devel %{_description} -This package contains library source intended for building other packages -which use "errno" feature of "%{crate}" crate. +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 %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+general-devel Summary: %{summary} @@ -74,11 +70,23 @@ BuildArch: noarch %description -n %{name}+general-devel %{_description} -This package contains library source intended for building other packages -which use "general" feature of "%{crate}" crate. +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 %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%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} @@ -86,11 +94,11 @@ BuildArch: noarch %description -n %{name}+netlink-devel %{_description} -This package contains library source intended for building other packages -which use "netlink" feature of "%{crate}" crate. +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 %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+no_std-devel Summary: %{summary} @@ -98,11 +106,11 @@ BuildArch: noarch %description -n %{name}+no_std-devel %{_description} -This package contains library source intended for building other packages -which use "no_std" feature of "%{crate}" crate. +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 %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+std-devel Summary: %{summary} @@ -110,107 +118,11 @@ BuildArch: noarch %description -n %{name}+std-devel %{_description} -This package contains library source intended for building other packages -which use "std" feature of "%{crate}" crate. +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 %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml - -%package -n %{name}+v2_6_32-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+v2_6_32-devel %{_description} - -This package contains library source intended for building other packages -which use "v2_6_32" feature of "%{crate}" crate. - -%files -n %{name}+v2_6_32-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml - -%package -n %{name}+v3_10-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+v3_10-devel %{_description} - -This package contains library source intended for building other packages -which use "v3_10" feature of "%{crate}" crate. - -%files -n %{name}+v3_10-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml - -%package -n %{name}+v3_2-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+v3_2-devel %{_description} - -This package contains library source intended for building other packages -which use "v3_2" feature of "%{crate}" crate. - -%files -n %{name}+v3_2-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml - -%package -n %{name}+v4_2-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+v4_2-devel %{_description} - -This package contains library source intended for building other packages -which use "v4_2" feature of "%{crate}" crate. - -%files -n %{name}+v4_2-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml - -%package -n %{name}+v4_20-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+v4_20-devel %{_description} - -This package contains library source intended for building other packages -which use "v4_20" feature of "%{crate}" crate. - -%files -n %{name}+v4_20-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml - -%package -n %{name}+v4_4-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+v4_4-devel %{_description} - -This package contains library source intended for building other packages -which use "v4_4" feature of "%{crate}" crate. - -%files -n %{name}+v4_4-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml - -%package -n %{name}+v5_11-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+v5_11-devel %{_description} - -This package contains library source intended for building other packages -which use "v5_11" feature of "%{crate}" crate. - -%files -n %{name}+v5_11-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml - -%package -n %{name}+v5_4-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+v5_4-devel %{_description} - -This package contains library source intended for building other packages -which use "v5_4" feature of "%{crate}" crate. - -%files -n %{name}+v5_4-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 diff --git a/sources b/sources index e9b23b3..a50569f 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (linux-raw-sys-0.0.36.crate) = da049bf2d5eb8730793cd4ebd5bbca6080972730cf601714759c926e7196a629b8672920b6a4dfc6612a8b5795ccc5d7c1f1d6819c6073d746e226acd13c1a22 +SHA512 (linux-raw-sys-0.0.42.crate) = 69f3e8894c01b0da58459b06e1d6b2dd73fa927eda1cddb339645cf35202c21e971082620ecb7fc0d6427cf1aa89c1ec859bb6bf2ce76a3cac727c3e4fccae6d