## 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)