diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c83f137 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/ntest_timeout-0.9.0.crate diff --git a/README.md b/README.md deleted file mode 100644 index 5f6f6fa..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-ntest_timeout - -The rust-ntest_timeout package diff --git a/rust-ntest_timeout.spec b/rust-ntest_timeout.spec new file mode 100644 index 0000000..a6f6a0f --- /dev/null +++ b/rust-ntest_timeout.spec @@ -0,0 +1,70 @@ +# Generated by rust2rpm 25 +%bcond_without check +%global debug_package %{nil} + +%global crate ntest_timeout + +Name: rust-ntest_timeout +Version: 0.9.0 +Release: %autorelease +Summary: Timeout attribute for the ntest framework + +License: MIT +URL: https://crates.io/crates/ntest_timeout +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 +BuildRequires: dos2unix + +%global _description %{expand: +Timeout attribute for the ntest framework.} + +%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} -p1 +dos2unix --keepdate README.md +%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..3dec54f --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (ntest_timeout-0.9.0.crate) = fe7db5f555cac1e5d04759466f63d5cafb58d715d99b18d5611d2f7e0f1ab82cd52e607a70147bc8ccf91475de5be4e1f3306df842e59afb5e464a27dbfd2248