diff --git a/.gitignore b/.gitignore index 70f4533..0f243dd 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ /unicode-xid-0.2.2.crate /unicode-xid-0.2.3.crate /unicode-xid-0.2.4.crate +/unicode-xid-0.2.5.crate diff --git a/README.md b/README.md deleted file mode 100644 index 07be4dd..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-unicode-xid - -The rust-unicode-xid package \ No newline at end of file diff --git a/rust-unicode-xid.spec b/rust-unicode-xid.spec index 3d318f5..8707331 100644 --- a/rust-unicode-xid.spec +++ b/rust-unicode-xid.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 22 +# Generated by rust2rpm 26 %bcond_without check %global debug_package %{nil} %global crate unicode-xid Name: rust-unicode-xid -Version: 0.2.4 +Version: 0.2.5 Release: %autorelease Summary: Check characters for the XID_Start and XID_Continue properties @@ -13,16 +13,14 @@ License: MIT OR Apache-2.0 URL: https://crates.io/crates/unicode-xid Source: %{crates_source} # Manually created patch for downstream crate metadata changes -# * drop unused, benchmark-only criterion dev-dependency to speed up builds +# * drop unused, benchmark-only criterion dev-dependency Patch: unicode-xid-fix-metadata.diff -ExclusiveArch: %{rust_arches} - -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: -Determine whether characters have the XID_Start or XID_Continue properties -according to Unicode Standard Annex #31.} +Determine whether characters have the XID_Start or XID_Continue +properties according to Unicode Standard Annex #31.} %description %{_description} @@ -54,18 +52,6 @@ use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel %ghost %{crate_instdir}/Cargo.toml -%package -n %{name}+bench-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+bench-devel %{_description} - -This package contains library source intended for building other packages which -use the "bench" feature of the "%{crate}" crate. - -%files -n %{name}+bench-devel -%ghost %{crate_instdir}/Cargo.toml - %package -n %{name}+no_std-devel Summary: %{summary} BuildArch: noarch @@ -79,7 +65,7 @@ use the "no_std" feature of the "%{crate}" crate. %ghost %{crate_instdir}/Cargo.toml %prep -%autosetup -n %{crate}-%{version_no_tilde} -p1 +%autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires diff --git a/rust2rpm.toml b/rust2rpm.toml new file mode 100644 index 0000000..9315430 --- /dev/null +++ b/rust2rpm.toml @@ -0,0 +1,6 @@ +[package] +summary = "Check characters for the XID_Start and XID_Continue properties" +cargo-toml-patch-comments = [ + "drop unused, benchmark-only criterion dev-dependency", +] + diff --git a/sources b/sources index 86bd281..639400c 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (unicode-xid-0.2.4.crate) = e67bd1258e1961807d9d5fe583a89ab5b82b2a529ecd32cadfc79aa5331380eb4a2db9fd96b74c8eace47f2f29021587d69bcdbf79f7e2650e92a25f7839d03c +SHA512 (unicode-xid-0.2.5.crate) = ad8a23407aaf16eae14a44de201c4a0152bb07584bd36a5c460fb744859978cae131424c32033be4ebacc9f9a1dcd611f9ff4a98b84f560109d0c313585ce5ce diff --git a/unicode-xid-fix-metadata.diff b/unicode-xid-fix-metadata.diff index c8b5dac..0c4aa87 100644 --- a/unicode-xid-fix-metadata.diff +++ b/unicode-xid-fix-metadata.diff @@ -1,12 +1,18 @@ ---- unicode-xid-0.2.4/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ unicode-xid-0.2.4/Cargo.toml 2022-10-05T12:36:46.270378+00:00 -@@ -42,9 +42,6 @@ - name = "xid" - harness = false +--- unicode-xid-0.2.5/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ unicode-xid-0.2.5/Cargo.toml 2024-09-17T20:59:34.528496+00:00 +@@ -51,15 +51,6 @@ + name = "exhaustive_tests" + path = "tests/exhaustive_tests.rs" +-[[bench]] +-name = "xid" +-path = "benches/xid.rs" +-harness = false +- -[dev-dependencies.criterion] -version = "0.3" - [features] - bench = [] +-bench = [] default = [] + no_std = []