From af7d7dc20f93c7b9beb8c75a6fb0a61be12cc384 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Sat, 8 Apr 2023 21:24:28 +0200 Subject: [PATCH] Initial import (#2183200) --- .gitignore | 1 + README.md | 3 -- rust-anstyle.spec | 81 +++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 83 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-anstyle.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9f3571f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/anstyle-0.3.5.crate diff --git a/README.md b/README.md deleted file mode 100644 index 1d5badc..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-anstyle - -The rust-anstyle package diff --git a/rust-anstyle.spec b/rust-anstyle.spec new file mode 100644 index 0000000..96f729d --- /dev/null +++ b/rust-anstyle.spec @@ -0,0 +1,81 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate anstyle + +Name: rust-anstyle +Version: 0.3.5 +Release: %autorelease +Summary: ANSI text styling + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/anstyle +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +ANSI text styling.} + +%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}+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_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..b2c6ab4 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (anstyle-0.3.5.crate) = 3075963236b4b7b94b98672481a82ad1ab9d219e583dc5646bc7ebfef35a7bbdcb38c9e12c770a51809fdc4fcc510e781875507446b36bc87a69e4a10e562709