commit 96cca1c6ad8b7cea57d568a5f00a19e142866fa3 Author: tigro Date: Mon Jan 15 21:57:24 2024 +0300 import rust-number_prefix-0.4.0-7.el9 diff --git a/.rust-number_prefix.metadata b/.rust-number_prefix.metadata new file mode 100644 index 0000000..e69de29 diff --git a/SOURCES/LICENCE b/SOURCES/LICENCE new file mode 100644 index 0000000..c38fffa --- /dev/null +++ b/SOURCES/LICENCE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2018 Benjamin Sago + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/SOURCES/number_prefix-0.4.0.crate b/SOURCES/number_prefix-0.4.0.crate new file mode 100644 index 0000000..a2d88f3 Binary files /dev/null and b/SOURCES/number_prefix-0.4.0.crate differ diff --git a/SOURCES/number_prefix-fix-metadata.diff b/SOURCES/number_prefix-fix-metadata.diff new file mode 100644 index 0000000..44dbc80 --- /dev/null +++ b/SOURCES/number_prefix-fix-metadata.diff @@ -0,0 +1,11 @@ +--- number_prefix-0.4.0/Cargo.toml 2020-04-07T01:48:03+00:00 ++++ number_prefix-0.4.0/Cargo.toml 2023-06-07T21:02:59.522207+00:00 +@@ -14,7 +14,7 @@ + name = "number_prefix" + version = "0.4.0" + authors = ["Benjamin Sago "] +-exclude = ["/README.md", "/LICENCE", "/.rustfmt.toml", "/.travis.yml"] ++exclude = ["/README.md", "/.rustfmt.toml", "/.travis.yml"] + description = "Library for numeric prefixes (kilo, giga, kibi)." + documentation = "https://docs.rs/number_prefix" + readme = "README.md" diff --git a/SPECS/rust-number_prefix.spec b/SPECS/rust-number_prefix.spec new file mode 100644 index 0000000..dfb352c --- /dev/null +++ b/SPECS/rust-number_prefix.spec @@ -0,0 +1,157 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.3.5) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 7; + 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 number_prefix + +Name: rust-number_prefix +Version: 0.4.0 +Release: %autorelease +Summary: Library for numeric prefixes (kilo, giga, kibi) + +License: MIT +URL: https://crates.io/crates/number_prefix +Source0: %{crates_source} +Source1: https://github.com/ogham/rust-number-prefix/raw/v%{version}/LICENCE +# Manually created patch for downstream crate metadata changes +# * do not exclude license text from installed files +# https://github.com/ogham/rust-number-prefix/pull/8 +Patch: number_prefix-fix-metadata.diff + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Library for numeric prefixes (kilo, giga, kibi).} + +%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}/LICENCE +%{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}+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 + +%prep +%autosetup -n %{crate}-%{version_no_tilde} -p1 +%cargo_prep +cp -pav %{SOURCE1} . + +%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.4.0-7 +- Rebuilt for MSVSphere 9.3 + +* Tue Jun 13 2023 Fabio Valentini - 0.4.0-7 +- Regenerate with rust2rpm v24 and add missing license file + +* Sat Jan 21 2023 Fedora Release Engineering - 0.4.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Sat Jul 23 2022 Fedora Release Engineering - 0.4.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Fri Jan 21 2022 Fedora Release Engineering - 0.4.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 0.4.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Tue Jul 20 2021 Fabio Valentini - 0.4.0-1 +- Update to version 0.4.0. + +* Wed Jan 27 2021 Fedora Release Engineering - 0.3.0-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 0.3.0-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Thu Jan 30 2020 Fedora Release Engineering - 0.3.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Fri Jul 26 2019 Fedora Release Engineering - 0.3.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sun Jul 14 18:20:58 CEST 2019 Igor Gnatenko - 0.3.0-3 +- Regenerate + +* Sun Jun 09 15:32:21 CEST 2019 Igor Gnatenko - 0.3.0-2 +- Regenerate + +* Tue May 07 13:54:03 CEST 2019 Igor Gnatenko - 0.3.0-1 +- Update to 0.3.0 + +* Sat Feb 02 2019 Fedora Release Engineering - 0.2.8-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Wed Nov 14 2018 Igor Gnatenko - 0.2.8-3 +- Adapt to new packaging + +* Sat Jul 14 2018 Fedora Release Engineering - 0.2.8-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Sun Mar 11 2018 Igor Gnatenko - 0.2.8-1 +- Update to 0.2.8 + +* Fri Feb 09 2018 Fedora Release Engineering - 0.2.7-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Mon Jan 08 2018 Igor Gnatenko - 0.2.7-2 +- Rebuild for rust-packaging v5 + +* Fri Nov 17 2017 Igor Gnatenko - 0.2.7-1 +- Initial package +