[pango/f18] 1.31.1

Matthias Clasen mclasen at fedoraproject.org
Fri Sep 7 22:10:24 UTC 2012


commit a2e4cfc5b43f2caf35382dcaeff6bc90f309e479
Author: Matthias Clasen <mclasen at redhat.com>
Date:   Fri Sep 7 18:10:42 2012 -0400

    1.31.1

 .gitignore |    1 +
 pango.spec |  124 +++++++++--------------------------------------------------
 sources    |    2 +-
 3 files changed, 21 insertions(+), 106 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 2cbe589..8390962 100644
--- a/.gitignore
+++ b/.gitignore
@@ -8,3 +8,4 @@ pango-1.28.1.tar.bz2
 /pango-1.30.0.tar.xz
 /pango-1.30.1.tar.xz
 /pango-1.31.0.tar.xz
+/pango-1.31.1.tar.xz
diff --git a/pango.spec b/pango.spec
index 1851709..cb930fb 100644
--- a/pango.spec
+++ b/pango.spec
@@ -5,15 +5,16 @@
 %define fontconfig_version 2.6
 %define cairo_version 1.7.6
 %define libthai_version 0.1.9
+%define bin_version 1.8.0
 
 Summary: System for layout and rendering of internationalized text
 Name: pango
-Version: 1.31.0
-Release: 2%{?dist}
+Version: 1.31.1
+Release: 1%{?dist}
 License: LGPLv2+
 Group: System Environment/Libraries
 #VCS: git:git://git.gnome.org/pango
-Source: http://download.gnome.org/sources/pango/1.29/pango-%{version}.tar.xz
+Source: http://download.gnome.org/sources/pango/1.31/pango-%{version}.tar.xz
 URL: http://www.pango.org
 
 Requires: glib2 >= %{glib2_version}
@@ -27,11 +28,7 @@ BuildRequires: glib2-devel >= %{glib2_version}
 BuildRequires: pkgconfig >= %{pkgconfig_version}
 BuildRequires: freetype-devel >= %{freetype_version}
 BuildRequires: fontconfig-devel >= %{fontconfig_version}
-BuildRequires: libXrender-devel
-BuildRequires: libX11-devel
-BuildRequires: libXext-devel
 BuildRequires: libXft-devel
-BuildRequires: libXt-devel
 BuildRequires: cairo-devel >= %{cairo_version}
 BuildRequires: libthai-devel >= %{libthai_version}
 BuildRequires: harfbuzz-devel
@@ -40,9 +37,6 @@ BuildRequires: cairo-gobject-devel
 # Bootstrap requirements
 BuildRequires: gnome-common intltool gtk-doc
 
-# Look for pango.modules in an arch-specific directory
-Patch0: pango-lib64.patch
-
 %description
 Pango is a library for laying out and rendering of text, with an emphasis
 on internationalization. Pango can be used anywhere that text layout is needed,
@@ -58,16 +52,11 @@ quality text handling and graphics rendering.
 %package devel
 Summary: Development files for pango
 Group: Development/Libraries
-Requires: pango = %{version}-%{release}
-Requires: libXrender-devel
-Requires: libX11-devel
-Requires: libXext-devel
-Requires: libXft-devel
+Requires: pango%{?_isa} = %{version}-%{release}
 Requires: glib2-devel >= %{glib2_version}
 Requires: freetype-devel >= %{freetype_version}
 Requires: fontconfig-devel >= %{fontconfig_version}
 Requires: cairo-devel >= %{cairo_version}
-Requires: pkgconfig
 
 %description devel
 The pango-devel package includes the header files and developer documentation
@@ -76,45 +65,18 @@ for the pango package.
 %prep
 %setup -q -n pango-%{version}
 
-%patch0 -p1 -b .lib64
-
 %build
 
 # We try hard to not link to libstdc++
 (if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; CONFIGFLAGS=--enable-gtk-doc; fi;
  %configure $CONFIGFLAGS \
           --enable-doc-cross-references \
-  --with-included-modules=basic-fc )
+          --with-included-modules=basic-fc )
 make %{?_smp_mflags}
 
 
 %install
 
-# Deriving /etc/pango/$host location
-# NOTE: Duplicated below
-#
-# autoconf changes linux to linux-gnu
-case "%{_host}" in
-  *linux) host="%{_host}-gnu"
-  ;;
-  *) host="%{_host}"
-  ;;
-esac
-
-# autoconf uses powerpc not ppc
-host=`echo $host | sed "s/^ppc/powerpc/"`
-# autoconf uses ibm-linux not redhat-linux on s390x
-host=`echo $host | sed "s/^s390\(x\)*-redhat/s390\1-ibm/"`
-
-# Make sure that the host value that is passed to the compile
-# is the same as the host that we're using in the spec file
-#
-compile_host=`grep 'host_triplet =' pango/Makefile | sed "s/.* = //"`
-
-if test "x$compile_host" != "x$host" ; then
-  echo 1>&2 "Host mismatch: compile='$compile_host', spec file='$host'" && exit 1
-fi
-
 make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
 
 # Remove files that should not be packaged
