commit bc79827a5f6c0121fbd1ad8095dba15f989401eb Author: tigro Date: Mon Jan 15 22:03:47 2024 +0300 import rust-palette0.6-0.6.0-1.el9 diff --git a/.rust-palette0.6.metadata b/.rust-palette0.6.metadata new file mode 100644 index 0000000..e69de29 diff --git a/SOURCES/palette-0.6.0.crate b/SOURCES/palette-0.6.0.crate new file mode 100644 index 0000000..3cefed2 Binary files /dev/null and b/SOURCES/palette-0.6.0.crate differ diff --git a/SOURCES/palette-fix-metadata.diff b/SOURCES/palette-fix-metadata.diff new file mode 100644 index 0000000..334763b --- /dev/null +++ b/SOURCES/palette-fix-metadata.diff @@ -0,0 +1,55 @@ +--- palette-0.6.0/Cargo.toml 1970-01-01T00:00:00+00:00 ++++ palette-0.6.0/Cargo.toml 2023-12-08T16:45:06.500506+00:00 +@@ -28,20 +28,6 @@ + [lib] + bench = false + +-[[bench]] +-name = "cie_conversion" +-path = "benches/cie.rs" +-harness = false +- +-[[bench]] +-name = "rgb_conversion" +-path = "benches/rgb.rs" +-harness = false +- +-[[bench]] +-name = "matrix" +-path = "benches/matrix.rs" +-harness = false + [dependencies.approx] + version = "0.5" + default-features = false +@@ -58,7 +44,7 @@ + version = "0.6.0" + + [dependencies.phf] +-version = "0.9" ++version = "0.8" + features = ["macros"] + optional = true + default-features = false +@@ -76,10 +62,6 @@ + version = "2" + default-features = false + +-[dev-dependencies.criterion] +-version = "0.3" +-default-features = false +- + [dev-dependencies.csv] + version = "1" + +@@ -90,11 +72,6 @@ + + [dev-dependencies.lazy_static] + version = "1" +- +-[dev-dependencies.rand_mt] +-version = "4" +-features = ["rand-traits"] +-default-features = false + + [dev-dependencies.serde] + version = "1" diff --git a/SPECS/rust-palette0.6.spec b/SPECS/rust-palette0.6.spec new file mode 100644 index 0000000..386d484 --- /dev/null +++ b/SPECS/rust-palette0.6.spec @@ -0,0 +1,221 @@ +## 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 25 +%bcond_without check +%global debug_package %{nil} + +%global crate palette + +Name: rust-palette0.6 +Version: 0.6.0 +Release: %autorelease +Summary: Convert and manage colors with a focus on correctness, flexibility and ease of use + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/palette +Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * temporarily downgrade phf from 0.9 to 0.8 +# * drop unused rand_mt dev-dependency +# * drop unused, benchmark-only criterion dev-dependency to speed up builds +Patch: palette-fix-metadata.diff + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Convert and manage colors with a focus on correctness, flexibility and +ease of use.} + +%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}+bytemuck-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+bytemuck-devel %{_description} + +This package contains library source intended for building other packages which +use the "bytemuck" feature of the "%{crate}" crate. + +%files -n %{name}+bytemuck-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+libm-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+libm-devel %{_description} + +This package contains library source intended for building other packages which +use the "libm" feature of the "%{crate}" crate. + +%files -n %{name}+libm-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+named-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+named-devel %{_description} + +This package contains library source intended for building other packages which +use the "named" feature of the "%{crate}" crate. + +%files -n %{name}+named-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+named_from_str-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+named_from_str-devel %{_description} + +This package contains library source intended for building other packages which +use the "named_from_str" feature of the "%{crate}" crate. + +%files -n %{name}+named_from_str-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+named_gradients-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+named_gradients-devel %{_description} + +This package contains library source intended for building other packages which +use the "named_gradients" feature of the "%{crate}" crate. + +%files -n %{name}+named_gradients-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+phf-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+phf-devel %{_description} + +This package contains library source intended for building other packages which +use the "phf" feature of the "%{crate}" crate. + +%files -n %{name}+phf-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+rand-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+rand-devel %{_description} + +This package contains library source intended for building other packages which +use the "rand" feature of the "%{crate}" crate. + +%files -n %{name}+rand-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+random-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+random-devel %{_description} + +This package contains library source intended for building other packages which +use the "random" feature of the "%{crate}" crate. + +%files -n %{name}+random-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}+serializing-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+serializing-devel %{_description} + +This package contains library source intended for building other packages which +use the "serializing" feature of the "%{crate}" crate. + +%files -n %{name}+serializing-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} -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 - 0.6.0-1 +- Rebuilt for MSVSphere 9.3 + +* Fri Dec 08 2023 Fabio Valentini - 0.6.0-1 +- Initial import (palette 0.6 compat package)