From 81355fca610e4a9c1cc51be9d6c1d8e29f7d84be Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Fri, 20 Dec 2024 18:03:01 +0300 Subject: [PATCH] import rust-unsafe-libyaml-0.2.11-2.el10 --- .gitignore | 1 + .rust-unsafe-libyaml.metadata | 1 + SOURCES/rust2rpm.toml | 7 ++ SPECS/rust-unsafe-libyaml.spec | 121 +++++++++++++++++++++++++++++++++ 4 files changed, 130 insertions(+) create mode 100644 .gitignore create mode 100644 .rust-unsafe-libyaml.metadata create mode 100644 SOURCES/rust2rpm.toml create mode 100644 SPECS/rust-unsafe-libyaml.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7e0a75b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/unsafe-libyaml-0.2.11.crate diff --git a/.rust-unsafe-libyaml.metadata b/.rust-unsafe-libyaml.metadata new file mode 100644 index 0000000..5e8d865 --- /dev/null +++ b/.rust-unsafe-libyaml.metadata @@ -0,0 +1 @@ +ee25a0cbe3c5986c9f1fe09ae4025ba3b9f509d2 SOURCES/unsafe-libyaml-0.2.11.crate diff --git a/SOURCES/rust2rpm.toml b/SOURCES/rust2rpm.toml new file mode 100644 index 0000000..0d7a1c5 --- /dev/null +++ b/SOURCES/rust2rpm.toml @@ -0,0 +1,7 @@ +[package] +cargo-install-bin = false + +[tests] +run = ["none"] +comments = ["tests can only be run in-tree"] + diff --git a/SPECS/rust-unsafe-libyaml.spec b/SPECS/rust-unsafe-libyaml.spec new file mode 100644 index 0000000..d1e2606 --- /dev/null +++ b/SPECS/rust-unsafe-libyaml.spec @@ -0,0 +1,121 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.7.3) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 2; + 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 26 +# * tests can only be run in-tree +%bcond_with check +%global debug_package %{nil} + +# prevent executables from being installed +%global cargo_install_bin 0 + +%global crate unsafe-libyaml + +Name: rust-unsafe-libyaml +Version: 0.2.11 +Release: %autorelease +Summary: Libyaml transpiled to rust by c2rust + +License: MIT +URL: https://crates.io/crates/unsafe-libyaml +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 26 + +%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 +* Fri Dec 20 2024 MSVSphere Packaging Team - 0.2.11-2 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Sat Jul 20 2024 Fedora Release Engineering - 0.2.11-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Mon Mar 18 2024 Fabio Valentini - 0.2.11-1 +- Update to version 0.2.11; Fixes RHBZ#2269915 + +* Sat Jan 27 2024 Fedora Release Engineering - 0.2.10-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* 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) +## END: Generated by rpmautospec