diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..53d5f9b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/color-print-0.3.5.crate diff --git a/README.md b/README.md deleted file mode 100644 index ca0db01..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-color-print - -The rust-color-print package diff --git a/rust-color-print.spec b/rust-color-print.spec new file mode 100644 index 0000000..b9111cf --- /dev/null +++ b/rust-color-print.spec @@ -0,0 +1,106 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate color-print + +Name: rust-color-print +Version: 0.3.5 +Release: %autorelease +Summary: Colorize and stylize strings for terminal at compile-time, by using an HTML-like syntax + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/color-print +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Colorize and stylize strings for terminal at compile-time, by using an +HTML-like syntax.} + +%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}+lazy_static-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+lazy_static-devel %{_description} + +This package contains library source intended for building other packages which +use the "lazy_static" feature of the "%{crate}" crate. + +%files -n %{name}+lazy_static-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+terminfo-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+terminfo-devel %{_description} + +This package contains library source intended for building other packages which +use the "terminfo" feature of the "%{crate}" crate. + +%files -n %{name}+terminfo-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+terminfo_crate-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+terminfo_crate-devel %{_description} + +This package contains library source intended for building other packages which +use the "terminfo_crate" feature of the "%{crate}" crate. + +%files -n %{name}+terminfo_crate-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..9bab527 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (color-print-0.3.5.crate) = 79819069e71b120bf9f8bc42fa71d902f8dff569988ee4413454cea9b5500fc2c31a493b9fc28795b327e099c09109ff6336219c65c89ce87aea5507982a0a15