From 39a4efde6358ae35dad57a9cff75b9809afdc8ce Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Thu, 6 Jun 2024 22:32:02 +0200 Subject: [PATCH] Initial import (#2283310) --- .gitignore | 1 + README.md | 3 -- rust-anstyle-lossy.spec | 69 +++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 71 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-anstyle-lossy.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..34325fb --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/anstyle-lossy-1.1.1.crate diff --git a/README.md b/README.md deleted file mode 100644 index 9f0da2c..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-anstyle-lossy - -The rust-anstyle-lossy package diff --git a/rust-anstyle-lossy.spec b/rust-anstyle-lossy.spec new file mode 100644 index 0000000..d3bae77 --- /dev/null +++ b/rust-anstyle-lossy.spec @@ -0,0 +1,69 @@ +# Generated by rust2rpm 26 +%bcond_without check +%global debug_package %{nil} + +%global crate anstyle-lossy + +Name: rust-anstyle-lossy +Version: 1.1.1 +Release: %autorelease +Summary: Lossy conversion between ANSI Color Codes + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/anstyle-lossy +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Lossy conversion between ANSI Color Codes.} + +%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} -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..341217f --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (anstyle-lossy-1.1.1.crate) = 9fcee8f8da7f21556e5770390fc2cf82f1ed02a1ae6ca76303bc4ea374563f4be5809871e173287a8cfcbbae50ad6070945478859de8677e0777ce8526060e70