commit c922aa6a1da941c53adfb1b5b64e2acd0d115043 Author: tigro Date: Mon Jan 15 23:05:03 2024 +0300 import rust-unsafe-libyaml-0.2.10-1.el9 diff --git a/.rust-unsafe-libyaml.metadata b/.rust-unsafe-libyaml.metadata new file mode 100644 index 0000000..e69de29 diff --git a/SOURCES/unsafe-libyaml-0.2.10.crate b/SOURCES/unsafe-libyaml-0.2.10.crate new file mode 100644 index 0000000..4411c86 Binary files /dev/null and b/SOURCES/unsafe-libyaml-0.2.10.crate differ diff --git a/SOURCES/unsafe-libyaml-fix-metadata.diff b/SOURCES/unsafe-libyaml-fix-metadata.diff new file mode 100644 index 0000000..da67ff2 --- /dev/null +++ b/SOURCES/unsafe-libyaml-fix-metadata.diff @@ -0,0 +1,10 @@ +--- unsafe-libyaml-0.2.10/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ unsafe-libyaml-0.2.10/Cargo.toml 2023-12-27T20:03:18.259236+00:00 +@@ -26,6 +26,7 @@ + ] + license = "MIT" + repository = "https://github.com/dtolnay/unsafe-libyaml" ++autobins = false + + [package.metadata.docs.rs] + rustdoc-args = ["--generate-link-to-definition"] diff --git a/SPECS/rust-unsafe-libyaml.spec b/SPECS/rust-unsafe-libyaml.spec new file mode 100644 index 0000000..7f06026 --- /dev/null +++ b/SPECS/rust-unsafe-libyaml.spec @@ -0,0 +1,110 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.3.5) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 1; + 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 25 +# * tests can only be run in-tree +%bcond_with check +%global debug_package %{nil} + +%global crate unsafe-libyaml + +Name: rust-unsafe-libyaml +Version: 0.2.10 +Release: %autorelease +Summary: Libyaml transpiled to rust by c2rust + +License: MIT +URL: https://crates.io/crates/unsafe-libyaml +Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * skip building unused test binaries +Patch: unsafe-libyaml-fix-metadata.diff + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Libyaml transpiled to rust by c2rust.} + +%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-MIT +%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 + +%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 +* Mon Jan 15 2024 Arkady L. Shane - 0.2.10-1 +- Rebuilt for MSVSphere 9.3 + +* Wed Dec 27 2023 Fabio Valentini - 0.2.10-1 +- Update to version 0.2.10; Fixes RHBZ#2254629 + +* Sat Jul 29 2023 Fabio Valentini - 0.2.9-1 +- Update to version 0.2.9; Fixes RHBZ#2223146 + +* Sat Jul 22 2023 Fedora Release Engineering - 0.2.8-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Fri Apr 14 2023 Fabio Valentini - 0.2.8-1 +- Update to version 0.2.8; Fixes RHBZ#2184893 + +* Mon Mar 06 2023 Fabio Valentini - 0.2.7-1 +- Update to version 0.2.7; Fixes RHBZ#2175341 + +* Sat Jan 21 2023 Fedora Release Engineering - 0.2.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Tue Dec 20 2022 Fabio Valentini - 0.2.5-1 +- Update to version 0.2.5; Fixes RHBZ#2154603 + +* Wed Oct 05 2022 Fabio Valentini - 0.2.4-1 +- Update to version 0.2.4; Fixes RHBZ#2126934 + +* Wed Sep 07 2022 Fabio Valentini - 0.2.2-1 +- Initial import (#2120005)