commit 4f3f9a5eeb447af977df05c5e418823439c2d046 Author: MSVSphere Packaging Team Date: Fri Dec 20 15:21:46 2024 +0300 import rust-displaydoc-0.2.5-3.el10 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a5fffc7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/displaydoc-0.2.5.crate diff --git a/.rust-displaydoc.metadata b/.rust-displaydoc.metadata new file mode 100644 index 0000000..10345b8 --- /dev/null +++ b/.rust-displaydoc.metadata @@ -0,0 +1 @@ +76e157e50cbc85772ee76be2cb9eab19a1afb747 SOURCES/displaydoc-0.2.5.crate diff --git a/SOURCES/displaydoc-fix-metadata.diff b/SOURCES/displaydoc-fix-metadata.diff new file mode 100644 index 0000000..7179123 --- /dev/null +++ b/SOURCES/displaydoc-fix-metadata.diff @@ -0,0 +1,11 @@ +--- displaydoc-0.2.5/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ displaydoc-0.2.5/Cargo.toml 2024-12-11T12:17:38.790823+00:00 +@@ -96,7 +96,7 @@ + default-features = false + + [dev-dependencies.pretty_assertions] +-version = "0.6.1" ++version = "1.4.0" + + [dev-dependencies.rustversion] + version = "1.0.0" diff --git a/SOURCES/rust2rpm.toml b/SOURCES/rust2rpm.toml new file mode 100644 index 0000000..2fd0d80 --- /dev/null +++ b/SOURCES/rust2rpm.toml @@ -0,0 +1,5 @@ +[package] +summary = "Derive macro for implementing the display Trait" +cargo-toml-patch-comments = [ + "Bump pretty_assertions dependency to 1.4.0: https://github.com/yaahc/displaydoc/pull/53", +] diff --git a/SPECS/rust-displaydoc.spec b/SPECS/rust-displaydoc.spec new file mode 100644 index 0000000..c7a0c68 --- /dev/null +++ b/SPECS/rust-displaydoc.spec @@ -0,0 +1,130 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.7.3) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 3; + base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); + print(release_number + base_release_number - 1); +}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} +## END: Set by rpmautospec + +# Generated by rust2rpm 27 +%bcond check 1 +%global debug_package %{nil} + +%global crate displaydoc + +Name: rust-displaydoc +Version: 0.2.5 +Release: %autorelease +Summary: Derive macro for implementing the display Trait + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/displaydoc +Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * Bump pretty_assertions dependency to 1.4.0: +# https://github.com/yaahc/displaydoc/pull/53 +Patch: displaydoc-fix-metadata.diff + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +A derive macro for implementing the display Trait via a doc comment and +string interpolation.} + +%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}+std-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+std-devel %{_description} + +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 %{crate_instdir}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +* Fri Dec 20 2024 MSVSphere Packaging Team - 0.2.5-3 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Wed Dec 11 2024 Benjamin A. Beasley - 0.2.5-3 +- Bump pretty_assertions dependency to 1.4.0 + +* Fri Jul 19 2024 Fedora Release Engineering - 0.2.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Fri Jun 21 2024 Fabio Valentini - 0.2.5-1 +- Update to version 0.2.5; Fixes RHBZ#2293522 + +* Fri Jan 26 2024 Fedora Release Engineering - 0.2.4-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jul 21 2023 Fedora Release Engineering - 0.2.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Wed May 17 2023 Fabio Valentini - 0.2.4-1 +- Update to version 0.2.4; Fixes RHBZ#2193002 + +* Fri Jan 20 2023 Fedora Release Engineering - 0.2.3-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Sat Jul 23 2022 Fedora Release Engineering - 0.2.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Fri Jan 21 2022 Fedora Release Engineering - 0.2.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Aug 27 2021 Davide Cavalca - 0.2.3-1 +- Initial import; Fixes: RHBZ#1990500 +## END: Generated by rpmautospec