From 964f79bfe226b59ee26aa9bd44a7d0b93e2e83df Mon Sep 17 00:00:00 2001 From: blinxen Date: Fri, 5 Apr 2024 16:38:26 +0200 Subject: [PATCH] Initial package (rhbz#2273625) --- .gitignore | 1 + README.md | 3 -- rust-gix-dir.spec | 71 +++++++++++++++++++++++++++++++++++++++++++++++ rust2rpm.toml | 9 ++++++ sources | 1 + 5 files changed, 82 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-gix-dir.spec create mode 100644 rust2rpm.toml create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4bfad83 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/gix-dir-0.3.0.crate diff --git a/README.md b/README.md deleted file mode 100644 index f002b15..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-gix-dir - -The rust-gix-dir package diff --git a/rust-gix-dir.spec b/rust-gix-dir.spec new file mode 100644 index 0000000..1b6fffc --- /dev/null +++ b/rust-gix-dir.spec @@ -0,0 +1,71 @@ +# Generated by rust2rpm 26 +# * Deactivate tests because of a missing dev-dependency (gix-testtools) +# * See https://github.com/Byron/gitoxide/discussions/900 for more information +%bcond_with check +%global debug_package %{nil} + +%global crate gix-dir + +Name: rust-gix-dir +Version: 0.3.0 +Release: %autorelease +Summary: Handle git-style directory walk + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/gix-dir +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +A crate of the gitoxide project dealing with directory walks.} + +%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} -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/rust2rpm.toml b/rust2rpm.toml new file mode 100644 index 0000000..342b004 --- /dev/null +++ b/rust2rpm.toml @@ -0,0 +1,9 @@ +[package] +summary = "Handle git-style directory walk" + +[tests] +run = ["none"] +comments = [ + "Deactivate tests because of a missing dev-dependency (gix-testtools)", + "See https://github.com/Byron/gitoxide/discussions/900 for more information" +] diff --git a/sources b/sources new file mode 100644 index 0000000..59e2ee9 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (gix-dir-0.3.0.crate) = 25bb8cc429b6b6cb1f1c06268cd0434ae79c538d0f6962e91a4d1d6f738464dc0f9270786605d581cdc72adc19515c6229b64830aead06ef91accc22be57bcf0