Author: rhughes

Update of /cvs/pkgs/rpms/fontpackages/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv30318

Modified Files:
        fontpackages.spec 
Added Files:
        fontconfig.prov macros.fontconfig 
Log Message:
* Tue Jan 27 2009 Richard Hughes <rhug...@redhat.com>
- 1.16-2
- Add fontconfig.prov and macros.fontconfig so that we can automatically
  generate font provides for packages at build time.
  This lets us do some cool things with PackageKit in the future.



--- NEW FILE fontconfig.prov ---
#!/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 <beh...@redhat.com>
# Based on other provides scripts from RPM
#

grep '^/usr/share/fonts/' |
xargs fc-query --format '%{family}\n:lang=%{lang}\n' |
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


--- NEW FILE macros.fontconfig ---
%__fontconfig_provides  /usr/lib/rpm/fontconfig.prov


Index: fontpackages.spec
===================================================================
RCS file: /cvs/pkgs/rpms/fontpackages/devel/fontpackages.spec,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- fontpackages.spec   21 Jan 2009 21:45:16 -0000      1.7
+++ fontpackages.spec   27 Jan 2009 09:49:32 -0000      1.8
@@ -4,7 +4,7 @@
 
 Name:    fontpackages
 Version: 1.16
-Release: 1%{?dist}
+Release: 2%{?dist}
 Summary: Common directory and macro definitions used by font packages
 
 Group:     Development/System
@@ -13,6 +13,8 @@
 License:   LGPLv3+
 URL:       http://fedoraproject.org/wiki/fontpackages/
 Source0:   
http://fedorahosted.org/releases/f/o/%{name}/%{name}-%{version}.tar.bz2
+Source1:   fontconfig.prov
+Source2:   macros.fontconfig
 BuildArch: noarch
 BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
 
@@ -69,6 +71,8 @@
 install -m 0644 -p spec-templates/*.spec  %{buildroot}%{spectemplatedir}
 install -m 0644 -p fontconfig-templates/* %{buildroot}%{ftcgtemplatedir}
 install -m 0644 -p macros/macros*         %{buildroot}%{rpmmacrodir}
+install -m 0755 -D -p %{SOURCE1}          
%{buildroot}%{_libdir}/rpm/fontconfig.prov
+install -m 0755 -D -p %{SOURCE2}          
%{buildroot}%{_sysconfdir}/rpm/macros.fontconfig
 
 cat <<EOF > %{name}-%{version}.files
 %defattr(0644,root,root,0755)
@@ -85,6 +89,8 @@
 %files filesystem -f %{name}-%{version}.files
 %defattr(0644,root,root,0755)
 %dir %{_datadir}/fontconfig
+%{_libdir}/rpm/fontconfig.prov
+%{_sysconfdir}/rpm/macros.fontconfig
 
 
 %files devel
@@ -97,6 +103,12 @@
 
 
 %changelog
+* Tue Jan 27 2009 Richard Hughes <rhug...@redhat.com>
+- 1.16-2
+- Add fontconfig.prov and macros.fontconfig so that we can automatically
+  generate font provides for packages at build time.
+  This lets us do some cool things with PackageKit in the future.
+
 * Wed Jan 22 2009 Nicolas Mailhot <nim at fedoraproject dot org>
 - 1.16-1
 

_______________________________________________
Fedora-fonts-bugs-list mailing list
Fedora-fonts-bugs-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-fonts-bugs-list

Reply via email to