- update to 2.16.0:
* Fix misleading-indentation warning * Deal with glob string properly * Allow comma as a delimiter in postscriptname and ignore it on matching * Refactor exclusive language logic into separate file * Use proper postscriptname for named instance if any * Remove redundant leaf assignment in fcfreetype.c * Ensure lock/unlock symmetry * Ensure config is locked during retry in FcConfigReference * Unlock on allocation failure in FcCacheInsert * Fix FcSerialize undefined behavior with null pointer usage * Fix undefined behavior issue on qsort call * Add cop.orth for Coptic language * Add got.orth for Gothic language * Fix a memory leak in fc-list/fc-query/fc-scan * mark _FcPatternIter as may_alias * Accept integer for pixelsize * Improve hinting detection for fonthashint object * Add FcConfigSetFontSetFilter * Fix some code found by SAST * Set FcTypeVoid if no valid types to convert * Fix a memory leak in _get_real_paths_from_prefix * Fix double slashes in path * More information when no writable cache directories * Fix test case for reproducible builds * Fix invalid escape character \s * Sort out bitmap related config files * Clean up .uuid files with fc-cache -f too - add fontconfig-autoconf269.patch to start leap build OBS-URL: https://build.opensuse.org/package/show/M17N/fontconfig?expand=0&rev=178
This commit is contained in:
commit
f949f76bdf
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
10
baselibs.conf
Normal file
10
baselibs.conf
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
fontconfig
|
||||||
|
+/usr/bin/fc-cache -> /usr/bin/fc-cache<extension>
|
||||||
|
+/usr/bin/fc-cat -> /usr/bin/fc-cat<extension>
|
||||||
|
+/usr/bin/fc-list -> /usr/bin/fc-list<extension>
|
||||||
|
+/usr/bin/fc-match -> /usr/bin/fc-match<extension>
|
||||||
|
libfontconfig1
|
||||||
|
requires "fontconfig"
|
||||||
|
fontconfig-devel
|
||||||
|
requires -libfontconfig-<targettype>
|
||||||
|
requires "libfontconfig1-<targettype> = <version>"
|
BIN
fontconfig-2.15.0.tar.xz
(Stored with Git LFS)
Normal file
BIN
fontconfig-2.15.0.tar.xz
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
fontconfig-2.16.0.tar.xz
(Stored with Git LFS)
Normal file
BIN
fontconfig-2.16.0.tar.xz
(Stored with Git LFS)
Normal file
Binary file not shown.
22
fontconfig-autoconf269.patch
Normal file
22
fontconfig-autoconf269.patch
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
Index: fontconfig-2.16.0/configure.ac
|
||||||
|
===================================================================
|
||||||
|
--- fontconfig-2.16.0.orig/configure.ac
|
||||||
|
+++ fontconfig-2.16.0/configure.ac
|
||||||
|
@@ -23,7 +23,7 @@ dnl PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
dnl
|
||||||
|
dnl Process this file with autoconf to create configure.
|
||||||
|
|
||||||
|
-AC_PREREQ([2.71])
|
||||||
|
+AC_PREREQ([2.69])
|
||||||
|
|
||||||
|
dnl ==========================================================================
|
||||||
|
dnl Versioning
|
||||||
|
@@ -163,7 +163,7 @@ dnl ====================================
|
||||||
|
AC_HEADER_DIRENT
|
||||||
|
# Autoupdate added the next two lines to ensure that your configure
|
||||||
|
# script's behavior did not change. They are probably safe to remove.
|
||||||
|
-AC_CHECK_INCLUDES_DEFAULT
|
||||||
|
+m4_version_prereq([2.70], [AC_CHECK_INCLUDES_DEFAULT], [AC_HEADER_STDC])
|
||||||
|
AC_PROG_EGREP
|
||||||
|
|
||||||
|
AC_CHECK_HEADERS([dirent.h fcntl.h stdlib.h string.h unistd.h sys/statvfs.h sys/vfs.h sys/statfs.h sys/param.h sys/mount.h])
|
2143
fontconfig.changes
Normal file
2143
fontconfig.changes
Normal file
File diff suppressed because it is too large
Load Diff
185
fontconfig.spec
Normal file
185
fontconfig.spec
Normal file
@ -0,0 +1,185 @@
|
|||||||
|
#
|
||||||
|
# spec file for package fontconfig
|
||||||
|
#
|
||||||
|
# Copyright (c) 2025 SUSE LLC
|
||||||
|
#
|
||||||
|
# All modifications and additions to the file contributed by third parties
|
||||||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
|
# upon. The license for this file, and modifications and additions to the
|
||||||
|
# file, is the same license as for the pristine package itself (unless the
|
||||||
|
# license for the pristine package is not an Open Source License, in which
|
||||||
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
Name: fontconfig
|
||||||
|
%define lname libfontconfig1
|
||||||
|
Version: 2.16.0
|
||||||
|
Release: 0
|
||||||
|
Summary: Library for Font Configuration
|
||||||
|
License: MIT
|
||||||
|
Group: System/Libraries
|
||||||
|
URL: https://www.freedesktop.org/wiki/Software/fontconfig/
|
||||||
|
Source0: https://www.freedesktop.org/software/fontconfig/release/fontconfig-%{version}.tar.xz
|
||||||
|
Source4: baselibs.conf
|
||||||
|
Source5: local.conf
|
||||||
|
Patch1: skip-network-test.patch
|
||||||
|
Patch2: fontconfig-autoconf269.patch
|
||||||
|
BuildRequires: automake >= 1.11
|
||||||
|
BuildRequires: gperf
|
||||||
|
BuildRequires: libtool
|
||||||
|
BuildRequires: pkgconfig
|
||||||
|
BuildRequires: python3-base
|
||||||
|
BuildRequires: pkgconfig(expat)
|
||||||
|
BuildRequires: pkgconfig(freetype2)
|
||||||
|
BuildRequires: pkgconfig(json-c)
|
||||||
|
BuildRequires: pkgconfig(uuid)
|
||||||
|
Provides: ipa-fonts-config = 003.02
|
||||||
|
Obsoletes: ipa-fonts-config < 003.02
|
||||||
|
Provides: IPA-fonts-config = 003.02
|
||||||
|
Obsoletes: IPA-fonts-config < 003.02
|
||||||
|
|
||||||
|
%description
|
||||||
|
Fontconfig is a library for configuring and customizing font access. It
|
||||||
|
contains two essential modules: the configuration module, which builds
|
||||||
|
an internal configuration from XML files, and the matching module,
|
||||||
|
which accepts font patterns and returns the nearest matching font.
|
||||||
|
|
||||||
|
%lang_package
|
||||||
|
|
||||||
|
%package -n %{lname}
|
||||||
|
Summary: Library for font configuration
|
||||||
|
Group: System/Libraries
|
||||||
|
Requires: %{name}
|
||||||
|
|
||||||
|
%description -n %{lname}
|
||||||
|
Fontconfig is a library for configuring and customizing font access. It
|
||||||
|
contains two essential modules: the configuration module, which builds
|
||||||
|
an internal configuration from XML files, and the matching module,
|
||||||
|
which accepts font patterns and returns the nearest matching font.
|
||||||
|
|
||||||
|
%package doc
|
||||||
|
Summary: Documentation for fontconfig
|
||||||
|
Group: Documentation/Other
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description doc
|
||||||
|
Extended documentation for the fontconfig library.
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: Header files for fontconfig
|
||||||
|
Group: Development/Libraries/C and C++
|
||||||
|
Requires: %{lname} = %{version}
|
||||||
|
Requires: gettext-devel
|
||||||
|
Requires: glibc-devel
|
||||||
|
Requires: pkgconfig(freetype2)
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
This package countains all include files, libraries, configuration
|
||||||
|
files needed for compiling applications which use the fontconfig
|
||||||
|
library.
|
||||||
|
|
||||||
|
%package devel-doc
|
||||||
|
Summary: Developer documentation for libfontconfig
|
||||||
|
Group: Documentation/Other
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description devel-doc
|
||||||
|
HTML documentation and manual pages for developers using the
|
||||||
|
fontconfig library.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -p1
|
||||||
|
# use suse-specific doc path:
|
||||||
|
find -name \*.1 -o -name \*.sgml -exec sed -i -e 's/usr\/share\/doc\/fontconfig/usr\/share\/doc\/packages\/fontconfig/g' {} +
|
||||||
|
autoreconf -fi
|
||||||
|
|
||||||
|
%build
|
||||||
|
# We don't want to rebuild the docs, but we want to install the included ones.
|
||||||
|
export HASDOCBOOK=no
|
||||||
|
%configure \
|
||||||
|
--docdir=%{_docdir}/%{name} \
|
||||||
|
--disable-silent-rules \
|
||||||
|
--with-arch=%{_host_cpu} \
|
||||||
|
--disable-static \
|
||||||
|
--disable-libxml2 \
|
||||||
|
--with-add-fonts=%{_prefix}/X11R6/lib/X11/fonts,/opt/kde3/share/fonts,%{_prefix}/local/share/fonts
|
||||||
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
|
%check
|
||||||
|
export MALLOC_CHECK_=2
|
||||||
|
make %{?_smp_mflags} check
|
||||||
|
unset MALLOC_CHECK_
|
||||||
|
|
||||||
|
%install
|
||||||
|
%make_install
|
||||||
|
find %{buildroot} -type f -name "*.la" -delete -print
|
||||||
|
# package /etc/fonts/conf.avail for compatibility reasons
|
||||||
|
mkdir %{buildroot}%{_sysconfdir}/fonts/conf.avail
|
||||||
|
install -m 644 conf.d/README %{buildroot}%{_sysconfdir}/fonts/conf.d
|
||||||
|
install -m 644 %{SOURCE5} %{buildroot}%{_sysconfdir}/fonts
|
||||||
|
# tune links in conf.d
|
||||||
|
pushd %{buildroot}%{_sysconfdir}/fonts/conf.d
|
||||||
|
mv 50-user.conf 56-user.conf
|
||||||
|
rm 51-local.conf
|
||||||
|
ln -s ../local.conf 55-local.conf
|
||||||
|
# leave place for 60-family-prefer.conf from fonts-config
|
||||||
|
mv 60-latin.conf 61-latin.conf
|
||||||
|
popd
|
||||||
|
mkdir -p %{buildroot}/%{_docdir}/%{name}
|
||||||
|
%find_lang %{name}
|
||||||
|
%find_lang %{name}-conf
|
||||||
|
|
||||||
|
%post -n %{lname} -p /sbin/ldconfig
|
||||||
|
%postun -n %{lname} -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%files
|
||||||
|
%license COPYING
|
||||||
|
%{_bindir}/*
|
||||||
|
%dir %{_sysconfdir}/fonts
|
||||||
|
%dir %{_sysconfdir}/fonts/conf.d
|
||||||
|
# packaging /etc/fonts/conf.avail for compatibility reasons
|
||||||
|
%dir %{_sysconfdir}/fonts/conf.avail
|
||||||
|
%config %{_sysconfdir}/fonts/fonts.conf
|
||||||
|
%config %{_sysconfdir}/fonts/conf.d/*.conf
|
||||||
|
%config(noreplace) %{_sysconfdir}/fonts/local.conf
|
||||||
|
%{_sysconfdir}/fonts/conf.d/README
|
||||||
|
%dir %{_datadir}/%{name}
|
||||||
|
%dir %{_datadir}/%{name}/conf.avail
|
||||||
|
%{_datadir}/%{name}/conf.avail/*.conf
|
||||||
|
%dir %{_datadir}/xml/%{name}
|
||||||
|
%{_datadir}/xml/%{name}/fonts.dtd
|
||||||
|
%dir %{_localstatedir}/cache/fontconfig/
|
||||||
|
%{_mandir}/man5/fonts-conf.5%{ext_man}
|
||||||
|
%{_mandir}/man1/*
|
||||||
|
|
||||||
|
%files lang -f %{name}.lang -f %{name}-conf.lang
|
||||||
|
|
||||||
|
%files doc
|
||||||
|
%doc AUTHORS NEWS README.md
|
||||||
|
%dir %{_docdir}/%{name}
|
||||||
|
%{_docdir}/%{name}/fontconfig-user.html
|
||||||
|
%{_docdir}/%{name}/fontconfig-user.pdf
|
||||||
|
%{_docdir}/%{name}/fontconfig-user.txt
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%{_libdir}/pkgconfig/fontconfig.pc
|
||||||
|
%{_libdir}/libfontconfig.so
|
||||||
|
%{_includedir}/fontconfig/
|
||||||
|
%dir %{_datadir}/gettext/its/
|
||||||
|
%{_datadir}/gettext/its/fontconfig.*
|
||||||
|
|
||||||
|
%files devel-doc
|
||||||
|
%{_docdir}/%{name}/fontconfig-devel.html
|
||||||
|
%{_docdir}/%{name}/fontconfig-devel.pdf
|
||||||
|
%{_docdir}/%{name}/fontconfig-devel.txt
|
||||||
|
%{_mandir}/man3/*
|
||||||
|
|
||||||
|
%files -n %{lname}
|
||||||
|
%{_libdir}/libfontconfig.so.*
|
||||||
|
|
||||||
|
%changelog
|
6
local.conf
Normal file
6
local.conf
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0"?>
|
||||||
|
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
|
||||||
|
<!-- /etc/fonts/local.conf file for local customizations -->
|
||||||
|
<fontconfig>
|
||||||
|
|
||||||
|
</fontconfig>
|
13
skip-network-test.patch
Normal file
13
skip-network-test.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
Index: fontconfig-2.14.0/test/Makefile.am
|
||||||
|
===================================================================
|
||||||
|
--- fontconfig-2.14.0.orig/test/Makefile.am
|
||||||
|
+++ fontconfig-2.14.0/test/Makefile.am
|
||||||
|
@@ -69,8 +69,6 @@ test_pthread_LDADD = $(top_builddir)/src
|
||||||
|
# to meaningfully test anything, and we are not installed yet.
|
||||||
|
#TESTS += test-pthread
|
||||||
|
|
||||||
|
-check_PROGRAMS += test-crbug1004254
|
||||||
|
-test_crbug1004254_LDADD = $(top_builddir)/src/libfontconfig.la
|
||||||
|
# Disabling this for the same reason as above but trying to run in run-test.sh.
|
||||||
|
#TESTS += test-crbug1004254
|
||||||
|
endif
|
Loading…
x
Reference in New Issue
Block a user