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.
rust-publicsuffix/rust-publicsuffix.spec

145 lines
3.6 KiB

# Generated by rust2rpm 22
%bcond_without check
%global debug_package %{nil}
%global crate publicsuffix
Name: rust-publicsuffix
Version: 2.2.2
Release: %autorelease
Summary: Extract root domain and suffix from a domain name
# Upstream license specification: MIT/Apache-2.0
License: MIT OR Apache-2.0
URL: https://crates.io/crates/publicsuffix
Source: %{crates_source}
ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging >= 21
%global _description %{expand:
Extract root domain and suffix from a domain name.}
%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
%license %{crate_instdir}/LICENSE-APACHE
%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}+anycase-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+anycase-devel %{_description}
This package contains library source intended for building other packages which
use the "anycase" feature of the "%{crate}" crate.
%files -n %{name}+anycase-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+hashbrown-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+hashbrown-devel %{_description}
This package contains library source intended for building other packages which
use the "hashbrown" feature of the "%{crate}" crate.
%files -n %{name}+hashbrown-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+idna-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+idna-devel %{_description}
This package contains library source intended for building other packages which
use the "idna" feature of the "%{crate}" crate.
%files -n %{name}+idna-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+punycode-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+punycode-devel %{_description}
This package contains library source intended for building other packages which
use the "punycode" feature of the "%{crate}" crate.
%files -n %{name}+punycode-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}+unicase-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+unicase-devel %{_description}
This package contains library source intended for building other packages which
use the "unicase" feature of the "%{crate}" crate.
%files -n %{name}+unicase-devel
%ghost %{crate_instdir}/Cargo.toml
%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
%cargo_prep
%generate_buildrequires
%cargo_generate_buildrequires
%build
%cargo_build
%install
%cargo_install
%if %{with check}
%check
%cargo_test
%endif
%changelog
%autochangelog