public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/rust-glib] epel10: Update to 0.5.0
Date: Fri, 25 Sep 2026 10:36:44 GMT [thread overview]
Message-ID: <179033260484.1.5575521367263852268.rpms-rust-glib-49f4d6274e16@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/rust-glib
Branch : epel10
Commit : 49f4d6274e16625e8c7ab64b8931905e0e49ddc6
Author : Igor Gnatenko <ignatenkobrain@fedoraproject.org>
Date : 2018-03-20T09:41:45+01:00
Stats : +9/-75 in 4 file(s)
URL : https://src.fedoraproject.org/rpms/rust-glib/c/49f4d6274e16625e8c7ab64b8931905e0e49ddc6?branch=epel10
Log:
Update to 0.5.0
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
---
diff --git a/.gitignore b/.gitignore
index af7ec6e..50ad983 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
/glib-0.4.0.crate
/glib-0.4.1.crate
+/glib-0.5.0.crate
diff --git a/0001-Fix-Char-tests-on-platforms-where-c_char-is-u8-inste.patch b/0001-Fix-Char-tests-on-platforms-where-c_char-is-u8-inste.patch
deleted file mode 100644
index ac079f9..0000000
--- a/0001-Fix-Char-tests-on-platforms-where-c_char-is-u8-inste.patch
+++ /dev/null
@@ -1,68 +0,0 @@
-From ffcb668f2d89d9ba95ac5b44ab182c8d59d737c6 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= <sebastian@centricular.com>
-Date: Sun, 21 Jan 2018 11:29:21 +0200
-Subject: [PATCH] Fix Char tests on platforms where c_char is u8 instead of i8
-
-Also add correct casts to the UChar tests while we're at it.
-
-Fixes https://github.com/gtk-rs/glib/issues/284
----
- src/char.rs | 24 ++++++++++++------------
- 1 file changed, 12 insertions(+), 12 deletions(-)
-
-diff --git a/src/char.rs b/src/char.rs
-index 45dd4ae..b55694d 100644
---- a/src/char.rs
-+++ b/src/char.rs
-@@ -139,12 +139,12 @@ mod tests {
-
- #[test]
- fn converts_single_byte_chars() {
-- assert_eq!(Char::new(0 as char), Some(Char(0)));
-- assert_eq!(Char::new(255 as char), Some(Char(-1)));
-- assert_eq!(Char::new('ñ'), Some(Char(241 as u8 as i8)));
-- assert_eq!(UChar::new(0 as char), Some(UChar(0)));
-- assert_eq!(UChar::new(255 as char), Some(UChar(255)));
-- assert_eq!(UChar::new('ñ'), Some(UChar(241 as u8)));
-+ assert_eq!(Char::new(0 as char), Some(Char(0 as c_char)));
-+ assert_eq!(Char::new(255 as char), Some(Char(-1 as i8 as c_char)));
-+ assert_eq!(Char::new('ñ'), Some(Char(241 as u8 as c_char)));
-+ assert_eq!(UChar::new(0 as char), Some(UChar(0 as c_uchar)));
-+ assert_eq!(UChar::new(255 as char), Some(UChar(255 as c_uchar)));
-+ assert_eq!(UChar::new('ñ'), Some(UChar(241 as c_uchar)));
- }
-
- #[test]
-@@ -155,23 +155,23 @@ mod tests {
-
- #[test]
- fn into_i8() {
-- assert_eq!(Char::new('A').unwrap().to_glib(), 65i8);
-+ assert_eq!(Char::new('A').unwrap().to_glib(), 65 as c_char);
- }
-
- #[test]
- fn into_u8() {
-- assert_eq!(UChar::new('A').unwrap().to_glib(), 65u8);
-+ assert_eq!(UChar::new('A').unwrap().to_glib(), 65 as c_uchar);
- }
-
- #[test]
- fn into_char() {
-- assert_eq!(char::from(Char(65i8)), 'A');
-- assert_eq!('ñ', UChar(241u8).into());
-+ assert_eq!(char::from(Char(65 as c_char)), 'A');
-+ assert_eq!('ñ', UChar(241 as c_uchar).into());
- }
-
- #[test]
- fn convert_from_glib() {
-- assert_eq!(Char(65i8), from_glib(65i8));
-- assert_eq!(UChar(241u8), from_glib(241u8));
-+ assert_eq!(Char(65 as c_char), from_glib(65 as c_char));
-+ assert_eq!(UChar(241 as c_uchar), from_glib(241 as u8 as c_uchar));
- }
- }
---
-2.15.1
-
diff --git a/rust-glib.spec b/rust-glib.spec
index 5fe4577..83e621d 100644
--- a/rust-glib.spec
+++ b/rust-glib.spec
@@ -5,23 +5,21 @@
%global crate glib
Name: rust-%{crate}
-Version: 0.4.1
-Release: 2%{?dist}
+Version: 0.5.0
+Release: 1%{?dist}
Summary: Rust bindings for the GLib library
License: MIT
URL: https://crates.io/crates/glib
Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate
-# https://github.com/gtk-rs/glib/pull/285
-Patch0001: 0001-Fix-Char-tests-on-platforms-where-c_char-is-u8-inste.patch
ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging
# [dependencies]
BuildRequires: (crate(bitflags) >= 1.0.0 with crate(bitflags) < 2.0.0)
-BuildRequires: (crate(glib-sys) >= 0.5.0 with crate(glib-sys) < 0.6.0)
-BuildRequires: (crate(gobject-sys) >= 0.5.0 with crate(gobject-sys) < 0.6.0)
+BuildRequires: (crate(glib-sys) >= 0.6.0 with crate(glib-sys) < 0.7.0)
+BuildRequires: (crate(gobject-sys) >= 0.6.0 with crate(gobject-sys) < 0.7.0)
BuildRequires: (crate(lazy_static) >= 1.0.0 with crate(lazy_static) < 2.0.0)
BuildRequires: (crate(libc) >= 0.2.0 with crate(libc) < 0.3.0)
%if %{with check}
@@ -64,6 +62,9 @@ which use %{crate} from crates.io.
%exclude %{cargo_registry}/%{crate}-%{version}/{appveyor.yml,LGPL,Makefile}
%changelog
+* Tue Mar 20 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.5.0-1
+- Update to 0.5.0
+
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
diff --git a/sources b/sources
index afdcfbf..d28328e 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (glib-0.4.1.crate) = 6fe7591afcaa63bc3eccbf30e0451f77794fd84a1bc3c8b2b40e9971ea3f8befc3ed298a6ac7c0e8c32672676516b7b4e6253318d0e81ff5220f630f3034aab9
+SHA512 (glib-0.5.0.crate) = ed6bc3b34ff6be60df65cc35b35feb52873913f83fd0a49a0bdbddeccb8c785453b4cd46bf6c67b65868575807d53ee061ca8c25685a91210f315f80dea08725
reply other threads:[~2026-09-25 10:36 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=179033260484.1.5575521367263852268.rpms-rust-glib-49f4d6274e16@fedoraproject.org \
--to=ignatenkobrain@fedoraproject.org \
--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