Blame rust-atomic-polyfill.spec

adbacf3
# Generated by rust2rpm 24
46aaefb
%bcond_without check
46aaefb
%global debug_package %{nil}
46aaefb
46aaefb
%global crate atomic-polyfill
46aaefb
46aaefb
Name:           rust-atomic-polyfill
af65103
Version:        1.0.3
46aaefb
Release:        %autorelease
46aaefb
Summary:        Atomic polyfills, for targets where they're not available
46aaefb
46aaefb
License:        MIT OR Apache-2.0
46aaefb
URL:            https://crates.io/crates/atomic-polyfill
46aaefb
Source:         %{crates_source}
46aaefb
46aaefb
BuildRequires:  rust-packaging >= 21
46aaefb
46aaefb
%global _description %{expand:
46aaefb
Atomic polyfills, for targets where they're not available.}
46aaefb
46aaefb
%description %{_description}
46aaefb
46aaefb
%package        devel
46aaefb
Summary:        %{summary}
46aaefb
BuildArch:      noarch
46aaefb
46aaefb
%description    devel %{_description}
46aaefb
46aaefb
This package contains library source intended for building other packages which
46aaefb
use the "%{crate}" crate.
46aaefb
46aaefb
%files          devel
46aaefb
%license %{crate_instdir}/LICENSE-APACHE
46aaefb
%license %{crate_instdir}/LICENSE-MIT
46aaefb
%doc %{crate_instdir}/CHANGELOG.md
46aaefb
%doc %{crate_instdir}/README.md
46aaefb
%{crate_instdir}/
46aaefb
46aaefb
%package     -n %{name}+default-devel
46aaefb
Summary:        %{summary}
46aaefb
BuildArch:      noarch
46aaefb
46aaefb
%description -n %{name}+default-devel %{_description}
46aaefb
46aaefb
This package contains library source intended for building other packages which
46aaefb
use the "default" feature of the "%{crate}" crate.
46aaefb
46aaefb
%files       -n %{name}+default-devel
46aaefb
%ghost %{crate_instdir}/Cargo.toml
46aaefb
46aaefb
%prep
46aaefb
%autosetup -n %{crate}-%{version_no_tilde} -p1
46aaefb
%cargo_prep
46aaefb
46aaefb
%generate_buildrequires
46aaefb
%cargo_generate_buildrequires
46aaefb
46aaefb
%build
46aaefb
%cargo_build
46aaefb
46aaefb
%install
46aaefb
%cargo_install
46aaefb
46aaefb
%if %{with check}
46aaefb
%check
46aaefb
%cargo_test
46aaefb
%endif
46aaefb
46aaefb
%changelog
46aaefb
%autochangelog