Notification time stamped 2021-11-29 02:06:22 UTC
From 051961013fd934931e3b5fee46612d1ae342affb Mon Sep 17 00:00:00 2001 From: Link Dupont link@sub-pop.net Date: Nov 15 2021 19:41:44 +0000 Subject: initial package
Relates: RHBZ#2022198
---
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5b24da6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/i18n-embed-fl-0.5.0.crate diff --git a/add-missing-test-files.patch b/add-missing-test-files.patch new file mode 100644 index 0000000..c8302b7 --- /dev/null +++ b/add-missing-test-files.patch @@ -0,0 +1,25 @@ +diff -urN i18n-embed-fl-0.5.0.orig/i18n/en-US/i18n_embed_fl.ftl i18n-embed-fl-0.5.0/i18n/en-US/i18n_embed_fl.ftl +--- i18n-embed-fl-0.5.0.orig/i18n/en-US/i18n_embed_fl.ftl 1969-12-31 19:00:00.000000000 -0500 ++++ i18n-embed-fl-0.5.0/i18n/en-US/i18n_embed_fl.ftl 2021-10-04 20:52:55.295942278 -0400 +@@ -0,0 +1,3 @@ ++hello-world = Hello World! ++hello-arg = Hello {$name}! ++hello-arg-2 = Hello {$name1} and {$name2}! +\ No newline at end of file +diff -urN i18n-embed-fl-0.5.0.orig/i18n.toml i18n-embed-fl-0.5.0/i18n.toml +--- i18n-embed-fl-0.5.0.orig/i18n.toml 1969-12-31 19:00:00.000000000 -0500 ++++ i18n-embed-fl-0.5.0/i18n.toml 2021-10-04 20:52:19.049735485 -0400 +@@ -0,0 +1,12 @@ ++# (Required) The language identifier of the language used in the ++# source code for gettext system, and the primary fallback language ++# (for which all strings must be present) when using the fluent ++# system. ++fallback_language = "en-US" ++ ++# Use the fluent localization system. ++[fluent] ++# (Required) The path to the assets directory. ++# The paths inside the assets directory should be structured like so: ++# `assets_dir/{language}/{domain}.ftl` ++assets_dir = "i18n" +\ No newline at end of file diff --git a/disable-doctests.patch b/disable-doctests.patch new file mode 100644 index 0000000..d0845b1 --- /dev/null +++ b/disable-doctests.patch @@ -0,0 +1,22 @@ +diff -urN i18n-embed-fl-0.5.0.orig/Cargo.toml i18n-embed-fl-0.5.0/Cargo.toml +--- i18n-embed-fl-0.5.0.orig/Cargo.toml 1969-12-31 19:00:00.000000000 -0500 ++++ i18n-embed-fl-0.5.0/Cargo.toml 2021-10-04 20:50:28.694723432 -0400 +@@ -22,6 +22,7 @@ + + [lib] + proc-macro = true ++doctest = false + [dependencies.dashmap] + version = "4.0" + +diff -urN i18n-embed-fl-0.5.0.orig/Cargo.toml.orig i18n-embed-fl-0.5.0/Cargo.toml.orig +--- i18n-embed-fl-0.5.0.orig/Cargo.toml.orig 1969-12-31 19:00:00.000000000 -0500 ++++ i18n-embed-fl-0.5.0/Cargo.toml.orig 2021-10-04 20:50:34.888055687 -0400 +@@ -10,6 +10,7 @@ + + [lib] + proc-macro = true ++doctest = false + + [dependencies] + dashmap = "4.0" diff --git a/rust-i18n-embed-fl.spec b/rust-i18n-embed-fl.spec new file mode 100644 index 0000000..11464f6 --- /dev/null +++ b/rust-i18n-embed-fl.spec @@ -0,0 +1,78 @@ +# Generated by rust2rpm 18 +%bcond_without check +%global debug_package %{nil} + +%global crate i18n-embed-fl + +Name: rust-%{crate} +Version: 0.5.0 +Release: 1%{?dist} +Summary: Macro to perform compile time checks when using the i18n-embed crate and the fluent localization system + +# Upstream license specification: MIT +License: MIT +URL: https://crates.io/crates/i18n-embed-fl +Source: %{crates_source} +Patch0: disable-doctests.patch +Patch1: add-missing-test-files.patch + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Macro to perform compile time checks when using the i18n-embed crate and the +fluent localization system.} + +%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.txt +%doc README.md CHANGELOG.md +%{cargo_registry}/%{crate}-%{version_no_tilde}/ + +%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_no_tilde}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version_no_tilde} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +* Mon Oct 04 2021 Link Dupont linkdupont@fedoraproject.org - 0.5.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..4549392 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (i18n-embed-fl-0.5.0.crate) = cc472cd0331e95daf591ea46e8cd28b2d7e6ab40a789115bf20f1cd03fee703b8cd0c3070d117d3153d77e4d9dcc449d82f2a1b7fbbaeb19bc98a5f7addbc6a9
https://src.fedoraproject.org/rpms/rust-i18n-embed-fl/c/051961013fd934931e3b...
scm-commits@lists.fedoraproject.org