From 4443b763ed5e86c17e313858d5937e38658f1193 Mon Sep 17 00:00:00 2001 From: blinxen Date: Wed, 28 Jun 2023 23:06:23 +0200 Subject: [PATCH] Initial package --- .gitignore | 1 + README.md | 3 -- rust-gix-quote.spec | 70 +++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 72 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-gix-quote.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..bc5cae2 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/gix-quote-0.4.4.crate diff --git a/README.md b/README.md deleted file mode 100644 index 420ad4b..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-gix-quote - -The rust-gix-quote package diff --git a/rust-gix-quote.spec b/rust-gix-quote.spec new file mode 100644 index 0000000..12b4f33 --- /dev/null +++ b/rust-gix-quote.spec @@ -0,0 +1,70 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate gix-quote + +Name: rust-gix-quote +Version: 0.4.4 +Release: %autorelease +Summary: Deal with various quotations used by git + +# Upstream license specification: MIT/Apache-2.0 +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/gix-quote +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +A crate to deal with various quotations used by git.} + +%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}/CHANGELOG.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..0755b9f --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (gix-quote-0.4.4.crate) = f284c8d16532e3a98380c6fb187ccbddb0ad2be1372eced323030caf038e0e6fcf49e220b6a74c8937902dc69a6fd5e2ccd580c1604ac357c51be42f63a45b9c