From ac36b0ba63fe25f5d47e0f9e98177548e03144ec Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Fri, 20 Dec 2024 17:50:47 +0300 Subject: [PATCH] import rust-textwrap-0.16.1-2.el10 --- .gitignore | 1 + .rust-textwrap.metadata | 1 + SOURCES/rust2rpm.toml | 7 ++ SPECS/rust-textwrap.spec | 256 +++++++++++++++++++++++++++++++++++++++ 4 files changed, 265 insertions(+) create mode 100644 .gitignore create mode 100644 .rust-textwrap.metadata create mode 100644 SOURCES/rust2rpm.toml create mode 100644 SPECS/rust-textwrap.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a772034 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/textwrap-0.16.1.crate diff --git a/.rust-textwrap.metadata b/.rust-textwrap.metadata new file mode 100644 index 0000000..b9ca681 --- /dev/null +++ b/.rust-textwrap.metadata @@ -0,0 +1 @@ +76c61f5d7a26399127cf276f48bf0fb2ec7c9bbd SOURCES/textwrap-0.16.1.crate diff --git a/SOURCES/rust2rpm.toml b/SOURCES/rust2rpm.toml new file mode 100644 index 0000000..6961190 --- /dev/null +++ b/SOURCES/rust2rpm.toml @@ -0,0 +1,7 @@ +[tests] +run = ["none"] +comments = ["missing dev-dependencies: unic-emoji-char ^0.9"] + +[features] +hide = ["hyphenation"] + diff --git a/SPECS/rust-textwrap.spec b/SPECS/rust-textwrap.spec new file mode 100644 index 0000000..6f63955 --- /dev/null +++ b/SPECS/rust-textwrap.spec @@ -0,0 +1,256 @@ +## 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 25 +# * missing dev-dependencies: unic-emoji-char ^0.9 +%bcond_with check +%global debug_package %{nil} + +%global crate textwrap + +Name: rust-textwrap +Version: 0.16.1 +Release: %autorelease +Summary: Library for word wrapping, indenting, and dedenting strings + +License: MIT +URL: https://crates.io/crates/textwrap +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Library for word wrapping, indenting, and dedenting strings. Has +optional support for Unicode and emojis as well as machine hyphenation.} + +%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}/CHANGELOG.md +%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}+smawk-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+smawk-devel %{_description} + +This package contains library source intended for building other packages which +use the "smawk" feature of the "%{crate}" crate. + +%files -n %{name}+smawk-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+terminal_size-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+terminal_size-devel %{_description} + +This package contains library source intended for building other packages which +use the "terminal_size" feature of the "%{crate}" crate. + +%files -n %{name}+terminal_size-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+unicode-linebreak-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+unicode-linebreak-devel %{_description} + +This package contains library source intended for building other packages which +use the "unicode-linebreak" feature of the "%{crate}" crate. + +%files -n %{name}+unicode-linebreak-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+unicode-width-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+unicode-width-devel %{_description} + +This package contains library source intended for building other packages which +use the "unicode-width" feature of the "%{crate}" crate. + +%files -n %{name}+unicode-width-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.16.1-2 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Sat Jul 20 2024 Fedora Release Engineering - 0.16.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Sun Feb 18 2024 Fabio Valentini - 0.16.1-1 +- Update to version 0.16.1; Fixes RHBZ#2264673 + +* Sat Jan 27 2024 Fedora Release Engineering - 0.16.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sat Jul 22 2023 Fedora Release Engineering - 0.16.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Mon Apr 17 2023 Fabio Valentini - 0.16.0-1 +- Update to version 0.16.0; Fixes RHBZ#2127307 + +* Sat Mar 18 2023 Fabio Valentini - 0.15.2-1 +- Update to version 0.15.2 + +* Sat Jan 21 2023 Fedora Release Engineering - 0.15.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Sat Jul 23 2022 Fedora Release Engineering - 0.15.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Thu Apr 14 2022 Fabio Valentini - 0.15.0-1 +- Update to version 0.15.0; Fixes RHBZ#2059017 + +* Fri Jan 21 2022 Fedora Release Engineering - 0.14.2-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 0.14.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Sun Jul 18 2021 Igor Raits - 0.14.2-2 +- Disable tests as deps are missing + +* Sun Jul 18 2021 Igor Raits - 0.14.2-1 +- Update to 0.14.2 + +* Wed Jan 27 2021 Fedora Release Engineering - 0.13.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Dec 30 2020 Igor Raits - 0.13.2-1 +- Update to 0.13.2 + +* Mon Dec 28 2020 Igor Raits - 0.13.1-3 +- Drop rust2rpm workaround + +* Sun Dec 27 2020 Igor Raits - 0.13.1-2 +- Fixup build + +* Sun Dec 27 2020 Igor Raits - 0.13.1-1 +- Update to 0.13.1 + +* Sat Nov 28 2020 Fabio Valentini - 0.12.1-3 +- remove features with missing dependencies (hyphenation) + +* Tue Oct 20 2020 Fabio Valentini - 0.12.1-2 +- bump to lipsum 0.7 + +* Sat Aug 29 2020 Igor Raits - 0.12.1-1 +- Update to 0.12.1 + +* Sat Aug 01 2020 Fedora Release Engineering - 0.11.0-8 +- Second attempt - Rebuilt for + https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 0.11.0-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Wed Feb 12 2020 Igor Raits - 0.11.0-6 +- Drop tests + +* Thu Jan 30 2020 Fedora Release Engineering - 0.11.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Fri Jul 26 2019 Fedora Release Engineering - 0.11.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Thu Jun 20 2019 Igor Gnatenko - 0.11.0-3 +- Regenerate + +* Sun Jun 09 2019 Igor Gnatenko - 0.11.0-2 +- Regenerate + +* Fri Apr 05 2019 Igor Gnatenko - 0.11.0-1 +- Update to 0.11.0 + +* Sun Mar 10 2019 Igor Gnatenko - 0.10.0-6 +- Do not pull optional dependencies + +* Sat Feb 02 2019 Fedora Release Engineering - 0.10.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sat Oct 27 2018 Igor Gnatenko - 0.10.0-4 +- Adapt to new packaging + +* Sun Oct 07 2018 Igor Gnatenko - 0.10.0-3 +- run tests in infrastructure + +* Sat Jul 14 2018 Fedora Release Engineering - 0.10.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Wed May 02 2018 Igor Gnatenko - 0.10.0-1 +- Update to 0.10.0 + +* Thu Apr 26 2018 Igor Gnatenko - 0.9.0-6 +- Bump lipsum to 0.5 + +* Fri Feb 09 2018 Fedora Release Engineering - 0.9.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Mon Jan 08 2018 Igor Gnatenko - 0.9.0-4 +- Rebuild for rust-packaging v5 + +* Mon Jan 01 2018 Igor Gnatenko - 0.9.0-3 +- Bump rand to 0.4 + +* Mon Nov 20 2017 Igor Gnatenko - 0.9.0-2 +- Bump version-sync to 0.5 + +* Mon Nov 13 2017 Igor Gnatenko - 0.9.0-1 +- initial import +## END: Generated by rpmautospec