public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rust-elasticlunr-rs] epel10: Initial import after unretirement (#2332598)
@ 2026-07-07 13:06 Fabio Valentini
0 siblings, 0 replies; only message in thread
From: Fabio Valentini @ 2026-07-07 13:06 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/rust-elasticlunr-rs
Branch : epel10
Commit : f0f8ac43828b7af2d1d2c6dae13a2c053417b516
Author : Fabio Valentini <decathorpe@gmail.com>
Date : 2025-03-18T23:26:24+01:00
Stats : +168/-130 in 6 file(s)
URL : https://src.fedoraproject.org/rpms/rust-elasticlunr-rs/c/f0f8ac43828b7af2d1d2c6dae13a2c053417b516?branch=epel10
Log:
Initial import after unretirement (#2332598)
---
diff --git a/.gitignore b/.gitignore
index fb3bfe6..a6ea9c1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,3 +6,4 @@
/elasticlunr-rs-2.3.11.crate
/elasticlunr-rs-2.3.12.crate
/elasticlunr-rs-2.3.14.crate
+/elasticlunr-rs-3.0.3.crate
diff --git a/README.md b/README.md
deleted file mode 100644
index 2a18358..0000000
--- a/README.md
+++ /dev/null
@@ -1,3 +0,0 @@
-# rust-elasticlunr-rs
-
-The rust-elasticlunr-rs package
\ No newline at end of file
diff --git a/elasticlunr-rs-fix-metadata.diff b/elasticlunr-rs-fix-metadata.diff
index a685b88..596ce0b 100644
--- a/elasticlunr-rs-fix-metadata.diff
+++ b/elasticlunr-rs-fix-metadata.diff
@@ -1,27 +1,71 @@
---- elasticlunr-rs-2.3.14/Cargo.toml 1970-01-01T00:00:01+00:00
-+++ elasticlunr-rs-2.3.14/Cargo.toml 2021-11-19T11:31:43.490036+00:00
-@@ -29,14 +29,6 @@
+--- elasticlunr-rs-3.0.3/Cargo.toml 1970-01-01T00:00:01+00:00
++++ elasticlunr-rs-3.0.3/Cargo.toml 2025-03-17T15:58:10.363174+00:00
+@@ -53,10 +53,6 @@
+ fr = ["rust-stemmers"]
+ hu = ["rust-stemmers"]
+ it = ["rust-stemmers"]
+-ja = [
+- "lindera",
+- "lindera-core",
+-]
+ ko = []
+ languages = [
+ "ar",
+@@ -68,7 +64,6 @@
+ "fr",
+ "hu",
+ "it",
+- "ja",
+ "ko",
+ "no",
+ "pt",
+@@ -76,7 +71,6 @@
+ "ru",
+ "sv",
+ "tr",
+- "zh",
+ ]
+ no = ["rust-stemmers"]
+ pt = ["rust-stemmers"]
+@@ -84,7 +78,6 @@
+ ru = ["rust-stemmers"]
+ sv = ["rust-stemmers"]
+ tr = ["rust-stemmers"]
+-zh = ["jieba-rs"]
- [dependencies.lazy_static]
- version = "1"
+ [lib]
+ name = "elasticlunr"
+@@ -102,24 +95,6 @@
+ name = "test-pipeline"
+ path = "tests/test-pipeline.rs"
+
+-[[bench]]
+-name = "bench"
+-path = "benches/bench.rs"
+-harness = false
+-
+-[dependencies.jieba-rs]
+-version = "0.6"
+-optional = true
-
-[dependencies.lindera]
--version = "0.8"
+-version = "0.14"
+-features = ["ipadic"]
-optional = true
-
-[dependencies.lindera-core]
--version = "0.8"
+-version = "0.13.5"
-optional = true
-
+-
[dependencies.regex]
version = "1"
-@@ -72,8 +64,7 @@
- fi = ["rust-stemmers"]
- fr = ["rust-stemmers"]
- it = ["rust-stemmers"]
--ja = ["lindera", "lindera-core"]
--languages = ["da", "no", "de", "du", "es", "fi", "fr", "it", "pt", "ro", "ru", "sv", "tr", "zh", "ja"]
-+languages = ["da", "no", "de", "du", "es", "fi", "fr", "it", "pt", "ro", "ru", "sv", "tr", "zh"]
- nightly = ["bench"]
- no = ["rust-stemmers"]
- pt = ["rust-stemmers"]
+
+@@ -136,8 +111,5 @@
+ [dependencies.serde_json]
+ version = "1"
+
+-[dev-dependencies.criterion]
+-version = ">=0.4.0,<0.6.0"
+-
+ [dev-dependencies.maplit]
+ version = "1"
diff --git a/rust-elasticlunr-rs.spec b/rust-elasticlunr-rs.spec
index b6fc971..13830e3 100644
--- a/rust-elasticlunr-rs.spec
+++ b/rust-elasticlunr-rs.spec
@@ -1,32 +1,28 @@
-# Generated by rust2rpm 18
-%bcond_without check
+# Generated by rust2rpm 27
+%bcond check 1
%global debug_package %{nil}
%global crate elasticlunr-rs
-Name: rust-%{crate}
-Version: 2.3.14
+Name: rust-elasticlunr-rs
+Version: 3.0.3
Release: %autorelease
-Summary: Partial port of elasticlunr.js to Rust
+Summary: Generate static document search indexes
-# Upstream license specification: MIT/Apache-2.0
-License: MIT or ASL 2.0
+License: (MIT OR Apache-2.0) AND MIT
URL: https://crates.io/crates/elasticlunr-rs
Source: %{crates_source}
-# Initial patched metadata
-# * disable support for japanese (lindera crates are not packaged yet)
-Patch0: elasticlunr-rs-fix-metadata.diff
+# Manually created patch for downstream crate metadata changes
+# * disable ja language support (missing dependency: lindera)
+# * disable zh language support (missing dependency: jieba-rs)
+# * drop unused, benchmark-only criterion dev-dependency
+Patch: elasticlunr-rs-fix-metadata.diff
-ExclusiveArch: %{rust_arches}
-%if %{__cargo_skip_build}
-BuildArch: noarch
-%endif
-
-BuildRequires: rust-packaging
+BuildRequires: cargo-rpm-macros >= 24
%global _description %{expand:
-Partial port of elasticlunr.js to Rust for generating static document search
-indexes.}
+A partial port of elasticlunr.js to Rust for generating static document
+search indexes.}
%description %{_description}
@@ -36,13 +32,17 @@ BuildArch: noarch
%description devel %{_description}
-This package contains library source intended for building other packages
-which use "%{crate}" crate.
+This package contains library source intended for building other packages which
+use the "%{crate}" crate.
%files devel
-%license LICENSE-WORDS LICENSE-MIT LICENSE-JS LICENSE-APACHE
-%doc README.md
-%{cargo_registry}/%{crate}-%{version_no_tilde}/
+%license %{crate_instdir}/LICENSE-APACHE
+%license %{crate_instdir}/LICENSE-JS
+%license %{crate_instdir}/LICENSE-MIT
+%license %{crate_instdir}/LICENSE-WORDS
+%doc %{crate_instdir}/CHANGELOG.md
+%doc %{crate_instdir}/README.md
+%{crate_instdir}/
%package -n %{name}+default-devel
Summary: %{summary}
@@ -50,23 +50,23 @@ BuildArch: noarch
%description -n %{name}+default-devel %{_description}
-This package contains library source intended for building other packages
-which use "default" feature of "%{crate}" crate.
+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}+bench-devel
+%package -n %{name}+ar-devel
Summary: %{summary}
BuildArch: noarch
-%description -n %{name}+bench-devel %{_description}
+%description -n %{name}+ar-devel %{_description}
-This package contains library source intended for building other packages
-which use "bench" feature of "%{crate}" crate.
+This package contains library source intended for building other packages which
+use the "ar" feature of the "%{crate}" crate.
-%files -n %{name}+bench-devel
-%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+%files -n %{name}+ar-devel
+%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+da-devel
Summary: %{summary}
@@ -74,11 +74,11 @@ BuildArch: noarch
%description -n %{name}+da-devel %{_description}
-This package contains library source intended for building other packages
-which use "da" feature of "%{crate}" crate.
+This package contains library source intended for building other packages which
+use the "da" feature of the "%{crate}" crate.
%files -n %{name}+da-devel
-%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+de-devel
Summary: %{summary}
@@ -86,11 +86,11 @@ BuildArch: noarch
%description -n %{name}+de-devel %{_description}
-This package contains library source intended for building other packages
-which use "de" feature of "%{crate}" crate.
+This package contains library source intended for building other packages which
+use the "de" feature of the "%{crate}" crate.
%files -n %{name}+de-devel
-%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+du-devel
Summary: %{summary}
@@ -98,11 +98,11 @@ BuildArch: noarch
%description -n %{name}+du-devel %{_description}
-This package contains library source intended for building other packages
-which use "du" feature of "%{crate}" crate.
+This package contains library source intended for building other packages which
+use the "du" feature of the "%{crate}" crate.
%files -n %{name}+du-devel
-%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+es-devel
Summary: %{summary}
@@ -110,11 +110,11 @@ BuildArch: noarch
%description -n %{name}+es-devel %{_description}
-This package contains library source intended for building other packages
-which use "es" feature of "%{crate}" crate.
+This package contains library source intended for building other packages which
+use the "es" feature of the "%{crate}" crate.
%files -n %{name}+es-devel
-%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+fi-devel
Summary: %{summary}
@@ -122,11 +122,11 @@ BuildArch: noarch
%description -n %{name}+fi-devel %{_description}
-This package contains library source intended for building other packages
-which use "fi" feature of "%{crate}" crate.
+This package contains library source intended for building other packages which
+use the "fi" feature of the "%{crate}" crate.
%files -n %{name}+fi-devel
-%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+fr-devel
Summary: %{summary}
@@ -134,59 +134,59 @@ BuildArch: noarch
%description -n %{name}+fr-devel %{_description}
-This package contains library source intended for building other packages
-which use "fr" feature of "%{crate}" crate.
+This package contains library source intended for building other packages which
+use the "fr" feature of the "%{crate}" crate.
%files -n %{name}+fr-devel
-%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+%ghost %{crate_instdir}/Cargo.toml
-%package -n %{name}+it-devel
+%package -n %{name}+hu-devel
Summary: %{summary}
BuildArch: noarch
-%description -n %{name}+it-devel %{_description}
+%description -n %{name}+hu-devel %{_description}
-This package contains library source intended for building other packages
-which use "it" feature of "%{crate}" crate.
+This package contains library source intended for building other packages which
+use the "hu" feature of the "%{crate}" crate.
-%files -n %{name}+it-devel
-%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+%files -n %{name}+hu-devel
+%ghost %{crate_instdir}/Cargo.toml
-%package -n %{name}+jieba-rs-devel
+%package -n %{name}+it-devel
Summary: %{summary}
BuildArch: noarch
-%description -n %{name}+jieba-rs-devel %{_description}
+%description -n %{name}+it-devel %{_description}
-This package contains library source intended for building other packages
-which use "jieba-rs" feature of "%{crate}" crate.
+This package contains library source intended for building other packages which
+use the "it" feature of the "%{crate}" crate.
-%files -n %{name}+jieba-rs-devel
-%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+%files -n %{name}+it-devel
+%ghost %{crate_instdir}/Cargo.toml
-%package -n %{name}+languages-devel
+%package -n %{name}+ko-devel
Summary: %{summary}
BuildArch: noarch
-%description -n %{name}+languages-devel %{_description}
+%description -n %{name}+ko-devel %{_description}
-This package contains library source intended for building other packages
-which use "languages" feature of "%{crate}" crate.
+This package contains library source intended for building other packages which
+use the "ko" feature of the "%{crate}" crate.
-%files -n %{name}+languages-devel
-%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+%files -n %{name}+ko-devel
+%ghost %{crate_instdir}/Cargo.toml
-%package -n %{name}+nightly-devel
+%package -n %{name}+languages-devel
Summary: %{summary}
BuildArch: noarch
-%description -n %{name}+nightly-devel %{_description}
+%description -n %{name}+languages-devel %{_description}
-This package contains library source intended for building other packages
-which use "nightly" feature of "%{crate}" crate.
+This package contains library source intended for building other packages which
+use the "languages" feature of the "%{crate}" crate.
-%files -n %{name}+nightly-devel
-%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+%files -n %{name}+languages-devel
+%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+no-devel
Summary: %{summary}
@@ -194,11 +194,11 @@ BuildArch: noarch
%description -n %{name}+no-devel %{_description}
-This package contains library source intended for building other packages
-which use "no" feature of "%{crate}" crate.
+This package contains library source intended for building other packages which
+use the "no" feature of the "%{crate}" crate.
%files -n %{name}+no-devel
-%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+pt-devel
Summary: %{summary}
@@ -206,11 +206,11 @@ BuildArch: noarch
%description -n %{name}+pt-devel %{_description}
-This package contains library source intended for building other packages
-which use "pt" feature of "%{crate}" crate.
+This package contains library source intended for building other packages which
+use the "pt" feature of the "%{crate}" crate.
%files -n %{name}+pt-devel
-%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+ro-devel
Summary: %{summary}
@@ -218,11 +218,11 @@ BuildArch: noarch
%description -n %{name}+ro-devel %{_description}
-This package contains library source intended for building other packages
-which use "ro" feature of "%{crate}" crate.
+This package contains library source intended for building other packages which
+use the "ro" feature of the "%{crate}" crate.
%files -n %{name}+ro-devel
-%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+ru-devel
Summary: %{summary}
@@ -230,11 +230,11 @@ BuildArch: noarch
%description -n %{name}+ru-devel %{_description}
-This package contains library source intended for building other packages
-which use "ru" feature of "%{crate}" crate.
+This package contains library source intended for building other packages which
+use the "ru" feature of the "%{crate}" crate.
%files -n %{name}+ru-devel
-%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+rust-stemmers-devel
Summary: %{summary}
@@ -242,11 +242,11 @@ BuildArch: noarch
%description -n %{name}+rust-stemmers-devel %{_description}
-This package contains library source intended for building other packages
-which use "rust-stemmers" feature of "%{crate}" crate.
+This package contains library source intended for building other packages which
+use the "rust-stemmers" feature of the "%{crate}" crate.
%files -n %{name}+rust-stemmers-devel
-%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+sv-devel
Summary: %{summary}
@@ -254,11 +254,11 @@ BuildArch: noarch
%description -n %{name}+sv-devel %{_description}
-This package contains library source intended for building other packages
-which use "sv" feature of "%{crate}" crate.
+This package contains library source intended for building other packages which
+use the "sv" feature of the "%{crate}" crate.
%files -n %{name}+sv-devel
-%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+tr-devel
Summary: %{summary}
@@ -266,26 +266,14 @@ BuildArch: noarch
%description -n %{name}+tr-devel %{_description}
-This package contains library source intended for building other packages
-which use "tr" feature of "%{crate}" crate.
+This package contains library source intended for building other packages which
+use the "tr" feature of the "%{crate}" crate.
%files -n %{name}+tr-devel
-%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
-
-%package -n %{name}+zh-devel
-Summary: %{summary}
-BuildArch: noarch
-
-%description -n %{name}+zh-devel %{_description}
-
-This package contains library source intended for building other packages
-which use "zh" feature of "%{crate}" crate.
-
-%files -n %{name}+zh-devel
-%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+%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..7721885
--- /dev/null
+++ b/rust2rpm.toml
@@ -0,0 +1,8 @@
+[package]
+summary = "Generate static document search indexes"
+cargo-toml-patch-comments = [
+ "disable ja language support (missing dependency: lindera)",
+ "disable zh language support (missing dependency: jieba-rs)",
+ "drop unused, benchmark-only criterion dev-dependency",
+]
+
diff --git a/sources b/sources
index fe46e21..2917603 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (elasticlunr-rs-2.3.14.crate) = 895e765cb8b77f8a104e7c48fcf3ca4260f9e32579fc20308d4de8037d077ceecb2d119b2087170e3950568767d52cdfd6f736df5453ec54f08eeac93773b73b
+SHA512 (elasticlunr-rs-3.0.3.crate) = 942892ff674d4724e779cf27c781cd63cdd6afcf6b76a666d6f366712ce5c2bc5673525f5fb2c62c27ad2ece2fa0620f3e69e1f35c28ef8b69ff7b5b8649a4d8
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-07-07 13:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-07 13:06 [rpms/rust-elasticlunr-rs] epel10: Initial import after unretirement (#2332598) Fabio Valentini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox