diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3667a95 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/anstyle-parse-0.1.1.crate diff --git a/README.md b/README.md deleted file mode 100644 index 0240bc8..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-anstyle-parse - -The rust-anstyle-parse package diff --git a/rust-anstyle-parse.spec b/rust-anstyle-parse.spec new file mode 100644 index 0000000..15e9293 --- /dev/null +++ b/rust-anstyle-parse.spec @@ -0,0 +1,94 @@ +# Generated by rust2rpm 24 +# * missing dev-dependencies: codegenrs, snapbox +%bcond_with check +%global debug_package %{nil} + +%global crate anstyle-parse + +Name: rust-anstyle-parse +Version: 0.1.1 +Release: %autorelease +Summary: Parse ANSI Style Escapes + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/anstyle-parse +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Parse ANSI Style Escapes.} + +%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}+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}+utf8-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+utf8-devel %{_description} + +This package contains library source intended for building other packages which +use the "utf8" feature of the "%{crate}" crate. + +%files -n %{name}+utf8-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..d74dcc3 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (anstyle-parse-0.1.1.crate) = 366fc0a5eb27744eac1f8cfc775734226e937ab5288e1401043d033eca046eeed6918362bc9c1e76f8b2f77ec85e7f0d9a0c801a4b36790f278d62a8fe1d417f