From e3d42de6f190793dab1aa9211c12555f3f03a577 Mon Sep 17 00:00:00 2001 From: Cristian Le Date: Fri, 29 Mar 2024 21:12:10 +0100 Subject: [PATCH] Dependencies Round 5 Signed-off-by: Cristian Le --- .packit.yaml | 14 ++++ rust-no-std-net/rust-no-std-net.spec | 116 +++++++++++++++++++++++++++ rust-no-std-net/rust2rpm.toml | 0 rust-special/rust-special.spec | 69 ++++++++++++++++ rust-special/rust2rpm.toml | 0 5 files changed, 199 insertions(+) create mode 100644 rust-no-std-net/rust-no-std-net.spec create mode 100644 rust-no-std-net/rust2rpm.toml create mode 100644 rust-special/rust-special.spec create mode 100644 rust-special/rust2rpm.toml diff --git a/.packit.yaml b/.packit.yaml index f620801..c993218 100644 --- a/.packit.yaml +++ b/.packit.yaml @@ -383,6 +383,20 @@ packages: upstream_package_name: defmac downstream_package_name: rust-defmac actions: *Actions-Package-NewOrUpdate + rust-no-std-net: + # https://github.com/dunmatt/no-std-net + paths: [ rust-no-std-net ] + specfile_path: rust-no-std-net.spec + upstream_package_name: no-std-net + downstream_package_name: rust-no-std-net + actions: *Actions-Package-NewOrUpdate + rust-special: + # https://github.com/stainless-steel/special + paths: [ rust-special ] + specfile_path: rust-special.spec + upstream_package_name: special + downstream_package_name: rust-special + actions: *Actions-Package-NewOrUpdate # Upstream is working on it: rust-argon2: diff --git a/rust-no-std-net/rust-no-std-net.spec b/rust-no-std-net/rust-no-std-net.spec new file mode 100644 index 0000000..931c09a --- /dev/null +++ b/rust-no-std-net/rust-no-std-net.spec @@ -0,0 +1,116 @@ +# Generated by rust2rpm 26 +%bcond_without check +%global debug_package %{nil} + +%global crate no-std-net + +Name: rust-no-std-net +Version: 0.6.0 +Release: %autorelease +Summary: Rust's std::net... without the 'std' + +License: MIT +URL: https://crates.io/crates/no-std-net +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Rust's std::net... without the 'std'.} + +%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}+i128-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+i128-devel %{_description} + +This package contains library source intended for building other packages which +use the "i128" feature of the "%{crate}" crate. + +%files -n %{name}+i128-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}+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 + +%package -n %{name}+unstable_ip-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+unstable_ip-devel %{_description} + +This package contains library source intended for building other packages which +use the "unstable_ip" feature of the "%{crate}" crate. + +%files -n %{name}+unstable_ip-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/rust-no-std-net/rust2rpm.toml b/rust-no-std-net/rust2rpm.toml new file mode 100644 index 0000000..e69de29 diff --git a/rust-special/rust-special.spec b/rust-special/rust-special.spec new file mode 100644 index 0000000..944dab7 --- /dev/null +++ b/rust-special/rust-special.spec @@ -0,0 +1,69 @@ +# Generated by rust2rpm 26 +%bcond_without check +%global debug_package %{nil} + +%global crate special + +Name: rust-special +Version: 0.10.3 +Release: %autorelease +Summary: Package provides special functions + +# Upstream license specification: Apache-2.0/MIT +License: Apache-2.0 OR MIT +URL: https://crates.io/crates/special +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +The package provides special functions.} + +%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.md +%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 + +%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/rust-special/rust2rpm.toml b/rust-special/rust2rpm.toml new file mode 100644 index 0000000..e69de29