diff --git a/.gitignore b/.gitignore index f5a858a..9bd4335 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ /pest_meta-2.5.6.crate /pest_meta-2.5.7.crate /pest_meta-2.6.0.crate +/pest_meta-2.7.1.crate diff --git a/pest_meta-fix-metadata.diff b/pest_meta-fix-metadata.diff new file mode 100644 index 0000000..73057e6 --- /dev/null +++ b/pest_meta-fix-metadata.diff @@ -0,0 +1,18 @@ +--- pest_meta-2.7.1/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ pest_meta-2.7.1/Cargo.toml 2023-07-17T21:02:37.286061+00:00 +@@ -43,10 +43,6 @@ + [dependencies.pest] + version = "2.7.1" + +-[build-dependencies.cargo] +-version = "0.70" +-optional = true +- + [build-dependencies.sha2] + version = "0.10" + default-features = false +@@ -54,4 +50,3 @@ + [features] + default = [] + grammar-extras = [] +-not-bootstrap-in-src = ["dep:cargo"] diff --git a/rust-pest_meta.spec b/rust-pest_meta.spec index 87e930c..0a2e3a5 100644 --- a/rust-pest_meta.spec +++ b/rust-pest_meta.spec @@ -6,7 +6,7 @@ %global crate pest_meta Name: rust-pest_meta -Version: 2.6.0 +Version: 2.7.1 Release: %autorelease Summary: Pest meta language parser and validator @@ -14,6 +14,9 @@ Summary: Pest meta language parser and validator License: MIT OR Apache-2.0 URL: https://crates.io/crates/pest_meta Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * drop feature and dependencies for bootstrap build mode +Patch: pest_meta-fix-metadata.diff BuildRequires: rust-packaging >= 21 @@ -49,6 +52,18 @@ use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel %ghost %{crate_instdir}/Cargo.toml +%package -n %{name}+grammar-extras-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+grammar-extras-devel %{_description} + +This package contains library source intended for building other packages which +use the "grammar-extras" feature of the "%{crate}" crate. + +%files -n %{name}+grammar-extras-devel +%ghost %{crate_instdir}/Cargo.toml + %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep diff --git a/sources b/sources index 3cb54ca..2a66469 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (pest_meta-2.6.0.crate) = 89bfb10304155d55d02c72ef6e5b8719fddf74163b833281cdf965b3b74fcab98ad2451323957cff1c97eefc4b380fe5e673e72ea9a19ca4abc4026a4d3a6fdb +SHA512 (pest_meta-2.7.1.crate) = 16f042e28d0e95ac7616cb7c392b62f3040166d7ec316788ad1263d15fd5aaf077879bc08f2cd5993f12aaff957bdcb18542dad1ac8d09353c35cea71cbd7a58