2007-01-05 16:49:43 +01:00
|
|
|
#
|
2010-07-21 15:26:14 +02:00
|
|
|
# spec file for package pango (Version 1.28.1)
|
2007-01-05 16:49:43 +01:00
|
|
|
#
|
2010-03-31 02:05:56 +02:00
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-05 16:49:43 +01:00
|
|
|
#
|
2008-08-28 21:52:06 +02:00
|
|
|
# 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.
|
|
|
|
|
2007-01-05 16:49:43 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-03-03 18:13:35 +01:00
|
|
|
|
2007-01-05 16:49:43 +01:00
|
|
|
Name: pango
|
2008-10-06 17:20:31 +02:00
|
|
|
BuildRequires: gcc-c++
|
2008-09-13 13:41:20 +02:00
|
|
|
BuildRequires: cairo-devel
|
|
|
|
BuildRequires: glib2-devel
|
2009-07-31 20:42:37 +02:00
|
|
|
BuildRequires: gobject-introspection-devel
|
2008-09-13 13:41:20 +02:00
|
|
|
BuildRequires: gtk-doc
|
2010-07-21 15:26:14 +02:00
|
|
|
BuildRequires: pkg-config
|
2008-08-02 02:13:57 +02:00
|
|
|
%if %suse_version >= 1100
|
|
|
|
BuildRequires: libthai-devel
|
|
|
|
%endif
|
2009-12-15 14:09:28 +01:00
|
|
|
License: LGPLv2.1+
|
2007-01-05 16:49:43 +01:00
|
|
|
Group: System/Libraries
|
2009-01-09 01:43:59 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: pango-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2010-07-21 15:26:14 +02:00
|
|
|
Version: 1.28.1
|
2009-02-08 01:15:00 +01:00
|
|
|
Release: 1
|
2007-01-05 16:49:43 +01:00
|
|
|
Summary: System for Layout and Rendering of Internationalised Text
|
2008-08-28 21:52:06 +02:00
|
|
|
Source: ftp://ftp.gnome.org/pub/GNOME/sources/pango/1.18/%{name}-%{version}.tar.bz2
|
2007-12-22 19:34:09 +01:00
|
|
|
Source1: README.SuSE
|
2009-12-17 11:45:12 +01:00
|
|
|
Source99: baselibs.conf
|
2008-07-25 04:17:43 +02:00
|
|
|
# PATCH-FIX-UPSTREAM pango64.patch bgo129534 -- needed for biarch. Unfortunately, this is not good enough for usptream.
|
2007-12-22 19:34:09 +01:00
|
|
|
Patch0: pango64.patch
|
2007-01-05 16:49:43 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2009-03-26 17:31:27 +01:00
|
|
|
PreReq: xorg-x11-libXrender xorg-x11-libX11 xorg-x11-libXdmcp
|
2007-01-05 16:49:43 +01:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-05-22 01:40:29 +02:00
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Owen Taylor <otaylor@redhat.com>
|
|
|
|
Changwoo Ryu <cwryu@adam.kaist.ac.kr>
|
|
|
|
Sivaraj Doddannan <sivaraj@intelligroup.com>
|
|
|
|
|
2008-08-02 02:13:57 +02:00
|
|
|
%if %suse_version >= 1100
|
|
|
|
|
2008-05-22 01:40:29 +02:00
|
|
|
%package module-thai-lang
|
2009-12-15 14:09:28 +01:00
|
|
|
License: LGPLv2.1+
|
2008-05-22 01:40:29 +02:00
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-01-05 16:49:43 +01:00
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Owen Taylor <otaylor@redhat.com>
|
|
|
|
Changwoo Ryu <cwryu@adam.kaist.ac.kr>
|
|
|
|
Sivaraj Doddannan <sivaraj@intelligroup.com>
|
|
|
|
|
2008-08-02 02:13:57 +02:00
|
|
|
%endif
|
|
|
|
|
2007-01-05 16:49:43 +01:00
|
|
|
%package devel
|
2009-12-15 14:09:28 +01:00
|
|
|
License: LGPLv2.1+
|
2009-03-26 17:31:27 +01:00
|
|
|
Requires: %{name} = %{version} cairo-devel fontconfig-devel freetype2-devel glib2-devel %(rpm -q --whatprovides XFree86-devel --queryformat '%{NAME}')
|
2007-08-30 23:28:21 +02:00
|
|
|
Summary: Include files and libraries mandatory for development
|
2007-01-05 16:49:43 +01:00
|
|
|
Group: Development/Libraries/GNOME
|
2009-01-09 01:43:59 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: pango-devel-64bit
|
|
|
|
%endif
|
2009-03-26 17:31:27 +01:00
|
|
|
Obsoletes: pango-doc <= %{version}
|
|
|
|
Provides: pango-doc = %{version}
|
2007-01-05 16:49:43 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains all necessary include files and libraries needed
|
|
|
|
to develop applications that require these.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Owen Taylor <otaylor@redhat.com>
|
|
|
|
Changwoo Ryu <cwryu@adam.kaist.ac.kr>
|
|
|
|
Sivaraj Doddannan <sivaraj@intelligroup.com>
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2007-12-22 19:34:09 +01:00
|
|
|
%if "%_lib" == "lib64"
|
|
|
|
cp -a %{S:1} .
|
2007-12-18 18:54:24 +01:00
|
|
|
%patch0 -p0
|
2007-12-22 19:34:09 +01:00
|
|
|
%endif
|
2007-01-05 16:49:43 +01:00
|
|
|
|
|
|
|
%build
|
2008-07-08 23:14:24 +02:00
|
|
|
%configure --disable-static --with-pic
|
2007-01-05 16:49:43 +01:00
|
|
|
make %{?jobs:-j%jobs}
|
|
|
|
|
|
|
|
%install
|
2009-03-26 17:31:27 +01:00
|
|
|
%makeinstall
|
2007-01-05 16:49:43 +01:00
|
|
|
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
|
2007-02-19 23:39:03 +01:00
|
|
|
rm $RPM_BUILD_ROOT%{_libdir}/*.la
|
2007-01-05 16:49:43 +01:00
|
|
|
|
|
|
|
%clean
|
2007-12-18 18:54:24 +01:00
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2007-01-05 16:49:43 +01:00
|
|
|
|
|
|
|
%post
|
2007-12-22 19:34:09 +01:00
|
|
|
/sbin/ldconfig
|
2007-01-05 16:49:43 +01:00
|
|
|
%if "%_lib" == "lib64"
|
2008-05-08 00:31:59 +02:00
|
|
|
# it is not fatal if execution fails on 32bit systems
|
2007-01-18 01:42:18 +01:00
|
|
|
LD_LIBRARY_PATH=usr/%{_lib}\
|
|
|
|
usr/bin/pango-querymodules-64\
|
2008-05-08 00:31:59 +02:00
|
|
|
> etc/pango/pango64.modules || echo "pango-querymodules-64 did not run properly in postin."
|
2007-01-05 16:49:43 +01:00
|
|
|
%else
|
2007-01-18 01:42:18 +01:00
|
|
|
LD_LIBRARY_PATH=usr/%{_lib}\
|
|
|
|
usr/bin/pango-querymodules\
|
2007-01-05 16:49:43 +01:00
|
|
|
> etc/pango/pango.modules
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%postun
|
2007-12-18 18:54:24 +01:00
|
|
|
/sbin/ldconfig
|
2007-01-05 16:49:43 +01:00
|
|
|
%if "%_lib" == "lib64"
|
|
|
|
if [ -x usr/bin/pango-querymodules-64 ] ; then
|
2008-05-08 00:31:59 +02:00
|
|
|
# it is not fatal if execution fails on 32bit systems
|
2007-01-18 01:42:18 +01:00
|
|
|
LD_LIBRARY_PATH=usr/%{_lib}\
|
|
|
|
usr/bin/pango-querymodules-64\
|
2008-05-08 00:31:59 +02:00
|
|
|
> etc/pango/pango64.modules || echo "pango-querymodules-64 did not run properly in postun."
|
2007-01-05 16:49:43 +01:00
|
|
|
fi
|
|
|
|
%else
|
|
|
|
if [ -x usr/bin/pango-querymodules ] ; then
|
2007-01-18 01:42:18 +01:00
|
|
|
LD_LIBRARY_PATH=usr/%{_lib}\
|
|
|
|
usr/bin/pango-querymodules\
|
2007-01-05 16:49:43 +01:00
|
|
|
> etc/pango/pango.modules
|
|
|
|
fi
|
|
|
|
%endif
|
2008-10-12 00:27:23 +02:00
|
|
|
%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
|
2007-01-05 16:49:43 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%if "%_lib" == "lib64"
|
2007-12-22 19:34:09 +01:00
|
|
|
%doc README AUTHORS COPYING ChangeLog README.SuSE
|
2007-01-05 16:49:43 +01:00
|
|
|
%else
|
|
|
|
%doc README AUTHORS COPYING ChangeLog
|
|
|
|
%endif
|
2007-02-19 23:39:03 +01:00
|
|
|
# evidently no longer exists
|
|
|
|
# %doc examples/HELLO.utf8
|
2007-01-05 16:49:43 +01:00
|
|
|
%{_bindir}/pango-*
|
|
|
|
%dir %{_libdir}/pango
|
2007-02-19 23:39:03 +01:00
|
|
|
%dir %{_libdir}/pango/1.6.0
|
|
|
|
%dir %{_libdir}/pango/1.6.0/modules
|
|
|
|
%{_libdir}/pango/1.6.0/modules/*.so
|
2008-08-02 02:13:57 +02:00
|
|
|
%if %suse_version >= 1100
|
2008-05-22 01:40:29 +02:00
|
|
|
%exclude %{_libdir}/pango/1.6.0/modules/pango-thai-lang.so
|
2008-08-02 02:13:57 +02:00
|
|
|
%endif
|
2007-01-05 16:49:43 +01:00
|
|
|
%{_libdir}/lib*.so.*
|
2009-09-05 00:48:17 +02:00
|
|
|
%{_libdir}/girepository-1.0/*.typelib
|
|
|
|
%{_datadir}/gir-1.0/*.gir
|
2007-01-05 16:49:43 +01:00
|
|
|
%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
|
2008-08-02 02:13:57 +02:00
|
|
|
%if %suse_version >= 1100
|
2007-01-05 16:49:43 +01:00
|
|
|
|
2008-05-22 01:40:29 +02:00
|
|
|
%files module-thai-lang
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%{_libdir}/pango/1.6.0/modules/pango-thai-lang.so
|
2008-08-02 02:13:57 +02:00
|
|
|
%endif
|
2008-05-22 01:40:29 +02:00
|
|
|
|
2007-01-05 16:49:43 +01:00
|
|
|
%files devel
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%{_libdir}/lib*.so
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
%{_includedir}/pango-1.0
|
|
|
|
%{_datadir}/gtk-doc/html/pango
|
2007-12-18 18:54:24 +01:00
|
|
|
|
2007-02-19 23:39:03 +01:00
|
|
|
%changelog
|