diff --git a/.gitignore b/.gitignore index 29d47f9..1aeae45 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /libflate_lz77-1.0.0.crate /libflate_lz77-1.1.0.crate +/libflate_lz77-1.2.0.crate diff --git a/README.md b/README.md deleted file mode 100644 index 20079bd..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-libflate_lz77 - -The rust-libflate_lz77 package \ No newline at end of file diff --git a/libflate_lz77-fix-metadata.diff b/libflate_lz77-fix-metadata.diff new file mode 100644 index 0000000..9758926 --- /dev/null +++ b/libflate_lz77-fix-metadata.diff @@ -0,0 +1,30 @@ +--- libflate_lz77-1.2.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ libflate_lz77-1.2.0/Cargo.toml 2023-05-22T18:18:29.510490+00:00 +@@ -22,27 +22,11 @@ + license = "MIT" + repository = "https://github.com/sile/libflate" + +-[dependencies.core2] +-version = "0.4" +-features = ["alloc"] +-optional = true +-default-features = false +- +-[dependencies.hashbrown] +-version = "0.13" +-optional = true +- + [dependencies.rle-decode-fast] + version = "1.0.0" + + [dev-dependencies.libflate] + version = "1" + +-[features] +-no_std = [ +- "core2", +- "hashbrown", +-] +- + [badges.coveralls] + repository = "sile/libflate" diff --git a/rust-libflate_lz77.spec b/rust-libflate_lz77.spec index 527dafa..843c558 100644 --- a/rust-libflate_lz77.spec +++ b/rust-libflate_lz77.spec @@ -1,25 +1,22 @@ -# Generated by rust2rpm 17 +# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate libflate_lz77 -Name: rust-%{crate} -Version: 1.1.0 +Name: rust-libflate_lz77 +Version: 1.2.0 Release: %autorelease Summary: LZ77 encoder for libflate crate -# Upstream license specification: MIT License: MIT URL: https://crates.io/crates/libflate_lz77 Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * drop unused no_std feature with missing dependencies +Patch: libflate_lz77-fix-metadata.diff -ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: LZ77 encoder for libflate crate.} @@ -32,13 +29,13 @@ 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 -%doc README.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -46,11 +43,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 %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 diff --git a/sources b/sources index fe6c878..3be861e 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (libflate_lz77-1.1.0.crate) = ab0cba9d324d2f7bf2a741e8ef8b0ee7bfa85ab6ee63b9ccf6ff912461ca854d6b7467e527d74ee93a219d6dec5bcecc3e61eea83d4cf5b2452f9a0aa97cd95c +SHA512 (libflate_lz77-1.2.0.crate) = 5aeb0d1ab0bef43a87552f93dca760450e6fcb0213c9dfdc0ed2f72fcb6ee1b26add02705f7c5a8552c975c9673b1a147fa036b6f4c42c07675a11b3cb1929d0