public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/freetype] f45: Add ftinspect as the optional freetype-qt-demos subpackage (Qt 6)
@ 2026-10-23 10:08 Marek Kasik
0 siblings, 0 replies; only message in thread
From: Marek Kasik @ 2026-10-23 10:08 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/freetype
Branch : f45
Commit : 486bbae53791cc006d9bb62e5fa115349df5d88d
Author : Marek Kasik <mkasik@redhat.com>
Date : 2026-10-23T12:06:00+02:00
Stats : +46/-1 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/freetype/c/486bbae53791cc006d9bb62e5fa115349df5d88d?branch=f45
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 86ae4a7..d2a0439 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.14.3
-Release: 2%{?dist}
+Release: 3%{?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
+%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
+* Tue Oct 13 2026 Infinality <infinality@infinality.net> - 2.14.3-3
+- Add ftinspect as the optional freetype-qt-demos subpackage (Qt 6)
+- Skip ftinspect when building with --without ftinspect or --with bootstrap
+
* Wed Jul 15 2026 Fedora Release Engineering <releng@fedoraproject.org> - 2.14.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-23 10:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-23 10:08 [rpms/freetype] f45: Add ftinspect as the optional freetype-qt-demos subpackage (Qt 6) Marek Kasik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox