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

124 lines
3.1 KiB

# Generated by rust2rpm 18
# * adaptive-barrier is not packaged yet
6 years ago
%bcond_with check
%global debug_package %{nil}
%global crate arc-swap
Name: rust-%{crate}
Version: 1.5.0
Release: %autorelease
6 years ago
Summary: Atomically swappable Arc
# Upstream license specification: Apache-2.0/MIT
License: ASL 2.0 or MIT
URL: https://crates.io/crates/arc-swap
Source: %{crates_source}
6 years ago
ExclusiveArch: %{rust_arches}
%if %{__cargo_skip_build}
BuildArch: noarch
%endif
6 years ago
BuildRequires: rust-packaging
%global _description %{expand:
Atomically swappable Arc.}
6 years ago
%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
%license LICENSE-APACHE LICENSE-MIT
%doc README.md CHANGELOG.md
%{cargo_registry}/%{crate}-%{version_no_tilde}/
6 years ago
%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_no_tilde}/Cargo.toml
6 years ago
%package -n %{name}+experimental-strategies-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+experimental-strategies-devel %{_description}
This package contains library source intended for building other packages
which use "experimental-strategies" feature of "%{crate}" crate.
%files -n %{name}+experimental-strategies-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+internal-test-strategies-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+internal-test-strategies-devel %{_description}
This package contains library source intended for building other packages
which use "internal-test-strategies" feature of "%{crate}" crate.
%files -n %{name}+internal-test-strategies-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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_no_tilde}/Cargo.toml
5 years ago
%package -n %{name}+weak-devel
Summary: %{summary}
BuildArch: noarch
5 years ago
%description -n %{name}+weak-devel %{_description}
This package contains library source intended for building other packages
5 years ago
which use "weak" feature of "%{crate}" crate.
5 years ago
%files -n %{name}+weak-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
6 years ago
%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
6 years ago
%cargo_prep
%generate_buildrequires
%cargo_generate_buildrequires
6 years ago
%build
%cargo_build
%install
%cargo_install
%if %{with check}
%check
%cargo_test
%endif
%changelog
%autochangelog