From 1cc90c345ea184029496a75b4febd3b87c8fb931 Mon Sep 17 00:00:00 2001 From: blinxen Date: Sun, 24 Sep 2023 16:47:38 +0200 Subject: [PATCH] Initial package (rhbz#2240387) --- .gitignore | 1 + README.md | 3 -- rust-gix-ref.spec | 94 +++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 96 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-gix-ref.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f353e24 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/gix-ref-0.36.0.crate diff --git a/README.md b/README.md deleted file mode 100644 index d9904ba..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-gix-ref - -The rust-gix-ref package diff --git a/rust-gix-ref.spec b/rust-gix-ref.spec new file mode 100644 index 0000000..9bfd49c --- /dev/null +++ b/rust-gix-ref.spec @@ -0,0 +1,94 @@ +# Generated by rust2rpm 24 +# Deactivate tests because of a missing dev-dependency (gix-testtools) +%bcond_with check +%global debug_package %{nil} + +%global crate gix-ref + +Name: rust-gix-ref +Version: 0.36.0 +Release: %autorelease +Summary: Gix implementation for handling git references + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/gix-ref +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +A crate to handle git references.} + +%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 + +%package -n %{name}+document-features-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+document-features-devel %{_description} + +This package contains library source intended for building other packages which +use the "document-features" feature of the "%{crate}" crate. + +%files -n %{name}+document-features-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 + +%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..0156595 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (gix-ref-0.36.0.crate) = abe49b4bc3b6f555b506251d8845785f8c4498456c0bb0d120da9ee6ac2b7572d31f1d63d0d5e19cc46e6370845cc4112b20876992ecea172b780dc28fc10745