diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..31bd748 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/concolor-override-1.0.0.crate diff --git a/README.md b/README.md deleted file mode 100644 index 36c30b0..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-concolor-override - -The rust-concolor-override package diff --git a/rust-concolor-override.spec b/rust-concolor-override.spec new file mode 100644 index 0000000..21b4882 --- /dev/null +++ b/rust-concolor-override.spec @@ -0,0 +1,69 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate concolor-override + +Name: rust-concolor-override +Version: 1.0.0 +Release: %autorelease +Summary: Global override of color control + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/concolor-override +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Global override of color control.} + +%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 + +%prep +%autosetup -n %{crate}-%{version_no_tilde} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..458fd65 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (concolor-override-1.0.0.crate) = c49a96db1507b87d518fcd275ef7b4c563a4acab43a37a427fd52f844f03a5e051eaf9599b5a531f2b47555cb27e5d300b7925e97efb3450db3b3c1f4cf3d8ee