@@ -131,73 +93,21 @@ fi
 # We need to have separate 32-bit and 64-bit pango-querymodules binaries
 # for places where we have two copies of the Pango libraries installed.
 # (we might have x86_64 and i686 packages on the same system, for example.)
-case "$host" in
-  alpha*|ia64*|powerpc64*|s390x*|sparc64*|x86_64*)
-   mv $RPM_BUILD_ROOT%{_bindir}/pango-querymodules $RPM_BUILD_ROOT%{_bindir}/pango-querymodules-64
-   ;;
-  *)
-   mv $RPM_BUILD_ROOT%{_bindir}/pango-querymodules $RPM_BUILD_ROOT%{_bindir}/pango-querymodules-32
-   ;;
-esac
-
-mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/pango/$host
-touch $RPM_BUILD_ROOT%{_sysconfdir}/pango/$host/pango.modules
-
-#
-# We need the substitution of $host so we use an external
-# file list
-#
-echo %dir %{_sysconfdir}/pango/$host > modules.files
-echo %ghost %{_sysconfdir}/pango/$host/pango.modules >> modules.files
+mv $RPM_BUILD_ROOT%{_bindir}/pango-querymodules $RPM_BUILD_ROOT%{_bindir}/pango-querymodules-%{__isa_bits}
+
+touch $RPM_BUILD_ROOT%{_libdir}/pango/%{bin_version}/modules.cache
 
 %post
 /sbin/ldconfig
-
-umask 0022
-# Deriving /etc/pango/$host location
-#
-# autoconf changes linux to linux-gnu
-case "%{_host}" in
-  *linux) host="%{_host}-gnu"
-  ;;
-  *) host="%{_host}"
-  ;;
-esac
-
-# autoconf uses powerpc not ppc
-host=`echo $host | sed "s/^ppc/powerpc/"`
-# autoconf uses ibm-linux not redhat-linux on s390x
-host=`echo $host | sed "s/^s390\(x\)*-redhat/s390\1-ibm/"`
-
-%{_bindir}/pango-querymodules-%{__isa_bits} > %{_sysconfdir}/pango/$host/pango.modules || :
+/usr/bin/pango-querymodules-%{__isa_bits} --update-cache || :
 
 %postun
 /sbin/ldconfig
-
 if test $1 -gt 0; then
-
-umask 0022
-# Deriving /etc/pango/$host location
-#
-# autoconf changes linux to linux-gnu
-case "%{_host}" in
-  *linux) host="%{_host}-gnu"
-  ;;
-  *) host="%{_host}"
-  ;;
-esac
-
-# autoconf uses powerpc not ppc
-host=`echo $host | sed "s/^ppc/powerpc/"`
-# autoconf uses ibm-linux not redhat-linux (s390x)
-host=`echo $host | sed "s/^s390\(x\)*-redhat/s390\1-ibm/"`
-
-%{_bindir}/pango-querymodules-%{__isa_bits} > %{_sysconfdir}/pango/$host/pango.modules || :
-
+  /usr/bin/pango-querymodules-%{__isa_bits} --update-cache || :
 fi
 
-%files -f modules.files
-%defattr(-, root, root,-)
+%files
 %doc README AUTHORS COPYING NEWS
 %doc pango-view/HELLO.txt
 %{_libdir}/libpango*-*.so.*
@@ -206,7 +116,7 @@ fi
 %{_mandir}/man1/pango-view.1.gz
 %{_mandir}/man1/pango-querymodules.1.gz
 %{_libdir}/pango
-%dir %{_sysconfdir}/pango
+%ghost %{_libdir}/pango/%{bin_version}/modules.cache
 %{_libdir}/girepository-1.0/Pango-1.0.typelib
 %{_libdir}/girepository-1.0/PangoCairo-1.0.typelib
 %{_libdir}/girepository-1.0/PangoFT2-1.0.typelib
@@ -214,7 +124,6 @@ fi
 
 
 %files devel
-%defattr(-, root, root,-)
 %{_libdir}/libpango*.so
 %{_includedir}/*
 %{_libdir}/pkgconfig/*
@@ -226,8 +135,13 @@ fi
 
 
 %changelog
+* Fri Sep  7 2012 Matthias Clasen <mclasen at redhat.com> - 1.31.1-1
+- Update to 1.31.1
+- Move module cache file to /usr/lib64/pango/1.8.0/modules.cache
+- No more /etc/pango
+
 * Wed Aug 22 2012 Parag Nemade <paragn AT fedoraproject DOT org> - 1.31.0-2
-- Add missing BR:harfbuzz-devel 
+- Add missing BR:harfbuzz-devel
 - Remove file pangox.aliases as pangox support is now removed
 
 * Tue Aug 21 2012 Richard Hughes <hughsient at gmail.com> - 1.31.0-1
diff --git a/sources b/sources
index 0e5f3c7..b220ef3 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-660dbd93aa004a3fbe64c08da207e654  pango-1.31.0.tar.xz
+335f22d91a9511ad86be216cb43f45f8  pango-1.31.1.tar.xz


More information about the fonts-bugs mailing list