diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2718258 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/memoffset-0.2.1.crate diff --git a/rust-memoffset.spec b/rust-memoffset.spec new file mode 100644 index 0000000..0dd3d6b --- /dev/null +++ b/rust-memoffset.spec @@ -0,0 +1,55 @@ +# Generated by rust2rpm +%bcond_without check +%global debug_package %{nil} + +%global crate memoffset + +Name: rust-%{crate} +Version: 0.2.1 +Release: 1%{?dist} +Summary: C-like offset_of functionality for Rust structs. + +License: MIT +URL: https://crates.io/crates/memoffset +Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging + +%description +%{summary}. + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel +%{summary}. + +This package contains library source intended for building other packages +which use %{crate} from crates.io. + +%prep +%autosetup -n %{crate}-%{version} -p1 +%cargo_prep + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%files devel +%license +%doc README.md +%{cargo_registry}/%{crate}-%{version}/ + +%changelog +* Thu Feb 15 2018 Igor Gnatenko - 0.2.1-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..40b07dd --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (memoffset-0.2.1.crate) = 4901eca49eb20acc53d1120548925d691d5e0a0ee899f5c26f55f8b997549cea3b819b1f9b4f5495f4bc73fbcaa386cda50cefdc0036c097c4eeca8086568530