f4d0c47
# Generated by rust2rpm 25
22808be
%bcond_without check
22808be
%global debug_package %{nil}
22808be
22808be
%global crate ipnet
22808be
d427628
Name:           rust-ipnet
f4d0c47
Version:        2.9.0
7d90033
Release:        %autorelease
f4d0c47
Summary:        Types and useful methods for working with IP prefixes
22808be
d427628
License:        MIT OR Apache-2.0
22808be
URL:            https://crates.io/crates/ipnet
22808be
Source:         %{crates_source}
22808be
f4d0c47
BuildRequires:  cargo-rpm-macros >= 24
22808be
22808be
%global _description %{expand:
22808be
Provides types and useful methods for working with IPv4 and IPv6 network
22808be
addresses, commonly called IP prefixes. The new `IpNet`, `Ipv4Net`, and
2df4767
`Ipv6Net` types build on the existing `IpAddr`, `Ipv4Addr`, and
2df4767
`Ipv6Addr` types already provided in Rust's standard library and align
2df4767
to their design to stay consistent. The module also provides useful
2df4767
traits that extend `Ipv4Addr` and `Ipv6Addr` with methods for `Add`,
2df4767
`Sub`, `BitAnd`, and `BitOr` operations. The module only uses stable
2df4767
feature so it is guaranteed to compile using the stable toolchain.}
22808be
22808be
%description %{_description}
22808be
22808be
%package        devel
22808be
Summary:        %{summary}
22808be
BuildArch:      noarch
22808be
22808be
%description    devel %{_description}
22808be
7b74785
This package contains library source intended for building other packages which
7b74785
use the "%{crate}" crate.
22808be
22808be
%files          devel
7b74785
%license %{crate_instdir}/LICENSE-APACHE
7b74785
%license %{crate_instdir}/LICENSE-MIT
7b74785
%doc %{crate_instdir}/README.md
7b74785
%doc %{crate_instdir}/RELEASES.md
7b74785
%{crate_instdir}/
22808be
22808be
%package     -n %{name}+default-devel
22808be
Summary:        %{summary}
22808be
BuildArch:      noarch
22808be
22808be
%description -n %{name}+default-devel %{_description}
22808be
7b74785
This package contains library source intended for building other packages which
7b74785
use the "default" feature of the "%{crate}" crate.
22808be
22808be
%files       -n %{name}+default-devel
7b74785
%ghost %{crate_instdir}/Cargo.toml
22808be
f4d0c47
%package     -n %{name}+heapless-devel
f4d0c47
Summary:        %{summary}
f4d0c47
BuildArch:      noarch
f4d0c47
f4d0c47
%description -n %{name}+heapless-devel %{_description}
f4d0c47
f4d0c47
This package contains library source intended for building other packages which
f4d0c47
use the "heapless" feature of the "%{crate}" crate.
f4d0c47
f4d0c47
%files       -n %{name}+heapless-devel
f4d0c47
%ghost %{crate_instdir}/Cargo.toml
f4d0c47
f4d0c47
%package     -n %{name}+ser_as_str-devel
f4d0c47
Summary:        %{summary}
f4d0c47
BuildArch:      noarch
f4d0c47
f4d0c47
%description -n %{name}+ser_as_str-devel %{_description}
f4d0c47
f4d0c47
This package contains library source intended for building other packages which
f4d0c47
use the "ser_as_str" feature of the "%{crate}" crate.
f4d0c47
f4d0c47
%files       -n %{name}+ser_as_str-devel
f4d0c47
%ghost %{crate_instdir}/Cargo.toml
f4d0c47
22808be
%package     -n %{name}+serde-devel
22808be
Summary:        %{summary}
22808be
BuildArch:      noarch
22808be
22808be
%description -n %{name}+serde-devel %{_description}
22808be
7b74785
This package contains library source intended for building other packages which
7b74785
use the "serde" feature of the "%{crate}" crate.
22808be
22808be
%files       -n %{name}+serde-devel
7b74785
%ghost %{crate_instdir}/Cargo.toml
22808be
0d14bde
%package     -n %{name}+std-devel
0d14bde
Summary:        %{summary}
0d14bde
BuildArch:      noarch
0d14bde
0d14bde
%description -n %{name}+std-devel %{_description}
0d14bde
0d14bde
This package contains library source intended for building other packages which
0d14bde
use the "std" feature of the "%{crate}" crate.
0d14bde
0d14bde
%files       -n %{name}+std-devel
0d14bde
%ghost %{crate_instdir}/Cargo.toml
0d14bde
22808be
%prep
f4d0c47
%autosetup -n %{crate}-%{version} -p1
22808be
%cargo_prep
22808be
22808be
%generate_buildrequires
22808be
%cargo_generate_buildrequires
22808be
22808be
%build
22808be
%cargo_build
22808be
22808be
%install
22808be
%cargo_install
22808be
22808be
%if %{with check}
22808be
%check
22808be
%cargo_test
22808be
%endif
22808be
22808be
%changelog
7d90033
%autochangelog