public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Marek Kasik <mkasik@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/freetype] rawhide: Add ftinspect as the optional freetype-qt-demos subpackage (Qt 6)
Date: Fri, 23 Oct 2026 10:23:34 GMT	[thread overview]
Message-ID: <179275101402.1.11972973242296506091.rpms-freetype-09a3f369fc7e@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/freetype
            Branch : rawhide
            Commit : 09a3f369fc7e83cccae963d1572957dde503a5e2
            Author : Marek Kasik <mkasik@redhat.com>
            Date   : 2026-10-23T12:23:07+02:00
            Stats  : +46/-1 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/freetype/c/09a3f369fc7e83cccae963d1572957dde503a5e2?branch=rawhide

            Log:
            Add ftinspect as the optional freetype-qt-demos subpackage (Qt 6)

Skip ftinspect when building with --without ftinspect or --with bootstrap

---
diff --git a/freetype.spec b/freetype.spec
index d39beaf..daf1ddf 100644
--- a/freetype.spec
+++ b/freetype.spec
@@ -1,9 +1,10 @@
 %{!?with_xfree86:%define with_xfree86 1}
 %bcond_with bootstrap
+%bcond_without ftinspect
 
 Name: freetype
 Version: 2.15.0
-Release: 1%{?dist}
+Release: 2%{?dist}
 Summary: A free and portable font rendering engine
 License: (FTL OR GPL-2.0-or-later) AND BSD-3-Clause AND MIT AND MIT-Modern-Variant AND LicenseRef-Fedora-Public-Domain AND Zlib
 URL: http://www.freetype.org
@@ -30,6 +31,11 @@ BuildRequires: zlib-devel
 BuildRequires: bzip2-devel
 BuildRequires: brotli-devel
 BuildRequires: make
+%if %{with ftinspect} && %{without bootstrap}
+BuildRequires: cmake
+BuildRequires: gcc-c++
+BuildRequires: qt6-qtbase-devel >= 6.8
+%endif
 %if %{without bootstrap}
 BuildRequires: harfbuzz-devel
 %endif
@@ -57,6 +63,16 @@ engine, developed to provide advanced font support for a variety of
 platforms and environments.  The demos package includes a set of useful
 small utilities showing various capabilities of the FreeType library.
 
+%if %{with ftinspect} && %{without bootstrap}
+%package qt-demos
+Summary: Qt-based FreeType font inspection demo
+Requires: %{name} = %{version}-%{release}
+
+%description qt-demos
+The freetype-qt-demos package provides ftinspect, a Qt-based application
+for inspecting fonts and FreeType rendering behavior.
+%endif
+
 
 %package devel
 Summary: FreeType development libraries and header files
@@ -105,6 +121,19 @@ make TOP_DIR=".."
 popd
 %endif
 
+%if %{with ftinspect} && %{without bootstrap}
+pushd ft2demos-%{version}/src/ftinspect
+ft_root="$(realpath ../../..)"
+%cmake \
+  -DUSE_QT_VERSION=6 \
+  -DFREETYPE_INCLUDE_DIR_ft2build="${ft_root}/include" \
+  -DFREETYPE_INCLUDE_DIR_freetype2="${ft_root}/include" \
+  -DFREETYPE_LIBRARY="${ft_root}/objs/.libs/libfreetype.so" \
+  -DCMAKE_SKIP_RPATH=ON
+%cmake_build
+popd
+%endif
+
 %install
 
 %make_install gnulocaledir=$RPM_BUILD_ROOT%{_datadir}/locale
@@ -122,6 +151,12 @@ popd
 }
 %endif
 
+%if %{with ftinspect} && %{without bootstrap}
+install -D -p -m 0755 \
+  ft2demos-%{version}/src/ftinspect/%{_vpath_builddir}/ftinspect \
+  %{buildroot}%{_bindir}/ftinspect
+%endif
+
 # man pages for freetype-demos
 {
   for ftdemo in ftbench ftdump ftlint ftvalid ttdebug ; do
@@ -194,6 +229,12 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/*.{a,la}
 %endif
 %doc ChangeLog README
 
+%if %{with ftinspect} && %{without bootstrap}
+%files qt-demos
+%license LICENSE.TXT docs/FTL.TXT docs/GPLv2.TXT
+%{_bindir}/ftinspect
+%endif
+
 %files devel
 %doc docs/CHANGES docs/formats.txt docs/ft2faq.html
 %dir %{_includedir}/freetype2
@@ -209,6 +250,10 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/*.{a,la}
 %{_mandir}/man1/*
 
 %changelog
+* Fri Oct 23 2026 Infinality <infinality@infinality.net> - 2.15.0-2
+- Add ftinspect as the optional freetype-qt-demos subpackage (Qt 6)
+- Skip ftinspect when building with --without ftinspect or --with bootstrap
+
 * Sat Oct 17 2026 Michael Kuhn <suraia@fedoraproject.org> - 2.15.0-1
 - Update to 2.15.0
 - Resolves: #2549995

                 reply	other threads:[~2026-10-23 10:23 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=179275101402.1.11972973242296506091.rpms-freetype-09a3f369fc7e@fedoraproject.org \
    --to=mkasik@redhat.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