From ff05df435263e382d273adb81714ef23c4e9ad57 Mon Sep 17 00:00:00 2001 From: blinxen Date: Wed, 28 Jun 2023 23:28:34 +0200 Subject: [PATCH] Initial package --- .gitignore | 1 + README.md | 3 - rust-gix-features.spec | 287 +++++++++++++++++++++++++++++++++++++++++ rust2rpm.conf | 2 + sources | 1 + 5 files changed, 291 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-gix-features.spec create mode 100644 rust2rpm.conf create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8dd7597 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/gix-features-0.30.0.crate diff --git a/README.md b/README.md deleted file mode 100644 index f29cac5..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-gix-features - -The rust-gix-features package diff --git a/rust-gix-features.spec b/rust-gix-features.spec new file mode 100644 index 0000000..077e5ec --- /dev/null +++ b/rust-gix-features.spec @@ -0,0 +1,287 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate gix-features + +Name: rust-gix-features +Version: 0.30.0 +Release: %autorelease +Summary: Integrate various capabilities using compile-time feature flags + +# Upstream license specification: MIT/Apache-2.0 +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/gix-features +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +A crate to integrate various capabilities using compile-time feature +flags.} + +%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}+cache-efficiency-debug-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+cache-efficiency-debug-devel %{_description} + +This package contains library source intended for building other packages which +use the "cache-efficiency-debug" feature of the "%{crate}" crate. + +%files -n %{name}+cache-efficiency-debug-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+crc32-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+crc32-devel %{_description} + +This package contains library source intended for building other packages which +use the "crc32" feature of the "%{crate}" crate. + +%files -n %{name}+crc32-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}+fast-sha1-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+fast-sha1-devel %{_description} + +This package contains library source intended for building other packages which +use the "fast-sha1" feature of the "%{crate}" crate. + +%files -n %{name}+fast-sha1-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+fs-walkdir-parallel-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+fs-walkdir-parallel-devel %{_description} + +This package contains library source intended for building other packages which +use the "fs-walkdir-parallel" feature of the "%{crate}" crate. + +%files -n %{name}+fs-walkdir-parallel-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+io-pipe-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+io-pipe-devel %{_description} + +This package contains library source intended for building other packages which +use the "io-pipe" feature of the "%{crate}" crate. + +%files -n %{name}+io-pipe-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+once_cell-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+once_cell-devel %{_description} + +This package contains library source intended for building other packages which +use the "once_cell" feature of the "%{crate}" crate. + +%files -n %{name}+once_cell-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+parallel-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+parallel-devel %{_description} + +This package contains library source intended for building other packages which +use the "parallel" feature of the "%{crate}" crate. + +%files -n %{name}+parallel-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+progress-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+progress-devel %{_description} + +This package contains library source intended for building other packages which +use the "progress" feature of the "%{crate}" crate. + +%files -n %{name}+progress-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+progress-unit-bytes-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+progress-unit-bytes-devel %{_description} + +This package contains library source intended for building other packages which +use the "progress-unit-bytes" feature of the "%{crate}" crate. + +%files -n %{name}+progress-unit-bytes-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+progress-unit-human-numbers-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+progress-unit-human-numbers-devel %{_description} + +This package contains library source intended for building other packages which +use the "progress-unit-human-numbers" feature of the "%{crate}" crate. + +%files -n %{name}+progress-unit-human-numbers-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+rustsha1-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+rustsha1-devel %{_description} + +This package contains library source intended for building other packages which +use the "rustsha1" feature of the "%{crate}" crate. + +%files -n %{name}+rustsha1-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+walkdir-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+walkdir-devel %{_description} + +This package contains library source intended for building other packages which +use the "walkdir" feature of the "%{crate}" crate. + +%files -n %{name}+walkdir-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+zlib-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+zlib-devel %{_description} + +This package contains library source intended for building other packages which +use the "zlib" feature of the "%{crate}" crate. + +%files -n %{name}+zlib-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+zlib-ng-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+zlib-ng-devel %{_description} + +This package contains library source intended for building other packages which +use the "zlib-ng" feature of the "%{crate}" crate. + +%files -n %{name}+zlib-ng-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+zlib-ng-compat-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+zlib-ng-compat-devel %{_description} + +This package contains library source intended for building other packages which +use the "zlib-ng-compat" feature of the "%{crate}" crate. + +%files -n %{name}+zlib-ng-compat-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+zlib-rust-backend-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+zlib-rust-backend-devel %{_description} + +This package contains library source intended for building other packages which +use the "zlib-rust-backend" feature of the "%{crate}" crate. + +%files -n %{name}+zlib-rust-backend-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+zlib-stock-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+zlib-stock-devel %{_description} + +This package contains library source intended for building other packages which +use the "zlib-stock" feature of the "%{crate}" crate. + +%files -n %{name}+zlib-stock-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/rust2rpm.conf b/rust2rpm.conf new file mode 100644 index 0000000..7c5fb4d --- /dev/null +++ b/rust2rpm.conf @@ -0,0 +1,2 @@ +[DEFAULT] +summary = Integrate various capabilities using compile-time feature flags diff --git a/sources b/sources new file mode 100644 index 0000000..2745fff --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (gix-features-0.30.0.crate) = dca56f70ab3ea9b7f8ee1415ac688da97c03565076b53cb4120931c3599422ba34d3b23568b1bd81fba07c1d93a07bcd80a8aa6d3111745bed496ce3659efc65