public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Panu Matilainen <pmatilai@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/rpm] pmatilai-v6: - enable fontconfig provides generation
Date: Mon, 23 Nov 2026 09:25:32 GMT [thread overview]
Message-ID: <179542593231.1.2432883771962054164.rpms-rpm-0a87f6d73e7c@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/rpm
Branch : pmatilai-v6
Commit : 0a87f6d73e7c745065eead825620876952ff8165
Author : Panu Matilainen <pmatilai@fedoraproject.org>
Date : 2009-02-06T06:54:05+00:00
Stats : +45/-3 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/rpm/c/0a87f6d73e7c745065eead825620876952ff8165?branch=pmatilai-v6
Log:
- enable fontconfig provides generation
---
diff --git a/fontconfig.prov b/fontconfig.prov
new file mode 100755
index 0000000..79e0825
--- /dev/null
+++ b/fontconfig.prov
@@ -0,0 +1,37 @@
+#!/bin/bash
+#
+# Script to install in:
+# /usr/lib/rpm/redhat/find-provides.d
+#
+# Transform font files into RPM provides
+# Requires fontconfig >= 2.6.90
+#
+# Author: Behdad Esfahbod <behdad@redhat.com>
+# Based on other provides scripts from RPM
+#
+
+fcquery=/usr/bin/fc-query
+
+[ -x $fcquery ] || exit 0
+
+# filter out anything outside main fontconfig path
+grep /usr/share/fonts/ |
+xargs $fcquery --format '%{family}\n:lang=%{lang}\n' 2> /dev/null |
+while read line; do
+ case $line in
+ :lang=*)
+ langs=${line#:lang=}
+ OLDIFS=$IFS
+ IFS='|'
+ for lang in $langs; do
+ echo :lang=$lang
+ done
+ IFS=$OLDIFS
+ ;;
+ *)
+ echo "$line" | tr 'A-Z_' 'a-z-' | tr -d -c 'a-z0-9-\n'
+ ;;
+ esac
+done |
+sed 's/\(.*\)/Font(\1)/' |
+sort -u
diff --git a/rpm-4.6.0-extra-provides.patch b/rpm-4.6.0-extra-provides.patch
index 9f7f871..5ec72ce 100644
--- a/rpm-4.6.0-extra-provides.patch
+++ b/rpm-4.6.0-extra-provides.patch
@@ -75,7 +75,7 @@ diff -up rpm-4.6.0-rc4/macros.in.extra-prov rpm-4.6.0-rc4/macros.in
%__pkgconfig_provides @RPMCONFIGDIR@/pkgconfigdeps.sh --provides
%__pkgconfig_requires @RPMCONFIGDIR@/pkgconfigdeps.sh --requires
-+#%__fontconfig_provides /usr/lib/rpm/fontconfig.prov
++%__fontconfig_provides /usr/lib/rpm/fontconfig.prov
+%__desktop_provides /usr/lib/rpm/desktop-file.prov
+
#==============================================================================
diff --git a/rpm.spec b/rpm.spec
index 112fecf..3447291 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -18,7 +18,7 @@
Summary: The RPM package management system
Name: rpm
Version: %{rpmver}
-Release: 0.%{snapver}.4%{?dist}
+Release: 0.%{snapver}.5%{?dist}
Group: System Environment/Base
Url: http://www.rpm.org/
Source0: http://rpm.org/releases/testing/%{name}-%{srcver}.tar.bz2
@@ -26,6 +26,7 @@ Source0: http://rpm.org/releases/testing/%{name}-%{srcver}.tar.bz2
Source1: db-%{bdbver}.tar.gz
%endif
Source10: desktop-file.prov
+Source11: fontconfig.prov
Patch0: rpm-4.5.90-devel-autodep.patch
Patch1: rpm-4.5.90-pkgconfig-path.patch
@@ -217,7 +218,7 @@ install -m 755 scripts/rpm.daily ${RPM_BUILD_ROOT}%{_sysconfdir}/cron.daily/rpm
mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d
install -m 644 scripts/rpm.log ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d/rpm
-install -p -m 755 %{SOURCE10} ${RPM_BUILD_ROOT}%{rpmhome}/
+install -p -m 755 %{SOURCE10} %{SOURCE11} ${RPM_BUILD_ROOT}%{rpmhome}/
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/rpm
@@ -348,6 +349,7 @@ exit 0
%{rpmhome}/mkinstalldirs
%{rpmhome}/rpmdiff*
%{rpmhome}/desktop-file.prov
+%{rpmhome}/fontconfig.prov
%{rpmhome}/macros.perl
%{rpmhome}/macros.python
@@ -374,6 +376,9 @@ exit 0
%doc doc/librpm/html/*
%changelog
+* Fri Feb 06 2009 Panu Matilainen <pmatilai@redhat.com> - 4.6.0-0.rc4.5
+- enable fontconfig provides generation
+
* Thu Feb 05 2009 Panu Matilainen <pmatilai@redhat.com> - 4.6.0-0.rc4.4
- fixup rpm translation lookup to match Fedora specspo (#436941)
reply other threads:[~2026-11-23 9:25 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=179542593231.1.2432883771962054164.rpms-rpm-0a87f6d73e7c@fedoraproject.org \
--to=pmatilai@fedoraproject.org \
--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