commit c0b80504a2e8bbe0701391493c968e66fab4a0cd Author: tigro Date: Mon Jan 15 22:51:54 2024 +0300 import rust-termbg-0.4.3-1.el9 diff --git a/.rust-termbg.metadata b/.rust-termbg.metadata new file mode 100644 index 0000000..e69de29 diff --git a/SOURCES/termbg-0.4.3.crate b/SOURCES/termbg-0.4.3.crate new file mode 100644 index 0000000..a50b7fe Binary files /dev/null and b/SOURCES/termbg-0.4.3.crate differ diff --git a/SOURCES/termbg-fix-metadata-auto.diff b/SOURCES/termbg-fix-metadata-auto.diff new file mode 100644 index 0000000..1d46949 --- /dev/null +++ b/SOURCES/termbg-fix-metadata-auto.diff @@ -0,0 +1,14 @@ +--- termbg-0.4.3/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ termbg-0.4.3/Cargo.toml 2023-08-02T12:44:42.275331+00:00 +@@ -66,11 +66,3 @@ + [dependencies.thiserror] + version = "1" + +-[target."cfg(target_os = \"windows\")".dependencies.winapi] +-version = "0.3" +-features = [ +- "wincon", +- "winbase", +- "processenv", +- "impl-default", +-] diff --git a/SPECS/rust-termbg.spec b/SPECS/rust-termbg.spec new file mode 100644 index 0000000..da682d8 --- /dev/null +++ b/SPECS/rust-termbg.spec @@ -0,0 +1,129 @@ +## 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 crate termbg + +Name: rust-termbg +Version: 0.4.3 +Release: %autorelease +Summary: Terminal background color detection + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/termbg +Source: %{crates_source} +# Automatically generated patch to strip foreign dependencies +Patch: termbg-fix-metadata-auto.diff + +BuildRequires: rust-packaging >= 23 + +%global _description %{expand: +Terminal background color detection.} + +%description %{_description} + +%package -n %{crate} +Summary: %{summary} +# Apache-2.0 OR MIT +# Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT +# BSD-3-Clause +# MIT +# MIT OR Apache-2.0 +# Unlicense OR MIT +License: BSD-3-Clause AND MIT AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND (Unlicense OR MIT) +# LICENSE.dependencies contains a full license breakdown + +%description -n %{crate} %{_description} + +%files -n %{crate} +%license LICENSE-APACHE +%license LICENSE-MIT +%license LICENSE.dependencies +%doc CHANGELOG.md +%doc README.md +%{_bindir}/termbg + +%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-APACHE +%license %{crate_instdir}/LICENSE-MIT +%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 + +%prep +%autosetup -n %{crate}-%{version_no_tilde} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build +%cargo_license_summary +%{cargo_license} > LICENSE.dependencies + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +* Mon Jan 15 2024 Arkady L. Shane - 0.4.3-1 +- Rebuilt for MSVSphere 9.3 + +* Wed Aug 02 2023 Fabio Valentini - 0.4.3-1 +- Update to version 0.4.3; Fixes RHBZ#2174607 + +* Fri Jul 21 2023 Fedora Release Engineering - 0.4.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Sun Feb 05 2023 Fabio Valentini - 0.4.1-4 +- Rebuild for fixed frame pointer compiler flags in Rust RPM macros + +* Sat Jan 21 2023 Fedora Release Engineering - 0.4.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Sat Jul 23 2022 Fedora Release Engineering - 0.4.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Sat Jul 16 2022 Fabio Valentini - 0.4.1-1 +- Update to version 0.4.1; Fixes RHBZ#2090033 + +* Tue Feb 15 2022 Zbigniew Jędrzejewski-Szmek - 0.4.0-2 +- Rebuild with package notes + +* Fri Jan 28 2022 Davide Cavalca - 0.4.0-1 +- Initial import; Fixes: RHBZ#1987158