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

115 lines
2.9 KiB

# Generated by rust2rpm 10
%bcond_without check
%global debug_package %{nil}
%global crate once_cell
Name: rust-%{crate}
6 years ago
Version: 0.2.1
Release: 2%{?dist}
Summary: Single assignment cells and lazy static values without macros
# Upstream license specification: MIT OR Apache-2.0
License: MIT or ASL 2.0
URL: https://crates.io/crates/once_cell
Source: %{crates_source}
ExclusiveArch: %{rust_arches}
%if %{__cargo_skip_build}
BuildArch: noarch
%endif
BuildRequires: rust-packaging
%global _description %{expand:
Single assignment cells and lazy static values without macros.}
%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}/
%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}/Cargo.toml
6 years ago
%package -n %{name}+lock_api-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+lock_api-devel %{_description}
This package contains library source intended for building other packages
which use "lock_api" feature of "%{crate}" crate.
%files -n %{name}+lock_api-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%package -n %{name}+parking_lot-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+parking_lot-devel %{_description}
This package contains library source intended for building other packages
which use "parking_lot" feature of "%{crate}" crate.
%files -n %{name}+parking_lot-devel
%ghost %{cargo_registry}/%{crate}-%{version}/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
* Mon Jul 01 20:54:06 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.2.1-2
- Regenerate
6 years ago
* Thu Jun 06 2019 Josh Stone <jistone@redhat.com> - 0.2.1-1
- Update to 0.2.1
* Tue May 07 14:42:19 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.2.0-1
- Update to 0.2.0
* Tue May 07 07:37:55 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.1.8-3
- Update parking_lot to 0.8
* Tue Feb 12 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.1.8-2
- Adapt to new packaging
* Thu Feb 07 2019 Jan Stanek <jstanek@redhat.com> - 0.1.8-1
- Initial package