public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/rust-elasticlunr-rs] epel10: Initial import
Date: Tue, 07 Jul 2026 13:05:55 GMT [thread overview]
Message-ID: <178342955508.1.13179368872338510519.rpms-rust-elasticlunr-rs-2e6e7a6611e0@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/rust-elasticlunr-rs
Branch : epel10
Commit : 2e6e7a6611e0e3e0b8911e152627176931519812
Author : Igor Gnatenko <ignatenkobrain@fedoraproject.org>
Date : 2019-06-01T08:32:20+02:00
Stats : +311/-0 in 7 file(s)
URL : https://src.fedoraproject.org/rpms/rust-elasticlunr-rs/c/2e6e7a6611e0e3e0b8911e152627176931519812?branch=epel10
Log:
Initial import
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
---
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..8b3a083
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/elasticlunr-rs-2.3.4.crate
diff --git a/elasticlunr-rs-fix-metadata.diff b/elasticlunr-rs-fix-metadata.diff
new file mode 100644
index 0000000..aa31611
--- /dev/null
+++ b/elasticlunr-rs-fix-metadata.diff
@@ -0,0 +1,15 @@
+--- elasticlunr-rs-2.3.4/Cargo.toml 1970-01-01T00:00:00+00:00
++++ elasticlunr-rs-2.3.4/Cargo.toml 2019-05-31T12:15:46.343127+00:00
+@@ -44,10 +44,10 @@
+ version = "1"
+
+ [dependencies.strum]
+-version = "0.11"
++version = "0.15"
+
+ [dependencies.strum_macros]
+-version = "0.11"
++version = "0.15"
+ [dev-dependencies.maplit]
+ version = "1"
+
diff --git a/rust-elasticlunr-rs.spec b/rust-elasticlunr-rs.spec
new file mode 100644
index 0000000..ff6153e
--- /dev/null
+++ b/rust-elasticlunr-rs.spec
@@ -0,0 +1,275 @@
+# Generated by rust2rpm 9
+%bcond_with check
+%global debug_package %{nil}
+
+%global crate elasticlunr-rs
+
+Name: rust-%{crate}
+Version: 2.3.4
+Release: 1%{?dist}
+Summary: Partial port of elasticlunr.js to Rust
+
+# Upstream license specification: MIT/Apache-2.0
+License: MIT or ASL 2.0
+URL: https://crates.io/crates/elasticlunr-rs
+Source: %{crates_source}
+# Initial patched metadata
+# * Update strum to 0.15, https://github.com/mattico/elasticlunr-rs/pull/21
+Patch0: elasticlunr-rs-fix-metadata.diff
+
+ExclusiveArch: %{rust_arches}
+
+BuildRequires: rust-packaging
+BuildRequires: (crate(lazy_static/default) >= 1.0.0 with crate(lazy_static/default) < 2.0.0)
+BuildRequires: (crate(regex/default) >= 1.0.0 with crate(regex/default) < 2.0.0)
+BuildRequires: (crate(rust-stemmers/default) >= 1.0.0 with crate(rust-stemmers/default) < 2.0.0)
+BuildRequires: (crate(serde/default) >= 1.0.0 with crate(serde/default) < 2.0.0)
+BuildRequires: (crate(serde_derive/default) >= 1.0.34 with crate(serde_derive/default) < 2.0.0)
+BuildRequires: (crate(serde_json/default) >= 1.0.0 with crate(serde_json/default) < 2.0.0)
+BuildRequires: (crate(strum/default) >= 0.15.0 with crate(strum/default) < 0.16.0)
+BuildRequires: (crate(strum_macros/default) >= 0.15.0 with crate(strum_macros/default) < 0.16.0)
+%if %{with check}
+BuildRequires: (crate(maplit/default) >= 1.0.0 with crate(maplit/default) < 2.0.0)
+%endif
+
+%global _description %{expand:
+Partial port of elasticlunr.js to Rust.}
+
+%description %{_description}
+
+%package devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description devel %{_description}
+
+This package contains library source intended for building other packages
+which use "%{crate}" crate.
+
+%files devel
+%license LICENSE-MIT LICENSE-APACHE LICENSE-JS LICENSE-WORDS
+%doc README.md
+%{cargo_registry}/%{crate}-%{version}/
+
+%package -n %{name}+default-devel
+Summary: %{summary}
+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.
+
+%files -n %{name}+default-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/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 "bench" feature of "%{crate}" crate.
+
+%files -n %{name}+bench-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
+
+%package -n %{name}+da-devel
+Summary: %{summary}
+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.
+
+%files -n %{name}+da-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
+
+%package -n %{name}+de-devel
+Summary: %{summary}
+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.
+
+%files -n %{name}+de-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
+
+%package -n %{name}+du-devel
+Summary: %{summary}
+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.
+
+%files -n %{name}+du-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
+
+%package -n %{name}+es-devel
+Summary: %{summary}
+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.
+
+%files -n %{name}+es-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
+
+%package -n %{name}+fi-devel
+Summary: %{summary}
+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.
+
+%files -n %{name}+fi-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
+
+%package -n %{name}+fr-devel
+Summary: %{summary}
+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.
+
+%files -n %{name}+fr-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
+
+%package -n %{name}+it-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+it-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "it" feature of "%{crate}" crate.
+
+%files -n %{name}+it-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
+
+%package -n %{name}+languages-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+languages-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "languages" feature of "%{crate}" crate.
+
+%files -n %{name}+languages-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
+
+%package -n %{name}+nightly-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+nightly-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "nightly" feature of "%{crate}" crate.
+
+%files -n %{name}+nightly-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
+
+%package -n %{name}+pt-devel
+Summary: %{summary}
+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.
+
+%files -n %{name}+pt-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
+
+%package -n %{name}+ro-devel
+Summary: %{summary}
+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.
+
+%files -n %{name}+ro-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
+
+%package -n %{name}+ru-devel
+Summary: %{summary}
+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.
+
+%files -n %{name}+ru-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
+
+%package -n %{name}+rust-stemmers-devel
+Summary: %{summary}
+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.
+
+%files -n %{name}+rust-stemmers-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
+
+%package -n %{name}+sv-devel
+Summary: %{summary}
+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.
+
+%files -n %{name}+sv-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
+
+%package -n %{name}+tr-devel
+Summary: %{summary}
+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.
+
+%files -n %{name}+tr-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
+
+%prep
+%autosetup -n %{crate}-%{version_no_tilde} -p1
+%cargo_prep
+
+%build
+%cargo_build
+
+%install
+%cargo_install
+
+%if %{with check}
+%check
+%cargo_test
+%endif
+
+%changelog
+* Fri May 31 14:15:46 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.3.4-1
+- Initial package
diff --git a/sources b/sources
new file mode 100644
index 0000000..e586b90
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (elasticlunr-rs-2.3.4.crate) = 6c0f7de5042ab2c449d67efca24e83bcec196b6c539b9844c8ad76a664c9ffab6af4ecc445e647b8d6e255fd909732d6db13311f663317647c84dbca93006aa1
diff --git a/tests/.fmf/version b/tests/.fmf/version
new file mode 100644
index 0000000..d00491f
--- /dev/null
+++ b/tests/.fmf/version
@@ -0,0 +1 @@
+1
diff --git a/tests/provision.fmf b/tests/provision.fmf
new file mode 100644
index 0000000..503a97c
--- /dev/null
+++ b/tests/provision.fmf
@@ -0,0 +1,5 @@
+---
+standard-inventory-qcow2:
+ qemu:
+ # `cargo test` usually eats more than 1G.
+ m: 4G
diff --git a/tests/tests.yml b/tests/tests.yml
new file mode 100644
index 0000000..95b3116
--- /dev/null
+++ b/tests/tests.yml
@@ -0,0 +1,13 @@
+---
+- hosts: localhost
+ roles:
+ - role: standard-test-basic
+ tags:
+ - classic
+ repositories:
+ - repo: "https://src.fedoraproject.org/tests/rust.git"
+ dest: rust
+ tests:
+ - rust/cargo-test
+ environment:
+ pkg: rust-elasticlunr-rs
reply other threads:[~2026-07-07 13:05 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178342955508.1.13179368872338510519.rpms-rust-elasticlunr-rs-2e6e7a6611e0@fedoraproject.org \
--to=ignatenkobrain@fedoraproject.org \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox