diff --git a/.gitignore b/.gitignore index 4c4d25e..f287c5d 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /relative-path-1.5.0.crate /relative-path-1.6.0.crate /relative-path-1.6.1.crate +/relative-path-1.7.0.crate diff --git a/rust-relative-path.spec b/rust-relative-path.spec index 535d692..694b43b 100644 --- a/rust-relative-path.spec +++ b/rust-relative-path.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 20 +# Generated by rust2rpm 21 %bcond_without check %global debug_package %{nil} %global crate relative-path Name: rust-%{crate} -Version: 1.6.1 +Version: 1.7.0 Release: %autorelease Summary: Portable, relative paths for Rust @@ -16,7 +16,7 @@ Source: %{crates_source} ExclusiveArch: %{rust_arches} -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Portable, relative paths for Rust.} @@ -33,9 +33,11 @@ This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel -%license LICENSE-APACHE LICENSE-MIT -%doc CHANGELOG.md README.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/CHANGELOG.md +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -47,7 +49,7 @@ 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 %package -n %{name}+ci-devel Summary: %{summary} @@ -59,7 +61,7 @@ This package contains library source intended for building other packages which use the "ci" feature of the "%{crate}" crate. %files -n %{name}+ci-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+serde-devel Summary: %{summary} @@ -71,24 +73,24 @@ This package contains library source intended for building other packages which use the "serde" feature of the "%{crate}" crate. %files -n %{name}+serde-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 +%cargo_generate_buildrequires -a %build -%cargo_build +%cargo_build -a %install -%cargo_install +%cargo_install -a %if %{with check} %check -%cargo_test -f ci +%cargo_test -a %endif %changelog diff --git a/sources b/sources index b70a331..32fd409 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (relative-path-1.6.1.crate) = b8ab886dcc73fa25d1fbfa05a6033e24e0647ef79c448c9e44bca6ec4dab3ad6dc7ff969cdfc85c8aa382b3f5b8e46c8b4f4b86f4787d1eac0c50f797119e304 +SHA512 (relative-path-1.7.0.crate) = 604f57ce93f5a949eb05d5fa713f9657d3edc0f35548d578bd17d2f35afd101178d7f2c09a7408392c89b70aaa92489b4572c50cd2a07f58f9c3054cbcf8925a