public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rust-sequoia-policy-config] epel10: Initial import (#2138445)
@ 2026-06-15 12:50 Fabio Valentini
  0 siblings, 0 replies; only message in thread
From: Fabio Valentini @ 2026-06-15 12:50 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/rust-sequoia-policy-config
Branch : epel10
Commit : a4fb974ccf29bdfbcc98d1dac46969715230a34d
Author : Fabio Valentini <decathorpe@gmail.com>
Date   : 2022-11-14T16:50:26+01:00
Stats  : +98/-3 in 6 file(s)
URL    : https://src.fedoraproject.org/rpms/rust-sequoia-policy-config/c/a4fb974ccf29bdfbcc98d1dac46969715230a34d?branch=epel10

Log:
Initial import (#2138445)

---
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..af47e2f
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/sequoia-policy-config-0.3.0.crate

diff --git a/README.md b/README.md
deleted file mode 100644
index 5d4d1fd..0000000
--- a/README.md
+++ /dev/null
@@ -1,3 +0,0 @@
-# rust-sequoia-policy-config
-
-The rust-sequoia-policy-config package

diff --git a/rust-sequoia-policy-config.spec b/rust-sequoia-policy-config.spec
new file mode 100644
index 0000000..d0af75e
--- /dev/null
+++ b/rust-sequoia-policy-config.spec
@@ -0,0 +1,73 @@
+# Generated by rust2rpm 23
+%bcond_without check
+%global debug_package %{nil}
+
+%global crate sequoia-policy-config
+
+Name:           rust-sequoia-policy-config
+Version:        0.3.0
+Release:        %autorelease
+Summary:        Configure Sequoia using a configuration file
+
+License:        LGPL-2.0-or-later
+URL:            https://crates.io/crates/sequoia-policy-config
+Source:         %{crates_source}
+# Automatically generated patch to strip foreign dependencies
+Patch:          sequoia-policy-config-fix-metadata-auto.diff
+# Manually created patch for downstream crate metadata changes
+# * default to the nettle crypto backend of sequoia-openpgp
+Patch:          sequoia-policy-config-fix-metadata.diff
+
+BuildRequires:  rust-packaging >= 21
+
+%global _description %{expand:
+Configure Sequoia using a configuration file.}
+
+%description %{_description}
+
+%package        devel
+Summary:        %{summary}
+BuildArch:      noarch
+
+%description    devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "%{crate}" crate.
+
+%files          devel
+%license %{crate_instdir}/LICENSE.txt
+%doc %{crate_instdir}/README.md
+%{crate_instdir}/
+
+%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 the "default" feature of the "%{crate}" crate.
+
+%files       -n %{name}+default-devel
+%ghost %{crate_instdir}/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
+%autochangelog

diff --git a/sequoia-policy-config-fix-metadata-auto.diff b/sequoia-policy-config-fix-metadata-auto.diff
new file mode 100644
index 0000000..a18c939
--- /dev/null
+++ b/sequoia-policy-config-fix-metadata-auto.diff
@@ -0,0 +1,13 @@
+--- sequoia-policy-config-0.3.0/Cargo.toml	1970-01-01T00:00:01+00:00
++++ sequoia-policy-config-0.3.0/Cargo.toml	1970-01-01T00:00:01+00:00
+@@ -55,10 +55,5 @@
+ features = ["crypto-nettle"]
+ default-features = false
+ 
+-[target."cfg(windows)".dev-dependencies.sequoia-openpgp]
+-version = "1"
+-features = ["crypto-cng"]
+-default-features = false
+-
+ [badges.maintenance]
+ status = "actively-developed"

diff --git a/sequoia-policy-config-fix-metadata.diff b/sequoia-policy-config-fix-metadata.diff
new file mode 100644
index 0000000..03482df
--- /dev/null
+++ b/sequoia-policy-config-fix-metadata.diff
@@ -0,0 +1,10 @@
+--- sequoia-policy-config-0.3.0/Cargo.toml	1970-01-01T00:00:01+00:00
++++ sequoia-policy-config-0.3.0/Cargo.toml	2022-10-28T20:32:52.040456+00:00
+@@ -36,6 +36,7 @@
+ 
+ [dependencies.sequoia-openpgp]
+ version = "1"
++features = ["crypto-nettle"]
+ default-features = false
+ 
+ [dependencies.serde]

diff --git a/sources b/sources
new file mode 100644
index 0000000..9c1cdee
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (sequoia-policy-config-0.3.0.crate) = 2b17805b9d85b1d4e816c85af33c8a7373cb2e18a166999aef186efd4a253712e4b8b7133e0bd55de5250d1cd9d317a9a5df3f7068a85aedadf92a58323b1b06

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-15 12:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-15 12:50 [rpms/rust-sequoia-policy-config] epel10: Initial import (#2138445) Fabio Valentini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox