From 23ce3e99c5aa3dd06d1599b963d53f3f21ed00b4 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Wed, 13 Sep 2023 21:37:06 +0200 Subject: [PATCH] Initial import (#2238171) --- .gitignore | 1 + README.md | 3 - document-features-fix-metadata.diff | 11 ++++ rust-document-features.spec | 86 +++++++++++++++++++++++++++++ sources | 1 + 5 files changed, 99 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 document-features-fix-metadata.diff create mode 100644 rust-document-features.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e437db5 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/document-features-0.2.7.crate diff --git a/README.md b/README.md deleted file mode 100644 index ea6bb3f..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-document-features - -The rust-document-features package diff --git a/document-features-fix-metadata.diff b/document-features-fix-metadata.diff new file mode 100644 index 0000000..401c886 --- /dev/null +++ b/document-features-fix-metadata.diff @@ -0,0 +1,11 @@ +--- document-features-0.2.7/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ document-features-0.2.7/Cargo.toml 2023-09-09T17:32:50.349542+00:00 +@@ -32,7 +32,7 @@ + proc-macro = true + + [dependencies.litrs] +-version = "0.2.3" ++version = "0.4" + default-features = false + + [features] diff --git a/rust-document-features.spec b/rust-document-features.spec new file mode 100644 index 0000000..d9c67e2 --- /dev/null +++ b/rust-document-features.spec @@ -0,0 +1,86 @@ +# Generated by rust2rpm 24 +# * self-tests do not work with munged Cargo.toml from published crates +%bcond_with check +%global debug_package %{nil} + +%global crate document-features + +Name: rust-document-features +Version: 0.2.7 +Release: %autorelease +Summary: Extract documentation for the feature flags from comments in Cargo.toml + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/document-features +Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * bump litrs dependency from 0.2 to 0.4 +Patch: document-features-fix-metadata.diff + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Extract documentation for the feature flags from comments in Cargo.toml.} + +%description %{_description} + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel %{_description} + +This package contains library source intended for building other packages which +use the "%{crate}" crate. + +%files devel +%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} +BuildArch: noarch + +%description -n %{name}+default-devel %{_description} + +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 %{crate_instdir}/Cargo.toml + +%package -n %{name}+self-test-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+self-test-devel %{_description} + +This package contains library source intended for building other packages which +use the "self-test" feature of the "%{crate}" crate. + +%files -n %{name}+self-test-devel +%ghost %{crate_instdir}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version_no_tilde} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..dde2127 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (document-features-0.2.7.crate) = 5b90343a90debf64e92df17afb4a8eb1aec3b18737086c16f66d8ac47e50c18d20d86c4d8fe5af6c0156e87ed1537963af4535255691c69b613d5fc536e7f821