diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3ddc095 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/endian-type-0.1.2.crate diff --git a/rust-endian-type.spec b/rust-endian-type.spec new file mode 100644 index 0000000..e7a465d --- /dev/null +++ b/rust-endian-type.spec @@ -0,0 +1,74 @@ +# Generated by rust2rpm 17 +%bcond_without check +%global debug_package %{nil} + +%global crate endian-type + +Name: rust-%{crate} +Version: 0.1.2 +Release: 1%{?dist} +Summary: Type safe wrappers for types with a defined byte order + +# Upstream license specification: MIT +License: MIT +URL: https://crates.io/crates/endian-type +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Type safe wrappers for types with a defined byte order.} + +%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 +%{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 + +%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 +* Wed Jun 02 2021 Davide Cavalca - 0.1.2-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..f6fa917 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (endian-type-0.1.2.crate) = d8a9b125fb87099f8bcbaf3688e2feb1c463ce624cd3dd36396e75e7aff177ed5033ecc295c02f491be04dbf240aac376e79a5c7cb591c3b208c442e1c1e6bbd