commit 03dde7608864f9aa1318cbdd385422ee6abc0669 Author: tigro Date: Mon Jan 15 20:40:06 2024 +0300 import rust-byte-unit-4.0.19-1.el9 diff --git a/.rust-byte-unit.metadata b/.rust-byte-unit.metadata new file mode 100644 index 0000000..e69de29 diff --git a/SOURCES/byte-unit-4.0.19.crate b/SOURCES/byte-unit-4.0.19.crate new file mode 100644 index 0000000..686e42c Binary files /dev/null and b/SOURCES/byte-unit-4.0.19.crate differ diff --git a/SPECS/rust-byte-unit.spec b/SPECS/rust-byte-unit.spec new file mode 100644 index 0000000..67b9597 --- /dev/null +++ b/SPECS/rust-byte-unit.spec @@ -0,0 +1,195 @@ +## 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 +%bcond_without check +%global debug_package %{nil} + +%global crate byte-unit + +Name: rust-byte-unit +Version: 4.0.19 +Release: %autorelease +Summary: Library for interaction with units of bytes + +License: MIT +URL: https://crates.io/crates/byte-unit +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +A library for interaction with units of bytes.} + +%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 +%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}+alloc-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+alloc-devel %{_description} + +This package contains library source intended for building other packages which +use the "alloc" feature of the "%{crate}" crate. + +%files -n %{name}+alloc-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 + +%package -n %{name}+std-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+std-devel %{_description} + +This package contains library source intended for building other packages which +use the "std" feature of the "%{crate}" crate. + +%files -n %{name}+std-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+u128-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+u128-devel %{_description} + +This package contains library source intended for building other packages which +use the "u128" feature of the "%{crate}" crate. + +%files -n %{name}+u128-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 - 4.0.19-1 +- Rebuilt for MSVSphere 9.3 + +* Wed Mar 15 2023 Fabio Valentini - 4.0.19-1 +- Update to version 4.0.19; Fixes RHBZ#2178368 + +* Fri Jan 20 2023 Fedora Release Engineering - 4.0.18-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Wed Dec 14 2022 Fabio Valentini - 4.0.18-1 +- Update to version 4.0.18; Fixes RHBZ#2152898 + +* Mon Nov 07 2022 Fabio Valentini - 4.0.17-1 +- Update to version 4.0.17; Fixes RHBZ#2139267 + +* Sat Jul 23 2022 Fedora Release Engineering - 4.0.14-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Sat Mar 05 2022 Fabio Valentini - 4.0.14-1 +- Update to version 4.0.14; Fixes RHBZ#2061046 + +* Fri Jan 21 2022 Fedora Release Engineering - 4.0.13-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Nov 05 2021 Fabio Valentini - 4.0.13-1 +- Update to version 4.0.13; Fixes RHBZ#2015731 + +* Fri Jul 23 2021 Fedora Release Engineering - 4.0.12-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Mon May 10 2021 Fabio Valentini - 4.0.12-1 +- Update to version 4.0.12. +- Fixes RHBZ#1958711 + +* Wed Apr 21 2021 Fabio Valentini - 4.0.11-1 +- Update to version 4.0.11. +- Fixes RHBZ#1952016 + +* Thu Mar 25 2021 Fabio Valentini - 4.0.10-1 +- Update to version 4.0.10. +- Fixes RHBZ#1937539 + +* Wed Jan 27 2021 Fedora Release Engineering - 4.0.9-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Mon Nov 30 2020 Fabio Valentini - 4.0.9-1 +- Update to version 4.0.9. +- Fixes RHBZ#1851602 + +* Wed Jul 29 2020 Fedora Release Engineering - 3.1.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue May 26 2020 Josh Stone - 3.1.3-1 +- Update to 3.1.3 + +* Mon May 25 13:38:25 CEST 2020 Igor Raits - 3.1.2-1 +- Update to 3.1.2 + +* Mon May 18 2020 Josh Stone - 3.1.1-1 +- Update to 3.1.1 + +* Thu Jan 30 2020 Fedora Release Engineering - 3.0.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Mon Sep 16 11:06:41 CEST 2019 Igor Gnatenko - 3.0.3-1 +- Update to 3.0.3 + +* Sun Sep 08 18:06:58 CEST 2019 Igor Gnatenko - 3.0.1-1 +- Initial package +