Blame rust-scoped-tls.spec

f0c9a36
# Generated by rust2rpm 23
8c3f71f
%bcond_without check
45ced4c
%global debug_package %{nil}
45ced4c
45ced4c
%global crate scoped-tls
45ced4c
f0c9a36
Name:           rust-scoped-tls
f0c9a36
Version:        1.0.1
c84cdde
Release:        %autorelease
f0c9a36
Summary:        Provide scoped access to thread local storage (TLS)
45ced4c
6e1795e
# Upstream license specification: MIT/Apache-2.0
f0c9a36
License:        MIT OR Apache-2.0
45ced4c
URL:            https://crates.io/crates/scoped-tls
c3f7df2
Source:         %{crates_source}
45ced4c
f0c9a36
BuildRequires:  rust-packaging >= 21
45ced4c
8c3f71f
%global _description %{expand:
8c3f71f
Library implementation of the standard library's old `scoped_thread_local!`
8c3f71f
macro for providing scoped access to thread local storage (TLS) so any type can
8c3f71f
be stored into TLS.}
6e1795e
6e1795e
%description %{_description}
45ced4c
45ced4c
%package        devel
45ced4c
Summary:        %{summary}
45ced4c
BuildArch:      noarch
45ced4c
6e1795e
%description    devel %{_description}
6e1795e
c84cdde
This package contains library source intended for building other packages which
f0c9a36
use the "%{crate}" crate.
6e1795e
6e1795e
%files          devel
f0c9a36
%license %{crate_instdir}/LICENSE-APACHE
f0c9a36
%license %{crate_instdir}/LICENSE-MIT
f0c9a36
%doc %{crate_instdir}/README.md
f0c9a36
%{crate_instdir}/
6e1795e
6e1795e
%package     -n %{name}+default-devel
6e1795e
Summary:        %{summary}
6e1795e
BuildArch:      noarch
6e1795e
6e1795e
%description -n %{name}+default-devel %{_description}
45ced4c
c84cdde
This package contains library source intended for building other packages which
f0c9a36
use the "default" feature of the "%{crate}" crate.
6e1795e
6e1795e
%files       -n %{name}+default-devel
f0c9a36
%ghost %{crate_instdir}/Cargo.toml
6e1795e
45ced4c
%prep
c3f7df2
%autosetup -n %{crate}-%{version_no_tilde} -p1
45ced4c
%cargo_prep
45ced4c
8c3f71f
%generate_buildrequires
8c3f71f
%cargo_generate_buildrequires
8c3f71f
45ced4c
%build
45ced4c
%cargo_build
45ced4c
45ced4c
%install
45ced4c
%cargo_install
45ced4c
45ced4c
%if %{with check}
45ced4c
%check
45ced4c
%cargo_test
45ced4c
%endif
45ced4c
45ced4c
%changelog
c84cdde
%autochangelog