public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rust-cairo-sys-rs] epel10: Update to version 0.19.2; Fixes RHBZ#2262609
@ 2026-09-25 10:32 Fabio Valentini
  0 siblings, 0 replies; only message in thread
From: Fabio Valentini @ 2026-09-25 10:32 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/rust-cairo-sys-rs
Branch : epel10
Commit : 6abfc2baaa1746ebf3dfe255cf29afef87c18cf8
Author : Fabio Valentini <decathorpe@gmail.com>
Date   : 2024-03-26T22:26:52+01:00
Stats  : +38/-33 in 6 file(s)
URL    : https://src.fedoraproject.org/rpms/rust-cairo-sys-rs/c/6abfc2baaa1746ebf3dfe255cf29afef87c18cf8?branch=epel10

Log:
Update to version 0.19.2; Fixes RHBZ#2262609

---
diff --git a/.gitignore b/.gitignore
index 9bf3ca9..38a15e4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -13,3 +13,4 @@
 /cairo-sys-rs-0.17.10.crate
 /cairo-sys-rs-0.18.0.crate
 /cairo-sys-rs-0.18.2.crate
+/cairo-sys-rs-0.19.2.crate

diff --git a/cairo-sys-rs-fix-metadata-auto.diff b/cairo-sys-rs-fix-metadata-auto.diff
index 8e1471e..b6a8442 100644
--- a/cairo-sys-rs-fix-metadata-auto.diff
+++ b/cairo-sys-rs-fix-metadata-auto.diff
@@ -1,15 +1,15 @@
---- cairo-sys-rs-0.18.2/Cargo.toml	1970-01-01T00:00:01+00:00
-+++ cairo-sys-rs-0.18.2/Cargo.toml	2023-09-19T12:42:51.948399+00:00
-@@ -90,11 +90,7 @@
- use_glib = ["glib"]
+--- cairo-sys-rs-0.19.2/Cargo.toml	1970-01-01T00:00:01+00:00
++++ cairo-sys-rs-0.19.2/Cargo.toml	2024-03-26T21:16:20.086839+00:00
+@@ -89,11 +89,7 @@
+ use_glib = ["glib-sys"]
  v1_16 = []
  v1_18 = ["v1_16"]
--win32-surface = ["winapi"]
+-win32-surface = ["windows-sys"]
 +win32-surface = []
  xcb = []
  xlib = ["x11"]
  
--[target."cfg(windows)".dependencies.winapi]
--version = "0.3.2"
--features = ["windef"]
+-[target."cfg(windows)".dependencies.windows-sys]
+-version = "0.52"
+-features = ["Win32_Graphics_Gdi"]
 -optional = true

diff --git a/rust-cairo-sys-rs.spec b/rust-cairo-sys-rs.spec
index 668b976..3ce9e24 100644
--- a/rust-cairo-sys-rs.spec
+++ b/rust-cairo-sys-rs.spec
@@ -1,21 +1,22 @@
-# Generated by rust2rpm 24
-%bcond_without check
+# Generated by rust2rpm 26
+# * tests are broken: https://github.com/gtk-rs/gtk-rs-core/issues/64
+%bcond_with check
 %global debug_package %{nil}
 
 %global crate cairo-sys-rs
 
 Name:           rust-cairo-sys-rs
-Version:        0.18.2
+Version:        0.19.2
 Release:        %autorelease
 Summary:        FFI bindings to libcairo
 
 License:        MIT
 URL:            https://crates.io/crates/cairo-sys-rs
 Source:         %{crates_source}
-# Automatically generated patch to strip foreign dependencies
+# Automatically generated patch to strip dependencies and normalize metadata
 Patch:          cairo-sys-rs-fix-metadata-auto.diff
 
-BuildRequires:  rust-packaging >= 21
+BuildRequires:  cargo-rpm-macros >= 24
 
 %global _description %{expand:
 FFI bindings to libcairo.}
@@ -60,16 +61,16 @@ use the "freetype" feature of the "%{crate}" crate.
 %files       -n %{name}+freetype-devel
 %ghost %{crate_instdir}/Cargo.toml
 
-%package     -n %{name}+glib-devel
+%package     -n %{name}+glib-sys-devel
 Summary:        %{summary}
 BuildArch:      noarch
 
-%description -n %{name}+glib-devel %{_description}
+%description -n %{name}+glib-sys-devel %{_description}
 
 This package contains library source intended for building other packages which
-use the "glib" feature of the "%{crate}" crate.
+use the "glib-sys" feature of the "%{crate}" crate.
 
-%files       -n %{name}+glib-devel
+%files       -n %{name}+glib-sys-devel
 %ghost %{crate_instdir}/Cargo.toml
 
 %package     -n %{name}+pdf-devel
@@ -209,7 +210,7 @@ use the "xlib" feature of the "%{crate}" crate.
 %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.conf b/rust2rpm.conf
deleted file mode 100644
index 33ac0d7..0000000
--- a/rust2rpm.conf
+++ /dev/null
@@ -1,14 +0,0 @@
-[DEFAULT]
-unwanted-features =
-  win32-surface
-buildrequires =
-  pkgconfig(cairo) >= 1.14
-lib.requires =
-  pkgconfig(cairo) >= 1.14
-lib+v1_16.requires =
-  pkgconfig(cairo) >= 1.16
-lib+v1_18.requires =
-  pkgconfig(cairo) >= 1.17
-lib+use_glib.requires =
-  ((pkgconfig(cairo-gobject) >= 1.16 if crate(cairo-sys-rs/v1_16)) and pkgconfig(cairo-gobject) >= 1.14)
-  ((pkgconfig(cairo-gobject) >= 1.17 if crate(cairo-sys-rs/v1_18)) and pkgconfig(cairo-gobject) >= 1.14)

diff --git a/rust2rpm.toml b/rust2rpm.toml
new file mode 100644
index 0000000..64c0359
--- /dev/null
+++ b/rust2rpm.toml
@@ -0,0 +1,17 @@
+[tests]
+run = ["none"]
+comments = ["tests are broken: https://github.com/gtk-rs/gtk-rs-core/issues/64"]
+
+[features]
+hide = ["win32-surface"]
+
+[requires]
+build = ["pkgconfig(cairo) >= 1.14"]
+lib = ["pkgconfig(cairo) >= 1.14"]
+features.v1_16 = ["pkgconfig(cairo) >= 1.16"]
+features.v1_18 = ["pkgconfig(cairo) >= 1.17"]
+features.use_glib = [
+    "((pkgconfig(cairo-gobject) >= 1.16 if crate(cairo-sys-rs/v1_16)) and pkgconfig(cairo-gobject) >= 1.14)",
+    "((pkgconfig(cairo-gobject) >= 1.17 if crate(cairo-sys-rs/v1_18)) and pkgconfig(cairo-gobject) >= 1.14)",
+]
+

diff --git a/sources b/sources
index 000b1fe..0e0579e 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (cairo-sys-rs-0.18.2.crate) = b101f7a2543793fbc1a1cf86c62a8fa404ce171160603e72f9aae3592736e4d68ae53b8ad91aa8d70e21965d263dc740f96fe001bb049674b4efee1039d3d68a
+SHA512 (cairo-sys-rs-0.19.2.crate) = 98a385b7b89e2c2faa87745806a89a2cea929cce9d12b1ed5f87e09c41e6b6aba587cdba0db1c2be886535aea62a2488317804dee76f467847823812a7006086

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

only message in thread, other threads:[~2026-09-25 10:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-25 10:32 [rpms/rust-cairo-sys-rs] epel10: Update to version 0.19.2; Fixes RHBZ#2262609 Fabio Valentini

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