From 80b9201943878ca62714eb50f48f62ff88d66c3e Mon Sep 17 00:00:00 2001 From: sharpenedblade Date: Sat, 27 Jan 2024 17:55:45 -0800 Subject: [PATCH] Package `arraydeque`, `nonempty`, and `rust-ini` `rust-ini` is a compat package for `0.20`. --- .github/workflows/build.yml | 3 + .github/workflows/copr-webhooks.yml | 3 + build-packages.sh | 2 +- rust-arraydeque/rust-arraydeque.spec | 81 ++++++++++++ rust-nonempty/rust-nonempty.spec | 92 ++++++++++++++ .../downgrade-ordered-multimap.diff | 7 ++ rust-rust-ini0.20/rust-rust-ini0.20.spec | 118 ++++++++++++++++++ 7 files changed, 305 insertions(+), 1 deletion(-) create mode 100644 rust-arraydeque/rust-arraydeque.spec create mode 100644 rust-nonempty/rust-nonempty.spec create mode 100644 rust-rust-ini0.20/downgrade-ordered-multimap.diff create mode 100644 rust-rust-ini0.20/rust-rust-ini0.20.spec diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4c30ea1..72bc5ee 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -38,6 +38,9 @@ jobs: rust-tiny-dfr/* t2linux-audio/* t2linux-config/* + rust-arraydeque/* + rust-nonempty/* + rust-rust-ini0.20/* dir_names: "true" - name: "Increase Disk Space" diff --git a/.github/workflows/copr-webhooks.yml b/.github/workflows/copr-webhooks.yml index 9f6b19a..ceea222 100644 --- a/.github/workflows/copr-webhooks.yml +++ b/.github/workflows/copr-webhooks.yml @@ -9,6 +9,9 @@ on: - "t2linux-audio/*" - "rust-tiny-dfr/*" - "copr-sharpenedblade-t2linux-release/*" + - "rust-arraydeque/*" + - "rust-nonempty/*" + - "rust-rust-ini0.20/*" jobs: copr-webhook: diff --git a/build-packages.sh b/build-packages.sh index f9d6626..1ed6c28 100755 --- a/build-packages.sh +++ b/build-packages.sh @@ -2,7 +2,7 @@ set -e if [ $# -eq 0 ]; then - packages=( "t2linux-config" "t2linux-audio" "rust-tiny-dfr" "kernel" "copr-sharpenedblade-t2linux-release" ) + packages=( "t2linux-config" "t2linux-audio" "rust-tiny-dfr" "kernel" "copr-sharpenedblade-t2linux-release" "rust-arraydeque" "rust-nonempty" "rust-rust-ini0.20" ) else packages=( "$@" ) fi diff --git a/rust-arraydeque/rust-arraydeque.spec b/rust-arraydeque/rust-arraydeque.spec new file mode 100644 index 0000000..88ed41d --- /dev/null +++ b/rust-arraydeque/rust-arraydeque.spec @@ -0,0 +1,81 @@ +# Generated by rust2rpm 25 +%bcond_without check +%global debug_package %{nil} + +%global crate arraydeque + +Name: rust-arraydeque +Version: 0.5.1 +Release: %autorelease +Summary: Ring buffer with a fixed capacity, which can be stored on the stack + +# Upstream license specification: MIT/Apache-2.0 +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/arraydeque +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +A ring buffer with a fixed capacity, which can be stored on the stack.} + +%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 +%doc %{crate_instdir}/README.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}+std-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+std-devel %{_description} + +This package contains library source intended for building other packages which +use the "std" feature of the "%{crate}" crate. + +%files -n %{name}+std-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 \ No newline at end of file diff --git a/rust-nonempty/rust-nonempty.spec b/rust-nonempty/rust-nonempty.spec new file mode 100644 index 0000000..0732873 --- /dev/null +++ b/rust-nonempty/rust-nonempty.spec @@ -0,0 +1,92 @@ +# Generated by rust2rpm 25 +%bcond_without check +%global debug_package %{nil} + +%global crate nonempty + +Name: rust-nonempty +Version: 0.9.0 +Release: %autorelease +Summary: Correct by construction non-empty vector + +License: MIT +URL: https://crates.io/crates/nonempty +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Correct by construction non-empty vector.} + +%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 +%doc %{crate_instdir}/README.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 + +%package -n %{name}+serialize-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+serialize-devel %{_description} + +This package contains library source intended for building other packages which +use the "serialize" feature of the "%{crate}" crate. + +%files -n %{name}+serialize-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 \ No newline at end of file diff --git a/rust-rust-ini0.20/downgrade-ordered-multimap.diff b/rust-rust-ini0.20/downgrade-ordered-multimap.diff new file mode 100644 index 0000000..3d8b59e --- /dev/null +++ b/rust-rust-ini0.20/downgrade-ordered-multimap.diff @@ -0,0 +1,7 @@ +--- rust-ini-0.20.0/Cargo.toml.orig 2024-01-27 18:42:54 ++++ rust-ini-0.20.0/Cargo.toml 2024-01-27 18:41:55 +@@ -36,3 +36,3 @@ + [dependencies.ordered-multimap] +-version = "0.7" ++version = "0.4" + diff --git a/rust-rust-ini0.20/rust-rust-ini0.20.spec b/rust-rust-ini0.20/rust-rust-ini0.20.spec new file mode 100644 index 0000000..e12cd0b --- /dev/null +++ b/rust-rust-ini0.20/rust-rust-ini0.20.spec @@ -0,0 +1,118 @@ +# Generated by rust2rpm 25 +%bcond_without check +%global debug_package %{nil} + +%global crate rust-ini + +Name: rust-rust-ini0.20 +Version: 0.20.0 +Release: %autorelease +Summary: Ini configuration file parsing library in Rust + +License: MIT +URL: https://crates.io/crates/rust-ini +Source: %{crates_source} + +Patch: downgrade-ordered-multimap.diff + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +An Ini configuration file parsing library in Rust.} + +%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 +%doc %{crate_instdir}/README.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}+brackets-in-section-names-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+brackets-in-section-names-devel %{_description} + +This package contains library source intended for building other packages which +use the "brackets-in-section-names" feature of the "%{crate}" crate. + +%files -n %{name}+brackets-in-section-names-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+case-insensitive-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+case-insensitive-devel %{_description} + +This package contains library source intended for building other packages which +use the "case-insensitive" feature of the "%{crate}" crate. + +%files -n %{name}+case-insensitive-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+inline-comment-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+inline-comment-devel %{_description} + +This package contains library source intended for building other packages which +use the "inline-comment" feature of the "%{crate}" crate. + +%files -n %{name}+inline-comment-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+unicase-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+unicase-devel %{_description} + +This package contains library source intended for building other packages which +use the "unicase" feature of the "%{crate}" crate. + +%files -n %{name}+unicase-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