# # spec file for package pango (Version 1.26.1) # # Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. # # 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 http://bugs.opensuse.org/ # # norootforbuild Name: pango BuildRequires: gcc-c++ BuildRequires: cairo-devel BuildRequires: glib2-devel BuildRequires: gobject-introspection-devel BuildRequires: gtk-doc %if %suse_version >= 1100 BuildRequires: libthai-devel %endif License: LGPL v2.1 or later Group: System/Libraries # bug437293 %ifarch ppc64 Obsoletes: pango-64bit %endif # Version: 1.26.1 Release: 1 Summary: System for Layout and Rendering of Internationalised Text Source: ftp://ftp.gnome.org/pub/GNOME/sources/pango/1.18/%{name}-%{version}.tar.bz2 Source1: README.SuSE # PATCH-FIX-UPSTREAM pango64.patch bgo129534 -- needed for biarch. Unfortunately, this is not good enough for usptream. Patch0: pango64.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build PreReq: xorg-x11-libXrender xorg-x11-libX11 xorg-x11-libXdmcp %description Pango is a library for layout and rendering of text, with an emphasis on internationalisation. It forms the core of text and font handling in GTK+ 2.0. Authors: -------- Owen Taylor Changwoo Ryu Sivaraj Doddannan %if %suse_version >= 1100 %package module-thai-lang License: LGPL v2.1 or later Summary: System for Layout and Rendering of Internationalised Text Group: System/Libraries Provides: locale(pango:th_TH) %description module-thai-lang Pango is a library for layout and rendering of text, with an emphasis on internationalisation. It forms the core of text and font handling in GTK+ 2.0. Authors: -------- Owen Taylor Changwoo Ryu Sivaraj Doddannan %endif %package devel License: LGPL v2.1 or later Requires: %{name} = %{version} cairo-devel fontconfig-devel freetype2-devel glib2-devel %(rpm -q --whatprovides XFree86-devel --queryformat '%{NAME}') Summary: Include files and libraries mandatory for development Group: Development/Libraries/GNOME # bug437293 %ifarch ppc64 Obsoletes: pango-devel-64bit %endif Obsoletes: pango-doc <= %{version} Provides: pango-doc = %{version} %description devel This package contains all necessary include files and libraries needed to develop applications that require these. Authors: -------- Owen Taylor Changwoo Ryu Sivaraj Doddannan %prep %setup -q %if "%_lib" == "lib64" cp -a %{S:1} . %patch0 -p0 %endif %build %configure --disable-static --with-pic make %{?jobs:-j%jobs} %install %makeinstall touch $RPM_BUILD_ROOT%{_sysconfdir}/pango/pango.modules %if "%_lib" == "lib64" mv $RPM_BUILD_ROOT%{_bindir}/pango-querymodules\ $RPM_BUILD_ROOT%{_bindir}/pango-querymodules-64 mv $RPM_BUILD_ROOT%{_sysconfdir}/pango/pango.modules\ $RPM_BUILD_ROOT%{_sysconfdir}/pango/pango64.modules %endif rm $RPM_BUILD_ROOT%{_libdir}/*/*/*/*.*a rm $RPM_BUILD_ROOT%{_libdir}/*.la %clean rm -rf $RPM_BUILD_ROOT %post /sbin/ldconfig %if "%_lib" == "lib64" # it is not fatal if execution fails on 32bit systems LD_LIBRARY_PATH=usr/%{_lib}\ usr/bin/pango-querymodules-64\ > etc/pango/pango64.modules || echo "pango-querymodules-64 did not run properly in postin." %else LD_LIBRARY_PATH=usr/%{_lib}\ usr/bin/pango-querymodules\ > etc/pango/pango.modules %endif %postun /sbin/ldconfig %if "%_lib" == "lib64" if [ -x usr/bin/pango-querymodules-64 ] ; then # it is not fatal if execution fails on 32bit systems LD_LIBRARY_PATH=usr/%{_lib}\ usr/bin/pango-querymodules-64\ > etc/pango/pango64.modules || echo "pango-querymodules-64 did not run properly in postun." fi %else if [ -x usr/bin/pango-querymodules ] ; then LD_LIBRARY_PATH=usr/%{_lib}\ usr/bin/pango-querymodules\ > etc/pango/pango.modules fi %endif %if %suse_version >= 1100 %post module-thai-lang %if "%_lib" == "lib64" # it is not fatal if execution fails on 32bit systems LD_LIBRARY_PATH=usr/%{_lib}\ usr/bin/pango-querymodules-64\ > etc/pango/pango64.modules || echo "pango-querymodules-64 did not run properly in postin." %else LD_LIBRARY_PATH=usr/%{_lib}\ usr/bin/pango-querymodules\ > etc/pango/pango.modules %endif %postun module-thai-lang %if "%_lib" == "lib64" if [ -x usr/bin/pango-querymodules-64 ] ; then # it is not fatal if execution fails on 32bit systems LD_LIBRARY_PATH=usr/%{_lib}\ usr/bin/pango-querymodules-64\ > etc/pango/pango64.modules || echo "pango-querymodules-64 did not run properly in postun." fi %else if [ -x usr/bin/pango-querymodules ] ; then LD_LIBRARY_PATH=usr/%{_lib}\ usr/bin/pango-querymodules\ > etc/pango/pango.modules fi %endif %endif %files %defattr(-,root,root) %if "%_lib" == "lib64" %doc README AUTHORS COPYING ChangeLog README.SuSE %else %doc README AUTHORS COPYING ChangeLog %endif # evidently no longer exists # %doc examples/HELLO.utf8 %{_bindir}/pango-* %dir %{_libdir}/pango %dir %{_libdir}/pango/1.6.0 %dir %{_libdir}/pango/1.6.0/modules %{_libdir}/pango/1.6.0/modules/*.so %if %suse_version >= 1100 %exclude %{_libdir}/pango/1.6.0/modules/pango-thai-lang.so %endif %{_libdir}/lib*.so.* %{_libdir}/girepository-1.0/*.typelib %{_datadir}/gir-1.0/*.gir %doc %{_mandir}/man?/*.* %dir %{_sysconfdir}/pango %{_sysconfdir}/pango/pangox.aliases %if "%_lib" == "lib64" %ghost %{_sysconfdir}/pango/pango64.modules %else %ghost %{_sysconfdir}/pango/pango.modules %endif %if %suse_version >= 1100 %files module-thai-lang %defattr(-, root, root) %{_libdir}/pango/1.6.0/modules/pango-thai-lang.so %endif %files devel %defattr(-, root, root) %{_libdir}/lib*.so %{_libdir}/pkgconfig/*.pc %{_includedir}/pango-1.0 %{_datadir}/gtk-doc/html/pango %changelog