# Generated by rust2rpm %bcond_without check %global debug_package %{nil} %global crate pcap Name: rust-%{crate} Version: 0.7.0 Release: 1%{?dist} Summary: A packet capture API around pcap/wpcap # Upstream license specification: MIT OR Apache-2.0 License: MIT or ASL 2.0 URL: https://crates.io/crates/pcap Source: %{crates_source} Patch0: add-required-features.patch ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging BuildRequires: libpcap BuildRequires: libpcap-devel BuildRequires: (crate(libc/default) >= 0.2.0 with crate(libc/default) < 0.3.0) %if %{with check} BuildRequires: (crate(tempdir/default) >= 0.3.0 with crate(tempdir/default) < 0.4.0) %endif %global _description \ A packet capture API around pcap/wpcap. %description %{_description} %package devel Summary: %{summary} BuildArch: noarch %description devel %{_description} This package contains library source intended for building other packages which use "%{crate}" crate. %files devel %doc README.md %license LICENSE-APACHE LICENSE-MIT %{cargo_registry}/%{crate}-%{version}/ %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 "default" feature of "%{crate}" crate. %files -n %{name}+default-devel %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %package -n %{name}+clippy-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+clippy-devel %{_description} This package contains library source intended for building other packages which use "clippy" feature of "%{crate}" crate. %files -n %{name}+clippy-devel %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %package -n %{name}+full-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+full-devel %{_description} This package contains library source intended for building other packages which use "full" feature of "%{crate}" crate. %files -n %{name}+full-devel %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %package -n %{name}+futures-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+futures-devel %{_description} This package contains library source intended for building other packages which use "futures" feature of "%{crate}" crate. %files -n %{name}+futures-devel %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %package -n %{name}+mio-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+mio-devel %{_description} This package contains library source intended for building other packages which use "mio" feature of "%{crate}" crate. %files -n %{name}+mio-devel %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %package -n %{name}+pcap-fopen-offline-precision-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+pcap-fopen-offline-precision-devel %{_description} This package contains library source intended for building other packages which use "pcap-fopen-offline-precision" feature of "%{crate}" crate. %files -n %{name}+pcap-fopen-offline-precision-devel %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %package -n %{name}+pcap-savefile-append-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+pcap-savefile-append-devel %{_description} This package contains library source intended for building other packages which use "pcap-savefile-append" feature of "%{crate}" crate. %files -n %{name}+pcap-savefile-append-devel %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %package -n %{name}+tokio-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+tokio-devel %{_description} This package contains library source intended for building other packages which use "tokio" feature of "%{crate}" crate. %files -n %{name}+tokio-devel %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %package -n %{name}+tokio-core-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+tokio-core-devel %{_description} This package contains library source intended for building other packages which use "tokio-core" feature of "%{crate}" crate. %files -n %{name}+tokio-core-devel %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog * Tue Apr 09 2019 Sayan Chowdhury - 0.7.0-1 - Initial package