diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9779381 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/bytecheck-0.6.12.crate diff --git a/README.md b/README.md deleted file mode 100644 index 391ae73..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-bytecheck0.6 - -The rust-bytecheck0.6 package diff --git a/rust-bytecheck0.6.spec b/rust-bytecheck0.6.spec new file mode 100644 index 0000000..41c8b1a --- /dev/null +++ b/rust-bytecheck0.6.spec @@ -0,0 +1,119 @@ +# Generated by rust2rpm 26 +%bcond_without check +%global debug_package %{nil} + +%global crate bytecheck + +Name: rust-bytecheck0.6 +Version: 0.6.12 +Release: %autorelease +Summary: Derive macro for bytecheck + +License: MIT +URL: https://crates.io/crates/bytecheck +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Derive macro for bytecheck.} + +%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 +%doc %{crate_instdir}/README.md +%doc %{crate_instdir}/crates-io.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}+simdutf8-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+simdutf8-devel %{_description} + +This package contains library source intended for building other packages which +use the "simdutf8" feature of the "%{crate}" crate. + +%files -n %{name}+simdutf8-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 + +%package -n %{name}+uuid-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+uuid-devel %{_description} + +This package contains library source intended for building other packages which +use the "uuid" feature of the "%{crate}" crate. + +%files -n %{name}+uuid-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+verbose-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+verbose-devel %{_description} + +This package contains library source intended for building other packages which +use the "verbose" feature of the "%{crate}" crate. + +%files -n %{name}+verbose-devel +%ghost %{crate_instdir}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +# * skip tests that fail with Rust 1.71: +# https://github.com/rkyv/bytecheck/issues/32 +%cargo_test -- -- --skip "src/lib.rs" +%endif + +%changelog +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..13d1c4c --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (bytecheck-0.6.12.crate) = 49a85f9bbfe8bccceffcd94e3eac1f4407d93159358428ea07652714e06e97fbcb41f22f72d9d10318bc9a019be8afc99727764162f18e8de01ea4069f44dda6