diff --git a/.gitignore b/.gitignore index 1e0a1d4..10570a6 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ /memoffset-0.6.3.crate /memoffset-0.6.4.crate /memoffset-0.6.5.crate +/memoffset-0.7.1.crate diff --git a/rust-memoffset.spec b/rust-memoffset.spec index 455b934..5e56e1b 100644 --- a/rust-memoffset.spec +++ b/rust-memoffset.spec @@ -1,22 +1,19 @@ -# Generated by rust2rpm 20 +# Generated by rust2rpm 23 %bcond_without check %global debug_package %{nil} %global crate memoffset -Name: rust-%{crate} -Version: 0.6.5 +Name: rust-memoffset +Version: 0.7.1 Release: %autorelease Summary: Offset_of functionality for Rust structs -# Upstream license specification: MIT License: MIT URL: https://crates.io/crates/memoffset Source: %{crates_source} -ExclusiveArch: %{rust_arches} - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Offset_of functionality for Rust structs.} @@ -33,9 +30,9 @@ This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel -%license LICENSE -%doc README.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -47,7 +44,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}+unstable_const-devel Summary: %{summary} @@ -59,7 +56,7 @@ This package contains library source intended for building other packages which use the "unstable_const" feature of the "%{crate}" crate. %files -n %{name}+unstable_const-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 diff --git a/sources b/sources index f65a111..d567f9d 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (memoffset-0.6.5.crate) = 11bdd9185b99dfee8e659e051b09ee301c7142a372a8117864745a5085c015436d2efbb1478192886f09cbc562529e209d2e3325d94938a64bc75b1d91d2bf3f +SHA512 (memoffset-0.7.1.crate) = 40ca3c4b1fb929bec75bfcde0135037f81a6c5aa80181bc7dd7bbcd9c0946288eea8d23fca95e296567ccb02155ed0f66c7c23644b5cb3e6d3932be9f9742157