From d86472fd9b8049b05763e8024c38a56b569a20e7 Mon Sep 17 00:00:00 2001 From: blinxen Date: Thu, 19 Oct 2023 18:35:59 +0200 Subject: [PATCH] Initial package (rhbz#2244871) --- .gitignore | 1 + README.md | 3 -- rust-detone.spec | 72 ++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 74 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-detone.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e7e7503 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/detone-1.0.0.crate diff --git a/README.md b/README.md deleted file mode 100644 index 0587b28..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-detone - -The rust-detone package diff --git a/rust-detone.spec b/rust-detone.spec new file mode 100644 index 0000000..11181b3 --- /dev/null +++ b/rust-detone.spec @@ -0,0 +1,72 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate detone + +Name: rust-detone +Version: 1.0.0 +Release: %autorelease +Summary: Decompose Vietnamese tone marks + +# Upstream license specification: MIT/Apache-2.0 +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/detone +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Decompose Vietnamese tone marks.} + +%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}/COPYRIGHT +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/CONTRIBUTING.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 + +%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..2f961a9 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (detone-1.0.0.crate) = 6dadf287fcd9744813caab2acd0769febe155900b28763c4aa2ae16a71b71c5170b3dde9ada1995257d589b73b135f99d2677b24fd715e411090be2aa97e252a