File rust-iroh-net.spec of Package rust-iroh-net
# Generated by rust2rpm 26
%bcond_with check
%global crate iroh-net
Name: rust-%{crate}
Version: 0.28.1
Release: 1%{?dist}
Summary: Networking support for iroh
License: MIT OR Apache-2.0
URL: https://crates.io/crates/iroh-net
Source: https://crates.io/api/v1/crates/%crate/%version/download#/%crate-%version.crate
# Automatically generated patch to strip dependencies and normalize metadata
Patch: iroh-net-fix-metadata-auto.diff
# Use stable versions of hickory-proto and hickory-resolver
Patch: iroh-net-hichory-dns.patch
BuildRequires: cargo-rpm-macros >= 24
%global _description %{expand:
Networking support for iroh.}
%description %{_description}
%package -n %{crate}
Summary: %{summary}
# FIXME: paste output of %%cargo_license_summary here
License: # FIXME
# LICENSE.dependencies contains a full license breakdown
%description -n %{crate} %{_description}
%files -n %{crate}
%license LICENSE-BSD3
%license LICENSE.dependencies
%doc README.md
%{_bindir}/iroh-relay
%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-BSD3
%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}+discovery-local-network-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+discovery-local-network-devel %{_description}
This package contains library source intended for building other packages which
use the "discovery-local-network" feature of the "%{crate}" crate.
%files -n %{name}+discovery-local-network-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+discovery-pkarr-dht-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+discovery-pkarr-dht-devel %{_description}
This package contains library source intended for building other packages which
use the "discovery-pkarr-dht" feature of the "%{crate}" crate.
%files -n %{name}+discovery-pkarr-dht-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+iroh-relay-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+iroh-relay-devel %{_description}
This package contains library source intended for building other packages which
use the "iroh-relay" feature of the "%{crate}" crate.
%files -n %{name}+iroh-relay-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+metrics-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+metrics-devel %{_description}
This package contains library source intended for building other packages which
use the "metrics" feature of the "%{crate}" crate.
%files -n %{name}+metrics-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+test-utils-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+test-utils-devel %{_description}
This package contains library source intended for building other packages which
use the "test-utils" feature of the "%{crate}" crate.
%files -n %{name}+test-utils-devel
%ghost %{crate_instdir}/Cargo.toml
%prep
%autosetup -n %{crate}-%{version} -p1
%cargo_prep
%generate_buildrequires
%cargo_generate_buildrequires -f iroh-relay
%build
%cargo_build -f iroh-relay
%{cargo_license_summary -f iroh-relay}
%{cargo_license -f iroh-relay} > LICENSE.dependencies
%install
%cargo_install -f iroh-relay
%if %{with check}
%check
%cargo_test -f iroh-relay
%endif