diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..244f440 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/results_*/ +/*.src.rpm + +/memoffset-0.5.6.crate diff --git a/README.md b/README.md deleted file mode 100644 index f10f163..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-memoffset0.5 - -The rust-memoffset0.5 package diff --git a/rust-memoffset0.5.spec b/rust-memoffset0.5.spec new file mode 100644 index 0000000..91155e5 --- /dev/null +++ b/rust-memoffset0.5.spec @@ -0,0 +1,99 @@ +# Generated by rust2rpm 13 +%bcond_without check +%global debug_package %{nil} + +%global crate memoffset + +Name: rust-%{crate}0.5 +Version: 0.5.6 +Release: 1%{?dist} +Summary: Offset_of functionality for Rust structs + +# Upstream license specification: MIT +License: MIT +URL: https://crates.io/crates/memoffset +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%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 "%{crate}" crate. + +%files devel +%license LICENSE +%doc README.md +%{cargo_registry}/%{crate}-%{version_no_tilde}/ + +%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_no_tilde}/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 "unstable_const" feature of "%{crate}" crate. + +%files -n %{name}+unstable_const-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+unstable_raw-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+unstable_raw-devel %{_description} + +This package contains library source intended for building other packages +which use "unstable_raw" feature of "%{crate}" crate. + +%files -n %{name}+unstable_raw-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 Nov 30 2020 Fabio Valentini - 0.5.6-1 +- Initial compat package for memoffset 0.5 diff --git a/sources b/sources new file mode 100644 index 0000000..d1b8484 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (memoffset-0.5.6.crate) = 6df8952d41f60fa0993fbc85d112a15c1f6ecfef66da29ebdab71f40cd8ee8722400693b6ea023344f1b5dc351cbe828f465a8cabd150377a62948cedeb5db6b