public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rust-maybe-owned] epel10: Re-generated spec file with current rust2rpm
@ 2026-08-20  6:56 Benjamin A. Beasley
  0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-08-20  6:56 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/rust-maybe-owned
            Branch : epel10
            Commit : fc491f566aec286b1ecc2604c088a7a160fb4695
            Author : Benjamin A. Beasley <code@musicinmybrain.net>
            Date   : 2026-08-20T07:54:29+01:00
            Stats  : +27/-26 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/rust-maybe-owned/c/fc491f566aec286b1ecc2604c088a7a160fb4695?branch=epel10

            Log:
            Re-generated spec file with current rust2rpm

- Package reintroduced after previous retirement; close RHBZ#2516017

---
diff --git a/rust-maybe-owned.spec b/rust-maybe-owned.spec
index 618bc71..7d5ac5c 100644
--- a/rust-maybe-owned.spec
+++ b/rust-maybe-owned.spec
@@ -1,29 +1,24 @@
-# Generated by rust2rpm 17
-%bcond_without check
+# Generated by rust2rpm 28
+%bcond check 1
 %global debug_package %{nil}
 
 %global crate maybe-owned
 
-Name:           rust-%{crate}
+Name:           rust-maybe-owned
 Version:        0.3.4
 Release:        %autorelease
-Summary:        Provides Rust enums MaybeOwned and MaybeOwnedMut
+Summary:        Provides a MaybeOwned (and MaybeOwnedMut) type
 
-# Upstream license specification: MIT OR Apache-2.0
-License:        MIT or ASL 2.0
+License:        MIT OR Apache-2.0
 URL:            https://crates.io/crates/maybe-owned
 Source:         %{crates_source}
 
-ExclusiveArch:  %{rust_arches}
-%if %{__cargo_skip_build}
-BuildArch:      noarch
-%endif
-
-BuildRequires:  rust-packaging
+BuildRequires:  cargo-rpm-macros >= 24
 
 %global _description %{expand:
-Provides a `MaybeOwned` (and `MaybeOwnedMut`) type similar to std's `Cow` but
-it implements `From<T>` and `From<&'a T>` and does not require `ToOwned`.}
+Provides a `MaybeOwned` (and `MaybeOwnedMut`) type similar to std's
+`Cow` but it implements `From<T>` and `From<&'a T>` and does not require
+`ToOwned`.}
 
 %description %{_description}
 
@@ -33,13 +28,14 @@ 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
-%doc README.md
-%license LICENSE-APACHE LICENSE-MIT
-%{cargo_registry}/%{crate}-%{version_no_tilde}/
+%license %{crate_instdir}/LICENSE-APACHE
+%license %{crate_instdir}/LICENSE-MIT
+%doc %{crate_instdir}/README.md
+%{crate_instdir}/
 
 %package     -n %{name}+default-devel
 Summary:        %{summary}
@@ -47,11 +43,11 @@ 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}+serde-devel
 Summary:        %{summary}
@@ -59,14 +55,14 @@ BuildArch:      noarch
 
 %description -n %{name}+serde-devel %{_description}
 
-This package contains library source intended for building other packages
-which use "serde" feature of "%{crate}" crate.
+This package contains library source intended for building other packages which
+use the "serde" feature of the "%{crate}" crate.
 
 %files       -n %{name}+serde-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..6c57fb4
--- /dev/null
+++ b/rust2rpm.toml
@@ -0,0 +1,5 @@
+[package]
+# Upstream: “provides a `MaybeOwned` (and `MaybeOwnedMut`) type similar to
+# std's `Cow` but it implements `From<T>` and `From<&'a T>` and does not
+# require `ToOwned`”
+summary = "Provides a MaybeOwned (and MaybeOwnedMut) type"

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

only message in thread, other threads:[~2026-08-20  6:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-20  6:56 [rpms/rust-maybe-owned] epel10: Re-generated spec file with current rust2rpm Benjamin A. Beasley

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