commit dbf4be17631f120399b5c9cce31c26aaaa823146 Author: MSVSphere Packaging Team Date: Fri Dec 20 16:10:39 2024 +0300 import rust-lazycell-1.3.0-12.el10 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..39e57fc --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/lazycell-1.3.0.crate diff --git a/.rust-lazycell.metadata b/.rust-lazycell.metadata new file mode 100644 index 0000000..b2dd91c --- /dev/null +++ b/.rust-lazycell.metadata @@ -0,0 +1 @@ +e5c22a5665cf322409afb42a21fa6c3ff31ba089 SOURCES/lazycell-1.3.0.crate diff --git a/SOURCES/lazycell-fix-metadata.diff b/SOURCES/lazycell-fix-metadata.diff new file mode 100644 index 0000000..3ae0f02 --- /dev/null +++ b/SOURCES/lazycell-fix-metadata.diff @@ -0,0 +1,17 @@ +--- lazycell-1.3.0/Cargo.toml 2020-08-12T01:11:22+00:00 ++++ lazycell-1.3.0/Cargo.toml 2023-05-20T15:31:35.228099+00:00 +@@ -21,14 +21,7 @@ + keywords = ["lazycell", "lazy", "cell", "library"] + license = "MIT/Apache-2.0" + repository = "https://github.com/indiv0/lazycell" +-[dependencies.clippy] +-version = "0.0" +-optional = true + + [dependencies.serde] + version = "^1" + optional = true +- +-[features] +-nightly = [] +-nightly-testing = ["clippy", "nightly"] diff --git a/SPECS/rust-lazycell.spec b/SPECS/rust-lazycell.spec new file mode 100644 index 0000000..c7859b6 --- /dev/null +++ b/SPECS/rust-lazycell.spec @@ -0,0 +1,182 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.7.2) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 12; + 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 24 +%bcond_without check +%global debug_package %{nil} + +%global crate lazycell + +Name: rust-lazycell +Version: 1.3.0 +Release: %autorelease +Summary: Library providing a lazily filled Cell struct + +# Upstream license specification: MIT/Apache-2.0 +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/lazycell +Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * remove dependency on the obsolete clippy crate +# * remove nightly-only features +Patch: lazycell-fix-metadata.diff + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +A library providing a lazily filled Cell struct.} + +%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}+serde-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+serde-devel %{_description} + +This package contains library source intended for building other packages which +use the "serde" feature of the "%{crate}" crate. + +%files -n %{name}+serde-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 +* Fri Dec 20 2024 MSVSphere Packaging Team - 1.3.0-12 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Fri Jul 19 2024 Fedora Release Engineering - 1.3.0-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Fri Jan 26 2024 Fedora Release Engineering - 1.3.0-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jul 21 2023 Fedora Release Engineering - 1.3.0-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Sat May 20 2023 Fabio Valentini - 1.3.0-9 +- Regenerate with rust2rpm v24 + +* Fri Jan 20 2023 Fedora Release Engineering - 1.3.0-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Sat Jul 23 2022 Fedora Release Engineering - 1.3.0-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Fri Jan 21 2022 Fedora Release Engineering - 1.3.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 1.3.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Wed Jan 27 2021 Fedora Release Engineering - 1.3.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Dec 02 2020 Fabio Valentini - 1.3.0-2 +- Remove features with missing dependencies (clippy). + +* Thu Aug 20 2020 Josh Stone - 1.3.0-1 +- Update to 1.3.0 + +* Wed Jul 29 2020 Fedora Release Engineering - 1.2.1-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Thu Jan 30 2020 Fedora Release Engineering - 1.2.1-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Fri Jul 26 2019 Fedora Release Engineering - 1.2.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sat Jun 22 20:05:35 CEST 2019 Igor Gnatenko - 1.2.1-4 +- Initial package + +* Sat Feb 02 2019 Fedora Release Engineering - 1.2.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Thu Dec 20 2018 Igor Gnatenko - 1.2.1-2 +- Run tests in infrastructure + +* Thu Dec 06 2018 Josh Stone - 1.2.1-1 +- Update to 1.2.1 + +* Sun Nov 04 2018 Igor Gnatenko - 1.2.0-2 +- Adapt to new packaging + +* Thu Sep 20 2018 Josh Stone - 1.2.0-1 +- Update to 1.2.0 + +* Tue Sep 11 2018 Josh Stone - 1.1.0-1 +- Update to 1.1.0 + +* Sat Jul 14 2018 Fedora Release Engineering - 1.0.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Fri Jun 15 2018 Igor Gnatenko - 1.0.0-1 +- Update to 1.0.0 + +* Fri Feb 09 2018 Fedora Release Engineering - 0.6.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Mon Jan 08 2018 Igor Gnatenko - 0.6.0-2 +- Rebuild for rust-packaging v5 + +* Wed Nov 29 2017 Igor Gnatenko - 0.6.0-1 +- Update to 0.6.0 + +* Fri Jun 16 2017 Igor Gnatenko - 0.5.1-1 +- Initial package + +## END: Generated by rpmautospec