diff --git a/README.md b/README.md deleted file mode 100644 index b101d2c..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-rd-util - -The rust-rd-util package diff --git a/rd-util-fix-metadata.diff b/rd-util-fix-metadata.diff index fbb788b..fa44d7b 100644 --- a/rd-util-fix-metadata.diff +++ b/rd-util-fix-metadata.diff @@ -1,5 +1,5 @@ --- rd-util-2.1.2/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ rd-util-2.1.2/Cargo.toml 2022-02-20T16:37:27.910551+00:00 ++++ rd-util-2.1.2/Cargo.toml 2023-08-07T21:51:54.786572+00:00 @@ -87,7 +87,7 @@ version = "^1.0" diff --git a/rust-rd-util.spec b/rust-rd-util.spec index 09783d1..f6c6a49 100644 --- a/rust-rd-util.spec +++ b/rust-rd-util.spec @@ -1,25 +1,23 @@ -# Generated by rust2rpm 20 +# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate rd-util -Name: rust-%{crate} +Name: rust-rd-util Version: 2.1.2 Release: %autorelease Summary: Utility collection library for resctl-demo -# Upstream license specification: Apache-2.0 -License: ASL 2.0 +License: Apache-2.0 URL: https://crates.io/crates/rd-util Source: %{crates_source} -# Initial patched metadata -# * Bump simplelog to 0.11, https://github.com/facebookexperimental/resctl-demo/pull/262 -Patch0: rd-util-fix-metadata.diff +# Manually created patch for downstream crate metadata changes +# * bump simplelog dependency from 0.10 to 0.11: +# https://github.com/facebookexperimental/resctl-demo/pull/262 +Patch: rd-util-fix-metadata.diff -ExclusiveArch: %{rust_arches} - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Utility collection library for resctl-demo.} @@ -36,9 +34,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} @@ -50,7 +48,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 %prep %autosetup -n %{crate}-%{version_no_tilde} -p1