Initial import (#2150615)

epel9
Fabio Valentini 2 years ago
parent f6a3ce9f6c
commit b2c2f40cba
No known key found for this signature in database
GPG Key ID: 5AC5F572E5D410AF

1
.gitignore vendored

@ -0,0 +1 @@
/critical-section-1.1.1.crate

@ -1,3 +0,0 @@
# rust-critical-section
The rust-critical-section package

@ -0,0 +1,155 @@
# Generated by rust2rpm 23
%bcond_without check
%global debug_package %{nil}
%global crate critical-section
Name: rust-critical-section
Version: 1.1.1
Release: %autorelease
Summary: Cross-platform critical section
License: MIT OR Apache-2.0
URL: https://crates.io/crates/critical-section
Source: %{crates_source}
BuildRequires: rust-packaging >= 21
%global _description %{expand:
Cross-platform critical section.}
%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}/CHANGELOG.md
%doc %{crate_instdir}/CODE_OF_CONDUCT.md
%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}+restore-state-bool-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+restore-state-bool-devel %{_description}
This package contains library source intended for building other packages which
use the "restore-state-bool" feature of the "%{crate}" crate.
%files -n %{name}+restore-state-bool-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+restore-state-none-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+restore-state-none-devel %{_description}
This package contains library source intended for building other packages which
use the "restore-state-none" feature of the "%{crate}" crate.
%files -n %{name}+restore-state-none-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+restore-state-u16-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+restore-state-u16-devel %{_description}
This package contains library source intended for building other packages which
use the "restore-state-u16" feature of the "%{crate}" crate.
%files -n %{name}+restore-state-u16-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+restore-state-u32-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+restore-state-u32-devel %{_description}
This package contains library source intended for building other packages which
use the "restore-state-u32" feature of the "%{crate}" crate.
%files -n %{name}+restore-state-u32-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+restore-state-u64-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+restore-state-u64-devel %{_description}
This package contains library source intended for building other packages which
use the "restore-state-u64" feature of the "%{crate}" crate.
%files -n %{name}+restore-state-u64-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+restore-state-u8-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+restore-state-u8-devel %{_description}
This package contains library source intended for building other packages which
use the "restore-state-u8" feature of the "%{crate}" crate.
%files -n %{name}+restore-state-u8-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+std-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+std-devel %{_description}
This package contains library source intended for building other packages which
use the "std" feature of the "%{crate}" crate.
%files -n %{name}+std-devel
%ghost %{crate_instdir}/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
%autochangelog

@ -0,0 +1 @@
SHA512 (critical-section-1.1.1.crate) = b611faa475805df86b2c2957815406e99c048f423681eb35ea6b11908bbdf06f51d3b8db8a85c35462bc61f10c0291479e24ffc764614ae6a0bf6eb28e634521
Loading…
Cancel
Save