commit de1cb30b887196083a197448660723d2df7fb360 Author: tigro Date: Mon Jan 15 20:48:50 2024 +0300 import rust-concolor-0.1.1-1.el9 diff --git a/.rust-concolor.metadata b/.rust-concolor.metadata new file mode 100644 index 0000000..e69de29 diff --git a/SOURCES/concolor-0.1.1.crate b/SOURCES/concolor-0.1.1.crate new file mode 100644 index 0000000..d549a78 Binary files /dev/null and b/SOURCES/concolor-0.1.1.crate differ diff --git a/SOURCES/concolor-fix-metadata.diff b/SOURCES/concolor-fix-metadata.diff new file mode 100644 index 0000000..0dc63ae --- /dev/null +++ b/SOURCES/concolor-fix-metadata.diff @@ -0,0 +1,18 @@ +--- concolor-0.1.1/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ concolor-0.1.1/Cargo.toml 2023-03-30T14:09:19.977543+00:00 +@@ -66,7 +66,6 @@ + "clicolor", + "no_color", + "term", +- "windows", + ] + clicolor = [ + "core", +@@ -89,7 +88,3 @@ + "core", + "dep:concolor-query", + ] +-windows = [ +- "core", +- "dep:concolor-query", +-] diff --git a/SPECS/rust-concolor.spec b/SPECS/rust-concolor.spec new file mode 100644 index 0000000..7555234 --- /dev/null +++ b/SPECS/rust-concolor.spec @@ -0,0 +1,191 @@ +## 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 concolor + +Name: rust-concolor +Version: 0.1.1 +Release: %autorelease +Summary: Control console coloring across all dependencies + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/concolor +Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * remove Windows-specific features +Patch: concolor-fix-metadata.diff + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Control console coloring across all dependencies.} + +%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-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}+api-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+api-devel %{_description} + +This package contains library source intended for building other packages which +use the "api" feature of the "%{crate}" crate. + +%files -n %{name}+api-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+auto-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+auto-devel %{_description} + +This package contains library source intended for building other packages which +use the "auto" feature of the "%{crate}" crate. + +%files -n %{name}+auto-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+clicolor-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+clicolor-devel %{_description} + +This package contains library source intended for building other packages which +use the "clicolor" feature of the "%{crate}" crate. + +%files -n %{name}+clicolor-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+core-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+core-devel %{_description} + +This package contains library source intended for building other packages which +use the "core" feature of the "%{crate}" crate. + +%files -n %{name}+core-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+interactive-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+interactive-devel %{_description} + +This package contains library source intended for building other packages which +use the "interactive" feature of the "%{crate}" crate. + +%files -n %{name}+interactive-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+no_color-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+no_color-devel %{_description} + +This package contains library source intended for building other packages which +use the "no_color" feature of the "%{crate}" crate. + +%files -n %{name}+no_color-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}+term-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+term-devel %{_description} + +This package contains library source intended for building other packages which +use the "term" feature of the "%{crate}" crate. + +%files -n %{name}+term-devel +%ghost %{crate_instdir}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version_no_tilde} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires -f api + +%build +%cargo_build -f api + +%install +%cargo_install -f api + +%if %{with check} +%check +%cargo_test -f api +%endif + +%changelog +* Mon Jan 15 2024 Arkady L. Shane - 0.1.1-1 +- Rebuilt for MSVSphere 9.3 + +* Sat Apr 08 2023 Fabio Valentini - 0.1.1-1 +- Update to version 0.1.1; Fixes RHBZ#2173246 + +* Tue Feb 21 2023 Fabio Valentini - 0.0.11-1 +- Update to version 0.0.11; Fixes RHBZ#2132201 + +* Fri Jan 20 2023 Fedora Release Engineering - 0.0.8-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Sat Aug 13 2022 Davide Cavalca - 0.0.8-1 +- Initial import; Fixes: RHBZ#2105883