commit 60bcf60affaf7b011a0000868b43ea124f7e1116 Author: tigro Date: Mon Jan 15 22:16:23 2024 +0300 import rust-print_bytes-1.2.0-1.el9 diff --git a/.rust-print_bytes.metadata b/.rust-print_bytes.metadata new file mode 100644 index 0000000..e69de29 diff --git a/SOURCES/print_bytes-1.2.0.crate b/SOURCES/print_bytes-1.2.0.crate new file mode 100644 index 0000000..cc43b68 Binary files /dev/null and b/SOURCES/print_bytes-1.2.0.crate differ diff --git a/SOURCES/print_bytes-fix-metadata-auto.diff b/SOURCES/print_bytes-fix-metadata-auto.diff new file mode 100644 index 0000000..ca8f4e7 --- /dev/null +++ b/SOURCES/print_bytes-fix-metadata-auto.diff @@ -0,0 +1,12 @@ +--- print_bytes-1.2.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ print_bytes-1.2.0/Cargo.toml 2023-04-14T20:15:40.852504+00:00 +@@ -58,9 +58,3 @@ + [features] + specialization = [] + +-[target."cfg(windows)".dependencies.windows-sys] +-version = "0.48" +-features = [ +- "Win32_Foundation", +- "Win32_System_Console", +-] diff --git a/SPECS/rust-print_bytes.spec b/SPECS/rust-print_bytes.spec new file mode 100644 index 0000000..89a5aaa --- /dev/null +++ b/SPECS/rust-print_bytes.spec @@ -0,0 +1,114 @@ +## 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 24 +# * test sources are excluded from published crates +%bcond_with check +%global debug_package %{nil} + +%global crate print_bytes + +Name: rust-print_bytes +Version: 1.2.0 +Release: %autorelease +Summary: Print bytes as losslessly as possible + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/print_bytes +Source: %{crates_source} +# Automatically generated patch to strip foreign dependencies +Patch: print_bytes-fix-metadata-auto.diff + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Print bytes as losslessly as possible.} + +%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}/COPYRIGHT +%license %{crate_instdir}/LICENSE-APACHE +%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 + +%package -n %{name}+specialization-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+specialization-devel %{_description} + +This package contains library source intended for building other packages which +use the "specialization" feature of the "%{crate}" crate. + +%files -n %{name}+specialization-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 +* Mon Jan 15 2024 Arkady L. Shane - 1.2.0-1 +- Rebuilt for MSVSphere 9.3 + +* Fri Apr 14 2023 Fabio Valentini - 1.2.0-1 +- Update to version 1.2.0; Fixes RHBZ#2186077 + +* Sun Mar 26 2023 Fabio Valentini - 1.1.1-1 +- Update to version 1.1.1; Fixes RHBZ#2160946 + +* Sat Jan 21 2023 Fedora Release Engineering - 0.7.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Sat Dec 10 2022 Fabio Valentini - 0.7.0-1 +- Update to version 0.7.0; Fixes RHBZ#2121983 + +* Sat Jul 23 2022 Fedora Release Engineering - 0.6.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Mon Jul 04 2022 Zbigniew Jędrzejewski-Szmek - 0.6.0-1 +- First version