diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7df3ee0 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/serial_test-0.5.1.crate diff --git a/README.md b/README.md deleted file mode 100644 index 95aa0f0..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-serial_test0.5 - -The rust-serial_test0.5 package diff --git a/rust-serial_test0.5.spec b/rust-serial_test0.5.spec new file mode 100644 index 0000000..f292c1c --- /dev/null +++ b/rust-serial_test0.5.spec @@ -0,0 +1,71 @@ +# Generated by rust2rpm 21 +%bcond_without check +%global debug_package %{nil} + +%global crate serial_test + +Name: rust-%{crate}0.5 +Version: 0.5.1 +Release: %autorelease +Summary: Allows for the creation of serialised Rust tests + +# Upstream license specification: MIT +License: MIT +URL: https://crates.io/crates/serial_test +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Allows for the creation of serialised Rust tests.} + +%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 + +%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..5d180da --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (serial_test-0.5.1.crate) = e1a0f7a24981698eaa6bcce8f951863f76e8a2750aff3191104d092a06021c39d4eb2e9b74e6690b0dba0d674a216ea170efe0a5367d22bdef72c2006f644a4e