diff --git a/.gitignore b/.gitignore index 11d8afe..ea507de 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,4 @@ /nom-6.2.1.crate /nom-7.0.0.crate /nom-7.1.0.crate +/nom-7.1.1.crate diff --git a/nom-fix-metadata.diff b/nom-fix-metadata.diff index f795d71..b487d2a 100644 --- a/nom-fix-metadata.diff +++ b/nom-fix-metadata.diff @@ -1,6 +1,6 @@ ---- nom-7.1.0/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ nom-7.1.0/Cargo.toml 2021-11-05T10:42:04.874822+00:00 -@@ -30,25 +30,6 @@ +--- nom-7.1.1/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ nom-7.1.1/Cargo.toml 2022-03-17T21:43:47.840913+00:00 +@@ -31,25 +31,6 @@ lto = true codegen-units = 1 debug = true diff --git a/rust-nom.spec b/rust-nom.spec index 405655a..d84921a 100644 --- a/rust-nom.spec +++ b/rust-nom.spec @@ -1,4 +1,4 @@ -# Generated by rust2rpm 18 +# Generated by rust2rpm 21 # * temporarily disable tests to work around codegen issues with LLVM 12: # https://bugzilla.redhat.com/show_bug.cgi?id=2020861 %bcond_with check @@ -7,7 +7,7 @@ %global crate nom Name: rust-%{crate} -Version: 7.1.0 +Version: 7.1.1 Release: %autorelease Summary: Byte-oriented, zero-copy, parser combinators library @@ -20,11 +20,8 @@ Source: %{crates_source} Patch0: nom-fix-metadata.diff ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Byte-oriented, zero-copy, parser combinators library.} @@ -37,13 +34,14 @@ 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 CHANGELOG.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE +%doc %{crate_instdir}/CHANGELOG.md +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -51,11 +49,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}+alloc-devel Summary: %{summary} @@ -63,11 +61,11 @@ BuildArch: noarch %description -n %{name}+alloc-devel %{_description} -This package contains library source intended for building other packages -which use "alloc" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "alloc" feature of the "%{crate}" crate. %files -n %{name}+alloc-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+docsrs-devel Summary: %{summary} @@ -75,11 +73,11 @@ BuildArch: noarch %description -n %{name}+docsrs-devel %{_description} -This package contains library source intended for building other packages -which use "docsrs" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "docsrs" feature of the "%{crate}" crate. %files -n %{name}+docsrs-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+std-devel Summary: %{summary} @@ -87,11 +85,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 1565d2e..cfe2ffb 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (nom-7.1.0.crate) = aacf14e84be17edced412e3d256734508426a8acb8352e83a5d9d4f26d640f60a881d8f70fbc6edf1843173af63ec05be7694fcd6c6287d871e40518e2ed04ee +SHA512 (nom-7.1.1.crate) = 1456efdbda4f5b3da6c8580721acf101ed7d779619ee0190c1df103244e405a8ffa0c3889901a2d8beeab0ab84074ed4c7cec5330c7cc2a5a3c30e36a2530be8