You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
179 lines
5.9 KiB
179 lines
5.9 KiB
# Generated by rust2rpm 9
|
|
%bcond_with check
|
|
%global debug_package %{nil}
|
|
|
|
%global crate trust-dns-proto
|
|
|
|
Name: rust-%{crate}
|
|
Version: 0.7.4
|
|
Release: 1%{?dist}
|
|
Summary: Trust-DNS is a safe and secure DNS library
|
|
|
|
# Upstream license specification: MIT/Apache-2.0
|
|
# https://github.com/bluejekyll/trust-dns/issues/785
|
|
License: MIT or ASL 2.0
|
|
URL: https://crates.io/crates/trust-dns-proto
|
|
Source: %{crates_source}
|
|
# Initial patched metadata
|
|
# * No ring
|
|
Patch0: trust-dns-proto-fix-metadata.diff
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
BuildRequires: rust-packaging
|
|
BuildRequires: (crate(byteorder/default) >= 1.2.0 with crate(byteorder/default) < 2.0.0)
|
|
BuildRequires: (crate(enum-as-inner/default) >= 0.2.0 with crate(enum-as-inner/default) < 0.3.0)
|
|
BuildRequires: (crate(failure/default) >= 0.1.0 with crate(failure/default) < 0.2.0)
|
|
BuildRequires: (crate(futures/default) >= 0.1.27 with crate(futures/default) < 0.2.0)
|
|
BuildRequires: (crate(idna/default) >= 0.1.4 with crate(idna/default) < 0.2.0)
|
|
BuildRequires: (crate(lazy_static/default) >= 1.0.0 with crate(lazy_static/default) < 2.0.0)
|
|
BuildRequires: (crate(log/default) >= 0.4.1 with crate(log/default) < 0.5.0)
|
|
BuildRequires: (crate(rand/default) >= 0.6.0 with crate(rand/default) < 0.7.0)
|
|
BuildRequires: (crate(smallvec/default) >= 0.6.0 with crate(smallvec/default) < 0.7.0)
|
|
BuildRequires: (crate(socket2/default) >= 0.3.9 with crate(socket2/default) < 0.4.0)
|
|
BuildRequires: (crate(tokio-executor/default) >= 0.1.7 with crate(tokio-executor/default) < 0.2.0)
|
|
BuildRequires: (crate(tokio-io/default) >= 0.1.0 with crate(tokio-io/default) < 0.2.0)
|
|
BuildRequires: (crate(tokio-reactor/default) >= 0.1.0 with crate(tokio-reactor/default) < 0.2.0)
|
|
BuildRequires: (crate(tokio-tcp/default) >= 0.1.0 with crate(tokio-tcp/default) < 0.2.0)
|
|
BuildRequires: (crate(tokio-timer/default) >= 0.2.10 with crate(tokio-timer/default) < 0.3.0)
|
|
BuildRequires: (crate(tokio-udp/default) >= 0.1.0 with crate(tokio-udp/default) < 0.2.0)
|
|
BuildRequires: (crate(url/default) >= 1.6.0 with crate(url/default) < 2.0.0)
|
|
%if %{with check}
|
|
BuildRequires: (crate(env_logger/default) >= 0.6.0 with crate(env_logger/default) < 0.7.0)
|
|
BuildRequires: (crate(tokio/default) >= 0.1.15 with crate(tokio/default) < 0.2.0)
|
|
%endif
|
|
|
|
%global _description %{expand:
|
|
Trust-DNS is a safe and secure DNS library. This is the foundational DNS
|
|
protocol library for all Trust-DNS projects.}
|
|
|
|
%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
|
|
%{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}+data-encoding-devel
|
|
Summary: %{summary}
|
|
BuildArch: noarch
|
|
|
|
%description -n %{name}+data-encoding-devel %{_description}
|
|
|
|
This package contains library source intended for building other packages
|
|
which use "data-encoding" feature of "%{crate}" crate.
|
|
|
|
%files -n %{name}+data-encoding-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
|
|
|
|
%package -n %{name}+dnssec-devel
|
|
Summary: %{summary}
|
|
BuildArch: noarch
|
|
|
|
%description -n %{name}+dnssec-devel %{_description}
|
|
|
|
This package contains library source intended for building other packages
|
|
which use "dnssec" feature of "%{crate}" crate.
|
|
|
|
%files -n %{name}+dnssec-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
|
|
|
|
%package -n %{name}+dnssec-openssl-devel
|
|
Summary: %{summary}
|
|
BuildArch: noarch
|
|
|
|
%description -n %{name}+dnssec-openssl-devel %{_description}
|
|
|
|
This package contains library source intended for building other packages
|
|
which use "dnssec-openssl" feature of "%{crate}" crate.
|
|
|
|
%files -n %{name}+dnssec-openssl-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
|
|
|
|
%package -n %{name}+mdns-devel
|
|
Summary: %{summary}
|
|
BuildArch: noarch
|
|
|
|
%description -n %{name}+mdns-devel %{_description}
|
|
|
|
This package contains library source intended for building other packages
|
|
which use "mdns" feature of "%{crate}" crate.
|
|
|
|
%files -n %{name}+mdns-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
|
|
|
|
%package -n %{name}+openssl-devel
|
|
Summary: %{summary}
|
|
BuildArch: noarch
|
|
|
|
%description -n %{name}+openssl-devel %{_description}
|
|
|
|
This package contains library source intended for building other packages
|
|
which use "openssl" feature of "%{crate}" crate.
|
|
|
|
%files -n %{name}+openssl-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version}/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 "serde" feature of "%{crate}" crate.
|
|
|
|
%files -n %{name}+serde-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
|
|
|
|
%package -n %{name}+serde-config-devel
|
|
Summary: %{summary}
|
|
BuildArch: noarch
|
|
|
|
%description -n %{name}+serde-config-devel %{_description}
|
|
|
|
This package contains library source intended for building other packages
|
|
which use "serde-config" feature of "%{crate}" crate.
|
|
|
|
%files -n %{name}+serde-config-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
|
|
* Thu May 30 21:07:34 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.7.4-1
|
|
- Initial package
|