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

122 lines
3.0 KiB

# Generated by rust2rpm 26
# * files required by tests are not included in published crates
%bcond_with check
%global debug_package %{nil}
# prevent executables from being installed
%global cargo_install_bin 0
%global crate escargot
Name: rust-escargot
Version: 0.5.13
Release: %autorelease
Summary: Cargo API written in Paris
License: MIT OR Apache-2.0
URL: https://crates.io/crates/escargot
Source: %{crates_source}
BuildRequires: cargo-rpm-macros >= 26
%global _description %{expand:
Cargo API written in Paris.}
%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-APACHE
%license %{crate_instdir}/LICENSE-MIT
%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}+cargo_unstable-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+cargo_unstable-devel %{_description}
This package contains library source intended for building other packages which
use the "cargo_unstable" feature of the "%{crate}" crate.
%files -n %{name}+cargo_unstable-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+print-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+print-devel %{_description}
This package contains library source intended for building other packages which
use the "print" feature of the "%{crate}" crate.
%files -n %{name}+print-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+strict_unstable-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+strict_unstable-devel %{_description}
This package contains library source intended for building other packages which
use the "strict_unstable" feature of the "%{crate}" crate.
%files -n %{name}+strict_unstable-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+test_unstable-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+test_unstable-devel %{_description}
This package contains library source intended for building other packages which
use the "test_unstable" feature of the "%{crate}" crate.
%files -n %{name}+test_unstable-devel
%ghost %{crate_instdir}/Cargo.toml
%prep
%autosetup -n %{crate}-%{version} -p1
%cargo_prep
%generate_buildrequires
%cargo_generate_buildrequires
%build
%cargo_build
%install
%cargo_install
%if %{with check}
%check
%cargo_test
%endif
%changelog
%autochangelog