public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Fabio Valentini <decathorpe@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/rust-cairo-sys-rs] epel10: Update to version 0.16.3; Fixes RHBZ#2136102
Date: Fri, 25 Sep 2026 10:32:33 GMT [thread overview]
Message-ID: <179033235302.1.7537282604525123421.rpms-rust-cairo-sys-rs-2b7fe8420f8c@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/rust-cairo-sys-rs
Branch : epel10
Commit : 2b7fe8420f8c64c66010150aff1c83614c7fb325
Author : Fabio Valentini <decathorpe@gmail.com>
Date : 2022-11-28T17:34:08+01:00
Stats : +67/-49 in 7 file(s)
URL : https://src.fedoraproject.org/rpms/rust-cairo-sys-rs/c/2b7fe8420f8c64c66010150aff1c83614c7fb325?branch=epel10
Log:
Update to version 0.16.3; Fixes RHBZ#2136102
---
diff --git a/.gitignore b/.gitignore
index cc29f80..a14ba95 100644
--- a/.gitignore
+++ b/.gitignore
@@ -8,3 +8,4 @@
/cairo-sys-rs-0.14.0.crate
/cairo-sys-rs-0.14.9.crate
/cairo-sys-rs-0.15.1.crate
+/cairo-sys-rs-0.16.3.crate
diff --git a/.rust2rpm.conf b/.rust2rpm.conf
deleted file mode 100644
index 40aa141..0000000
--- a/.rust2rpm.conf
+++ /dev/null
@@ -1,9 +0,0 @@
-[DEFAULT]
-buildrequires =
- pkgconfig(cairo) >= 1.14
-lib.requires =
- pkgconfig(cairo) >= 1.14
-lib+v1_16.requires =
- pkgconfig(cairo) >= 1.16
-lib+use_glib.requires =
- ((pkgconfig(cairo-gobject) >= 1.16 if crate(cairo-sys-rs/v1_16)) and pkgconfig(cairo-gobject) >= 1.14)
diff --git a/cairo-sys-rs-fix-metadata-auto.diff b/cairo-sys-rs-fix-metadata-auto.diff
new file mode 100644
index 0000000..395f873
--- /dev/null
+++ b/cairo-sys-rs-fix-metadata-auto.diff
@@ -0,0 +1,15 @@
+--- cairo-sys-rs-0.16.3/Cargo.toml 1970-01-01T00:00:01+00:00
++++ cairo-sys-rs-0.16.3/Cargo.toml 1970-01-01T00:00:01+00:00
+@@ -82,11 +82,7 @@
+ use_glib = ["glib"]
+ v1_16 = []
+ v1_18 = ["v1_16"]
+-win32-surface = ["winapi"]
++win32-surface = []
+ xcb = []
+ xlib = ["x11"]
+
+-[target."cfg(windows)".dependencies.winapi]
+-version = "0.3.2"
+-features = ["windef"]
+-optional = true
diff --git a/cairo-sys-rs-fix-metadata.diff b/cairo-sys-rs-fix-metadata.diff
deleted file mode 100644
index aacf46a..0000000
--- a/cairo-sys-rs-fix-metadata.diff
+++ /dev/null
@@ -1,13 +0,0 @@
---- cairo-sys-rs-0.15.1/Cargo.toml 1970-01-01T00:00:01+00:00
-+++ cairo-sys-rs-0.15.1/Cargo.toml 2022-02-12T18:50:44.186768+00:00
-@@ -63,10 +63,5 @@
- svg = []
- use_glib = ["glib"]
- v1_16 = []
--win32-surface = ["winapi"]
- xcb = []
- xlib = ["x11"]
--[target."cfg(windows)".dependencies.winapi]
--version = "0.3.2"
--features = ["windef"]
--optional = true
diff --git a/rust-cairo-sys-rs.spec b/rust-cairo-sys-rs.spec
index 7a9511f..9c5e84b 100644
--- a/rust-cairo-sys-rs.spec
+++ b/rust-cairo-sys-rs.spec
@@ -1,26 +1,22 @@
-# Generated by rust2rpm 20
+# Generated by rust2rpm 23
# * 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-%{crate}
-Version: 0.15.1
+Name: rust-cairo-sys-rs
+Version: 0.16.3
Release: %autorelease
Summary: FFI bindings to libcairo
-# Upstream license specification: MIT
License: MIT
URL: https://crates.io/crates/cairo-sys-rs
Source: %{crates_source}
-# Initial patched metadata
-# * drop windows-specific dependencies and features
-Patch0: cairo-sys-rs-fix-metadata.diff
+# Automatically generated patch to strip foreign dependencies
+Patch: cairo-sys-rs-fix-metadata-auto.diff
-ExclusiveArch: %{rust_arches}
-
-BuildRequires: rust-packaging
+BuildRequires: rust-packaging >= 21
%global _description %{expand:
FFI bindings to libcairo.}
@@ -38,8 +34,8 @@ This package contains library source intended for building other packages which
use the "%{crate}" crate.
%files devel
-%license LICENSE
-%{cargo_registry}/%{crate}-%{version_no_tilde}/
+%license %{crate_instdir}/LICENSE
+%{crate_instdir}/
%package -n %{name}+default-devel
Summary: %{summary}
@@ -51,7 +47,7 @@ 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}+dox-devel
Summary: %{summary}
@@ -63,7 +59,7 @@ This package contains library source intended for building other packages which
use the "dox" feature of the "%{crate}" crate.
%files -n %{name}+dox-devel
-%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+freetype-devel
Summary: %{summary}
@@ -75,7 +71,7 @@ This package contains library source intended for building other packages which
use the "freetype" feature of the "%{crate}" crate.
%files -n %{name}+freetype-devel
-%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+glib-devel
Summary: %{summary}
@@ -87,7 +83,7 @@ This package contains library source intended for building other packages which
use the "glib" feature of the "%{crate}" crate.
%files -n %{name}+glib-devel
-%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+pdf-devel
Summary: %{summary}
@@ -99,7 +95,7 @@ This package contains library source intended for building other packages which
use the "pdf" feature of the "%{crate}" crate.
%files -n %{name}+pdf-devel
-%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+png-devel
Summary: %{summary}
@@ -111,7 +107,7 @@ This package contains library source intended for building other packages which
use the "png" feature of the "%{crate}" crate.
%files -n %{name}+png-devel
-%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+ps-devel
Summary: %{summary}
@@ -123,7 +119,7 @@ This package contains library source intended for building other packages which
use the "ps" feature of the "%{crate}" crate.
%files -n %{name}+ps-devel
-%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+script-devel
Summary: %{summary}
@@ -135,7 +131,7 @@ This package contains library source intended for building other packages which
use the "script" feature of the "%{crate}" crate.
%files -n %{name}+script-devel
-%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+svg-devel
Summary: %{summary}
@@ -147,12 +143,13 @@ This package contains library source intended for building other packages which
use the "svg" feature of the "%{crate}" crate.
%files -n %{name}+svg-devel
-%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+use_glib-devel
Summary: %{summary}
BuildArch: noarch
Requires: ((pkgconfig(cairo-gobject) >= 1.16 if crate(cairo-sys-rs/v1_16)) and pkgconfig(cairo-gobject) >= 1.14)
+Requires: ((pkgconfig(cairo-gobject) >= 1.17 if crate(cairo-sys-rs/v1_18)) and pkgconfig(cairo-gobject) >= 1.14)
%description -n %{name}+use_glib-devel %{_description}
@@ -160,7 +157,7 @@ This package contains library source intended for building other packages which
use the "use_glib" feature of the "%{crate}" crate.
%files -n %{name}+use_glib-devel
-%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+v1_16-devel
Summary: %{summary}
@@ -173,7 +170,20 @@ This package contains library source intended for building other packages which
use the "v1_16" feature of the "%{crate}" crate.
%files -n %{name}+v1_16-devel
-%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+%ghost %{crate_instdir}/Cargo.toml
+
+%package -n %{name}+v1_18-devel
+Summary: %{summary}
+BuildArch: noarch
+Requires: pkgconfig(cairo) >= 1.17
+
+%description -n %{name}+v1_18-devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "v1_18" feature of the "%{crate}" crate.
+
+%files -n %{name}+v1_18-devel
+%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+x11-devel
Summary: %{summary}
@@ -185,7 +195,7 @@ This package contains library source intended for building other packages which
use the "x11" feature of the "%{crate}" crate.
%files -n %{name}+x11-devel
-%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+xcb-devel
Summary: %{summary}
@@ -197,7 +207,7 @@ This package contains library source intended for building other packages which
use the "xcb" feature of the "%{crate}" crate.
%files -n %{name}+xcb-devel
-%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+xlib-devel
Summary: %{summary}
@@ -209,7 +219,7 @@ This package contains library source intended for building other packages which
use the "xlib" feature of the "%{crate}" crate.
%files -n %{name}+xlib-devel
-%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+%ghost %{crate_instdir}/Cargo.toml
%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
diff --git a/rust2rpm.conf b/rust2rpm.conf
new file mode 100644
index 0000000..33ac0d7
--- /dev/null
+++ b/rust2rpm.conf
@@ -0,0 +1,14 @@
+[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/sources b/sources
index e935f6f..68a1c9f 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (cairo-sys-rs-0.15.1.crate) = 85e3eb317d410b96d8879d9f51e74a98918476e9c011dd4e2d482a602341d93e5929422e3ea9b9235360d9af5d991600de512b23fe01f1e1012610bebf513e88
+SHA512 (cairo-sys-rs-0.16.3.crate) = 65214fe8d87dbcadc547b10b8741fea258606437e0dfa552b76bc87570cf3abecb90403fd95774a34c7f89a085984237763cce50eec57b1e5263d47302140b70
reply other threads:[~2026-09-25 10:32 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=179033235302.1.7537282604525123421.rpms-rust-cairo-sys-rs-2b7fe8420f8c@fedoraproject.org \
--to=decathorpe@gmail.com \
--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