diff --git a/.gitignore b/.gitignore index eb34f0f..77bf9d2 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ /lalrpop-0.19.5.crate /lalrpop-0.19.6.crate /lalrpop-0.19.7.crate +/lalrpop-0.19.8.crate diff --git a/lalrpop-fix-metadata.diff b/lalrpop-fix-metadata.diff new file mode 100644 index 0000000..f6dc9de --- /dev/null +++ b/lalrpop-fix-metadata.diff @@ -0,0 +1,10 @@ +--- lalrpop-0.19.8/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ lalrpop-0.19.8/Cargo.toml 2022-05-25T12:40:14.120363+00:00 +@@ -26,6 +26,7 @@ + categories = ["parsing"] + license = "Apache-2.0/MIT" + repository = "https://github.com/lalrpop/lalrpop" ++autobins = false + + [package.metadata.docs.rs] + features = ["lexer"] diff --git a/rust-lalrpop.spec b/rust-lalrpop.spec index b55a7d0..19f9d90 100644 --- a/rust-lalrpop.spec +++ b/rust-lalrpop.spec @@ -1,10 +1,11 @@ -# Generated by rust2rpm 20 +# Generated by rust2rpm 21 %bcond_without check +%global debug_package %{nil} %global crate lalrpop Name: rust-%{crate} -Version: 0.19.7 +Version: 0.19.8 Release: %autorelease Summary: Convenient LR(1) parser generator @@ -13,31 +14,19 @@ Summary: Convenient LR(1) parser generator License: ASL 2.0 or MIT URL: https://crates.io/crates/lalrpop Source: %{crates_source} +# Initial patched metadata +# * drop unused lalrpop binary +Patch0: lalrpop-fix-metadata.diff ExclusiveArch: %{rust_arches} -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Convenient LR(1) parser generator.} %description %{_description} -%package -n %{crate} -Summary: %{summary} -# ASL 2.0 or MIT -# BSD -# CC0 -# MIT -# MIT or ASL 2.0 -# Unlicense or MIT -License: MIT and BSD and CC0 - -%description -n %{crate} %{_description} - -%files -n %{crate} -%{_bindir}/lalrpop - %package devel Summary: %{summary} BuildArch: noarch @@ -48,7 +37,7 @@ This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -60,7 +49,7 @@ 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}+lexer-devel Summary: %{summary} @@ -72,7 +61,7 @@ This package contains library source intended for building other packages which use the "lexer" feature of the "%{crate}" crate. %files -n %{name}+lexer-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+pico-args-devel Summary: %{summary} @@ -84,7 +73,7 @@ This package contains library source intended for building other packages which use the "pico-args" feature of the "%{crate}" crate. %files -n %{name}+pico-args-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+test-devel Summary: %{summary} @@ -96,7 +85,7 @@ This package contains library source intended for building other packages which use the "test" feature of the "%{crate}" crate. %files -n %{name}+test-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 658cdcc..d97a4f9 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (lalrpop-0.19.7.crate) = a678bb9bab7de6ed2d88db6deba95e9bb53ae9b9970177fb74bbb4ce49472311f70621ea14dc3ab9865f9224a4850238533e104b64940e0336860f745785433a +SHA512 (lalrpop-0.19.8.crate) = 62af845f2b0087a08b98fd55a2b07bfceb84ebf63a38b53cac23ee4c1043ff4f8e5f84194b314b25a0dcfba3ecc10b050be63d638a991d1ea90fb73707567d9f