From 152afbb0b5e297f9f8652c0780db2afdb688a0a8 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Thu, 31 Aug 2023 16:29:23 +0200 Subject: [PATCH] Initial import (#2228228) --- .gitignore | 1 + README.md | 3 -- gix-glob-fix-metadata.diff | 22 ++++++++++ rust-gix-glob.spec | 86 ++++++++++++++++++++++++++++++++++++++ sources | 1 + 5 files changed, 110 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 gix-glob-fix-metadata.diff create mode 100644 rust-gix-glob.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..72e537c --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/gix-glob-0.10.1.crate diff --git a/README.md b/README.md deleted file mode 100644 index 0e03353..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-gix-glob - -The rust-gix-glob package diff --git a/gix-glob-fix-metadata.diff b/gix-glob-fix-metadata.diff new file mode 100644 index 0000000..ab76c08 --- /dev/null +++ b/gix-glob-fix-metadata.diff @@ -0,0 +1,22 @@ +--- gix-glob-0.10.1/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ gix-glob-0.10.1/Cargo.toml 2023-08-01T18:32:54.938103+00:00 +@@ -15,7 +15,7 @@ + name = "gix-glob" + version = "0.10.1" + authors = ["Sebastian Thiel "] +-description = "A WIP crate of the gitoxide project dealing with pattern matching" ++description = "Glob pattern matching implementation for gix" + license = "MIT OR Apache-2.0" + repository = "https://github.com/Byron/gitoxide" + +@@ -38,10 +38,6 @@ + features = ["std"] + default-features = false + +-[dependencies.document-features] +-version = "0.2.0" +-optional = true +- + [dependencies.gix-features] + version = "^0.32.1" + diff --git a/rust-gix-glob.spec b/rust-gix-glob.spec new file mode 100644 index 0000000..5240d89 --- /dev/null +++ b/rust-gix-glob.spec @@ -0,0 +1,86 @@ +# Generated by rust2rpm 24 +# * tests can only be run in-tree +%bcond_with check +%global debug_package %{nil} + +%global crate gix-glob + +Name: rust-gix-glob +Version: 0.10.1 +Release: %autorelease +Summary: Glob pattern matching implementation for gix + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/gix-glob +Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * improve crate summary / description +# * drop unused optional dependency that is only useful for building docs +Patch: gix-glob-fix-metadata.diff + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Glob pattern matching implementation for gix.} + +%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}+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..02007ca --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (gix-glob-0.10.1.crate) = 7518c7729964e8a5a2f347e34e34a96cecc7dc789ee754d18e5262006f7ef18e85e4e77870425998c172ed3c6ae9ab96e7be7e79d5c143055a11898dc9d1dece