From 697942987b5ded534248d61e94ff9ce92d521983 Mon Sep 17 00:00:00 2001 From: Aleksei Bavshin Date: Wed, 27 Dec 2023 18:59:04 -0800 Subject: [PATCH] Initial import (rhbz#2255178) --- .gitignore | 1 + README.md | 3 -- rust-cursor-icon.spec | 107 ++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 109 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-cursor-icon.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..86b93fa --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/cursor-icon-1.1.0.crate diff --git a/README.md b/README.md deleted file mode 100644 index 12c6374..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-cursor-icon - -The rust-cursor-icon package diff --git a/rust-cursor-icon.spec b/rust-cursor-icon.spec new file mode 100644 index 0000000..b6a8f24 --- /dev/null +++ b/rust-cursor-icon.spec @@ -0,0 +1,107 @@ +# Generated by rust2rpm 25 +%bcond_without check +%global debug_package %{nil} + +%global crate cursor-icon + +Name: rust-cursor-icon +Version: 1.1.0 +Release: %autorelease +Summary: Cross platform cursor icon type + +License: MIT OR Apache-2.0 OR Zlib +URL: https://crates.io/crates/cursor-icon +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Cross platform cursor icon type.} + +%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 +%license %{crate_instdir}/LICENSE-ZLIB +%doc %{crate_instdir}/CHANGELOG.md +%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}+alloc-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+alloc-devel %{_description} + +This package contains library source intended for building other packages which +use the "alloc" feature of the "%{crate}" crate. + +%files -n %{name}+alloc-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+serde-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+serde-devel %{_description} + +This package contains library source intended for building other packages which +use the "serde" feature of the "%{crate}" crate. + +%files -n %{name}+serde-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} -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..ebeb42b --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (cursor-icon-1.1.0.crate) = 4e3b74cb17773ec2b89312fd4fe60330b785cff850102e9643bd06e99b5d96c11cce14a9350f295c6063c4133dc0179cbca13fefd7ab816e57c915f75d066d2e