diff --git a/.gitignore b/.gitignore index 0c21e7f..192d60f 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /scratch-1.0.0.crate +/scratch-1.0.5.crate diff --git a/README.md b/README.md deleted file mode 100644 index eeaeb43..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-scratch - -Compile-time temporary directory shared by multiple crates \ No newline at end of file diff --git a/rust-scratch.spec b/rust-scratch.spec index b386d1d..f166c9e 100644 --- a/rust-scratch.spec +++ b/rust-scratch.spec @@ -1,29 +1,23 @@ -# Generated by rust2rpm 16 +# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate scratch -Name: rust-%{crate} -Version: 1.0.0 +Name: rust-scratch +Version: 1.0.5 Release: %autorelease Summary: Shared compile-time directory -# Upstream license specification: MIT OR Apache-2.0 -License: MIT or ASL 2.0 +License: MIT OR Apache-2.0 URL: https://crates.io/crates/scratch Source: %{crates_source} -ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: -Compile-time temporary directory shared by multiple crates and erased by `cargo -clean`.} +Compile-time temporary directory shared by multiple crates and erased by +`cargo clean`.} %description %{_description} @@ -33,14 +27,14 @@ BuildArch: noarch %description devel %{_description} -This package contains library source intended for building other packages -which use "%{crate}" crate. +This package contains library source intended for building other packages which +use the "%{crate}" crate. %files devel -%doc README.md -%license LICENSE-APACHE -%license LICENSE-MIT -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -48,28 +42,28 @@ 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. +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 %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep %generate_buildrequires -%cargo_generate_buildrequires -a +%cargo_generate_buildrequires %build -%cargo_build -a +%cargo_build %install -%cargo_install -a +%cargo_install %if %{with check} %check -%cargo_test -a +%cargo_test %endif %changelog diff --git a/sources b/sources index c2951e6..bf296ac 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (scratch-1.0.0.crate) = e2cdacb1af24b765ebd87ec8e2d87cacbd4f7ea154d90010735cfbaf166f2f6ecd0f42b8b5a7bc2db518cf7e2f304a2a6d5cc67da0e1d6f08d6dfd427646a747 +SHA512 (scratch-1.0.5.crate) = 522e24868568e9e3c4c6a9b0af4e1890d5ca6753ea68660e13bdc95b98c30576058dc949d20a5df95a6313378083ca138c7bfbde5c60916a011cf9697180692d