diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..02474fc --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/memoffset-0.8.0.crate diff --git a/README.md b/README.md deleted file mode 100644 index dd6497f..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-memoffset0.8 - -The rust-memoffset0.8 package diff --git a/rust-memoffset0.8.spec b/rust-memoffset0.8.spec new file mode 100644 index 0000000..9b23fa1 --- /dev/null +++ b/rust-memoffset0.8.spec @@ -0,0 +1,80 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate memoffset + +Name: rust-memoffset0.8 +Version: 0.8.0 +Release: %autorelease +Summary: Offset_of functionality for Rust structs + +License: MIT +URL: https://crates.io/crates/memoffset +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Offset_of functionality for Rust structs.} + +%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 +%{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}+unstable_const-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+unstable_const-devel %{_description} + +This package contains library source intended for building other packages which +use the "unstable_const" feature of the "%{crate}" crate. + +%files -n %{name}+unstable_const-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..bb879cb --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (memoffset-0.8.0.crate) = 47adcae0848ff967035e10543ea599c7af9c5bad387023eb4dc77c9e8d875994ec8139b9941b3ecc4fc17214d80944a47a3be174a45b334661914a5a7382dfbe