diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f34715e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/critical-section-1.1.1.crate diff --git a/README.md b/README.md deleted file mode 100644 index c1e8742..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-critical-section - -The rust-critical-section package diff --git a/rust-critical-section.spec b/rust-critical-section.spec new file mode 100644 index 0000000..d3a95b5 --- /dev/null +++ b/rust-critical-section.spec @@ -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 diff --git a/sources b/sources new file mode 100644 index 0000000..f989194 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (critical-section-1.1.1.crate) = b611faa475805df86b2c2957815406e99c048f423681eb35ea6b11908bbdf06f51d3b8db8a85c35462bc61f10c0291479e24ffc764614ae6a0bf6eb28e634521