diff --git a/README.md b/README.md deleted file mode 100644 index a06c4b6..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-memmem - -The rust-memmem package diff --git a/memmem-fix-metadata.diff b/memmem-fix-metadata.diff index 33734e6..19a0197 100644 --- a/memmem-fix-metadata.diff +++ b/memmem-fix-metadata.diff @@ -1,9 +1,9 @@ --- memmem-0.1.1/Cargo.toml 2016-05-01T10:14:34+00:00 -+++ memmem-0.1.1/Cargo.toml 2022-01-28T14:39:10.954847+00:00 ++++ memmem-0.1.1/Cargo.toml 2023-06-14T14:41:37.889812+00:00 @@ -9,5 +9,5 @@ license = "MIT/Apache-2.0" [dev-dependencies] -quickcheck = "0.2" -+quickcheck = "1.0" ++quickcheck = "1" diff --git a/rust-memmem.spec b/rust-memmem.spec index 0c80565..6e2de8e 100644 --- a/rust-memmem.spec +++ b/rust-memmem.spec @@ -1,25 +1,23 @@ -# Generated by rust2rpm 20 +# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate memmem -Name: rust-%{crate} +Name: rust-memmem Version: 0.1.1 Release: %autorelease Summary: Substring searching # Upstream license specification: MIT/Apache-2.0 -License: MIT or ASL 2.0 +License: MIT OR Apache-2.0 URL: https://crates.io/crates/memmem Source: %{crates_source} -# Initial patched metadata -# Bump quickcheck to 1.0 -Patch0: memmem-fix-metadata.diff +# Manually created patch for downstream crate metadata changes +# * bump quickcheck dev-dependency from 0.2 to 1 +Patch: memmem-fix-metadata.diff -ExclusiveArch: %{rust_arches} - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Substring searching.} @@ -36,9 +34,10 @@ This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel -%license LICENSE-APACHE LICENSE-MIT -%doc README.md -%{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} @@ -50,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 %prep %autosetup -n %{crate}-%{version_no_tilde} -p1