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

A new commit has been pushed.

Repo   : rpms/rust-freetype-sys
Branch : epel10
Commit : 06775c7a39e10709ec0e8898a6c669d88d623a7e
Author : Fabio Valentini <decathorpe@gmail.com>
Date   : 2023-03-02T14:28:11+01:00
Stats  : +72/-10 in 7 file(s)
URL    : https://src.fedoraproject.org/rpms/rust-freetype-sys/c/06775c7a39e10709ec0e8898a6c669d88d623a7e?branch=epel10

Log:
Update to version 0.17.0; Fixes RHBZ#1928338

---
diff --git a/.gitignore b/.gitignore
index 5931def..a0cdc07 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
 /freetype-sys-0.13.0.crate
 /freetype-sys-0.13.1.crate
 /freetype-sys-0.16.0.crate
+/freetype-sys-0.17.0.crate

diff --git a/109.patch b/109.patch
new file mode 100644
index 0000000..b5d28e8
--- /dev/null
+++ b/109.patch
@@ -0,0 +1,49 @@
+From ece8a60f10ae4cdc96af0a795498bb89522f1d07 Mon Sep 17 00:00:00 2001
+From: Fabio Valentini <decathorpe@gmail.com>
+Date: Wed, 1 Mar 2023 16:57:46 +0100
+Subject: [PATCH] Restore pkg-config / dynamic linking support
+
+---
+ Cargo.toml.orig |  1 +
+ build.rs        | 12 ++++++++++++
+ 2 files changed, 13 insertions(+)
+
+diff --git a/Cargo.toml.orig b/Cargo.toml.orig
+index 0e6918a..4ae5606 100644
+--- a/Cargo.toml.orig
++++ b/Cargo.toml.orig
+@@ -14,6 +14,7 @@ homepage = "https://github.com/PistonDevelopers/freetype-sys"
+ 
+ [build-dependencies]
+ cc = "1"
++pkg-config = "0.3.11"
+ 
+ [dependencies]
+ libc = "0.2.42"
+diff --git a/build.rs b/build.rs
+index e16a9f7..5a5a39a 100644
+--- a/build.rs
++++ b/build.rs
+@@ -1,3 +1,5 @@
++use std::env;
++
+ fn add_sources(build: &mut cc::Build, root: &str, files: &[&str]) {
+     let root = std::path::Path::new(root);
+     build.files(files.iter().map(|src| {
+@@ -10,6 +12,16 @@ fn add_sources(build: &mut cc::Build, root: &str, files: &[&str]) {
+ }
+ 
+ fn main() {
++    let target = env::var("TARGET").unwrap();
++    if !target.contains("android")
++        && pkg_config::Config::new()
++            .atleast_version("24.3.18")
++            .find("freetype2")
++            .is_ok()
++    {
++        return;
++    }
++
+     let mut build = cc::Build::new();
+ 
+     build

diff --git a/README.md b/README.md
deleted file mode 100644
index 1fb5c5a..0000000
--- a/README.md
+++ /dev/null
@@ -1,3 +0,0 @@
-# rust-freetype-sys
-
-The rust-freetype-sys package
\ No newline at end of file

diff --git a/freetype-sys-fix-metadata.diff b/freetype-sys-fix-metadata.diff
new file mode 100644
index 0000000..c51852d
--- /dev/null
+++ b/freetype-sys-fix-metadata.diff
@@ -0,0 +1,9 @@
+--- freetype-sys-0.17.0/Cargo.toml	1970-01-01T00:00:01+00:00
++++ freetype-sys-0.17.0/Cargo.toml	2023-03-01T16:07:49.054718+00:00
+@@ -30,3 +30,6 @@
+ 
+ [build-dependencies.cc]
+ version = "1"
++
++[build-dependencies.pkg-config]
++version = "0.3.11"

diff --git a/rust-freetype-sys.spec b/rust-freetype-sys.spec
index d4bc464..2248996 100644
--- a/rust-freetype-sys.spec
+++ b/rust-freetype-sys.spec
@@ -1,17 +1,23 @@
-# Generated by rust2rpm 23
+# Generated by rust2rpm 24
 %bcond_without check
 %global debug_package %{nil}
 
 %global crate freetype-sys
 
 Name:           rust-freetype-sys
-Version:        0.16.0
+Version:        0.17.0
 Release:        %autorelease
 Summary:        Low level binding for FreeType font library
 
 License:        MIT
 URL:            https://crates.io/crates/freetype-sys
 Source:         %{crates_source}
+# Manually created patch for downstream crate metadata changes
+# * add pkg-config build-dependency
+Patch:          freetype-sys-fix-metadata.diff
+# * patch to restore support for dynamically linking with system libfreetype:
+#   https://github.com/PistonDevelopers/freetype-sys/pull/109
+Patch:          109.patch
 
 BuildRequires:  rust-packaging >= 21
 
@@ -23,7 +29,7 @@ Low level binding for FreeType font library.}
 %package        devel
 Summary:        %{summary}
 BuildArch:      noarch
-Requires:       pkgconfig(freetype2) >= 18.5.12
+Requires:       pkgconfig(freetype2) >= 24.3.18
 
 %description    devel %{_description}
 
@@ -55,7 +61,7 @@ rm -vr freetype2
 
 %generate_buildrequires
 %cargo_generate_buildrequires
-echo 'pkgconfig(freetype2) >= 18.5.12'
+echo 'pkgconfig(freetype2) >= 24.3.18'
 
 %build
 %cargo_build

diff --git a/rust2rpm.conf b/rust2rpm.conf
index b4d8096..ed95ae5 100644
--- a/rust2rpm.conf
+++ b/rust2rpm.conf
@@ -1,5 +1,5 @@
 [DEFAULT]
 buildrequires =
-  pkgconfig(freetype2) >= 18.5.12
+  pkgconfig(freetype2) >= 24.3.18
 lib.requires =
-  pkgconfig(freetype2) >= 18.5.12
+  pkgconfig(freetype2) >= 24.3.18

diff --git a/sources b/sources
index 8e54a9b..2a22cd4 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (freetype-sys-0.16.0.crate) = dfa026562f65f2df8ed107843b7008fb1dd02db72deb269742180e83e1f5b6fb18d0604baac1311dcba6397356e31ba5d4466e4a1d3b4c0e916b639f7213b17c
+SHA512 (freetype-sys-0.17.0.crate) = 6b26cbba311ab9bad368313075543e649d1826ec8da0fa0e35ff505e43b0ed6e52c6fbb66b56283dfb1dc872fc5dc47abd3642abaa58aba14db9a329037f13cf

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

only message in thread, other threads:[~2026-09-25 10:33 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:33 [rpms/rust-freetype-sys] epel10: Update to version 0.17.0; Fixes RHBZ#1928338 Fabio Valentini

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