diff --git a/.gitignore b/.gitignore index dd89273..079b1ff 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ /errno-0.2.6.crate /errno-0.2.7.crate /errno-0.2.8.crate +/errno-0.3.0.crate diff --git a/README.md b/README.md deleted file mode 100644 index cf1f9a0..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-errno - -The rust-errno package \ No newline at end of file diff --git a/errno-fix-metadata-auto.diff b/errno-fix-metadata-auto.diff new file mode 100644 index 0000000..14879ba --- /dev/null +++ b/errno-fix-metadata-auto.diff @@ -0,0 +1,24 @@ +--- errno-0.3.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ errno-0.3.0/Cargo.toml 2023-02-21T23:54:10.536812+00:00 +@@ -29,21 +29,6 @@ + default = ["std"] + std = [] + +-[target."cfg(target_os=\"dragonfly\")".dependencies.errno-dragonfly] +-version = "0.1.1" +- +-[target."cfg(target_os=\"hermit\")".dependencies.libc] +-version = "0.2" +- +-[target."cfg(target_os=\"wasi\")".dependencies.libc] +-version = "0.2" +- + [target."cfg(unix)".dependencies.libc] + version = "0.2" + +-[target."cfg(windows)".dependencies.windows-sys] +-version = "0.45" +-features = [ +- "Win32_Foundation", +- "Win32_System_Diagnostics_Debug", +-] diff --git a/rust-errno.spec b/rust-errno.spec index ebdc854..d7498c9 100644 --- a/rust-errno.spec +++ b/rust-errno.spec @@ -1,28 +1,21 @@ -# Generated by rust2rpm 18 +# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate errno -Name: rust-%{crate} -Version: 0.2.8 +Name: rust-errno +Version: 0.3.0 Release: %autorelease -Summary: Cross-platform interface to the `errno` variable +Summary: Cross-platform interface to the errno variable -# Upstream license specification: MIT/Apache-2.0 -License: MIT or ASL 2.0 +License: MIT OR Apache-2.0 URL: https://crates.io/crates/errno Source: %{crates_source} -# Initial patched metadata -# * No dragonfly, hermit, wasi, windows dependencies -Patch0: errno-fix-metadata.diff +# Automatically generated patch to strip foreign dependencies +Patch: errno-fix-metadata-auto.diff -ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Cross-platform interface to the `errno` variable.} @@ -35,13 +28,15 @@ 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 -%license LICENSE-MIT LICENSE-APACHE -%doc README.md CHANGELOG.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/CHANGELOG.md +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -49,11 +44,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}+std-devel Summary: %{summary} @@ -61,11 +56,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 +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 diff --git a/sources b/sources index 0c15af0..0c464ac 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (errno-0.2.8.crate) = 1f513743224cd9a9b7e4caaf33dab075a4a79efa90c9f46c9edfb0c8600daccd3ad2677ba2116621e19fcf8be456954da5d611cbcea4b6f1410f7731828b50d1 +SHA512 (errno-0.3.0.crate) = 8b0626190d965306ddd84383b6b5ab529502eddf3859f7b480f6864e83310248b6044485e000bece8b95ef24d2f1bfffad6c2eeebd177f3a10e819b29e5e6f5b