diff --git a/fontconfig-remove-debug-output.patch b/fontconfig-remove-debug-output.patch new file mode 100644 index 0000000..20f6ec3 --- /dev/null +++ b/fontconfig-remove-debug-output.patch @@ -0,0 +1,23 @@ +From b56207a069be2574df455ede0a6ab61f44d5ca2b Mon Sep 17 00:00:00 2001 +From: Behdad Esfahbod +Date: Tue, 12 Sep 2017 13:25:46 -0400 +Subject: [PATCH] Remove stray printf() + +Ouch. +--- + fc-query/fc-query.c | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/fc-query/fc-query.c b/fc-query/fc-query.c +index 842a8b6..6cd5abd 100644 +--- a/fc-query/fc-query.c ++++ b/fc-query/fc-query.c +@@ -170,7 +170,6 @@ main (int argc, char **argv) + FcPattern *pat; + + id = ((instance_num << 16) + face_num); +- printf("id %d\n", id); + if (FT_New_Face (ftLibrary, argv[i], id, &face)) + break; + num_faces = face->num_faces; + diff --git a/fontconfig.changes b/fontconfig.changes index f328ee0..2c735f4 100644 --- a/fontconfig.changes +++ b/fontconfig.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Jan 15 12:47:39 UTC 2018 - pgajdos@suse.com + +- fc-query: remove redundant debug output + + fontconfig-remove-debug-output.patch + ------------------------------------------------------------------- Wed Nov 8 21:43:21 UTC 2017 - aavindraa@gmail.com diff --git a/fontconfig.spec b/fontconfig.spec index 14297c8..907c11c 100644 --- a/fontconfig.spec +++ b/fontconfig.spec @@ -1,7 +1,7 @@ # # spec file for package fontconfig # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -26,6 +26,7 @@ Url: http://fontconfig.org/ Source0: http://fontconfig.org/release/%{name}-%{version}.tar.bz2 Source4: baselibs.conf Source5: local.conf +Patch0: fontconfig-remove-debug-output.patch BuildRequires: automake >= 1.11 BuildRequires: gperf BuildRequires: libtool @@ -65,6 +66,7 @@ accepts font patterns and returns the nearest matching font. %prep %setup -q +%patch0 -p1 # use suse-specific doc path: find -name \*.1 -o -name \*.sgml | xargs sed -i -e 's/usr\/share\/doc\/fontconfig/usr\/share\/doc\/packages\/fontconfig/g'