2007-01-05 16:49:43 +01:00
|
|
|
#
|
2010-09-29 15:37:59 +02:00
|
|
|
# spec file for package pango (Version 1.28.3)
|
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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2010-10-12 23:23:11 +02:00
|
|
|
# When updating the binary version, do not forget to also update baselibs.conf
|
|
|
|
%define pango_binary_version 1.6.0
|
2008-03-03 18:13:35 +01:00
|
|
|
|
2007-01-05 16:49:43 +01:00
|
|
|
Name: pango
|
2010-10-12 23:23:11 +02:00
|
|
|
License: LGPLv2.1+
|
|
|
|
Group: System/Libraries
|
|
|
|
Version: 1.28.3
|
|
|
|
Release: 2
|
|
|
|
# NOTE: on upgrade to a new upstream version, change the Obsoletes from <= to < (here and in baselibs.conf)
|
|
|
|
Summary: Library for Layout and Rendering of Text
|
|
|
|
Source: ftp://ftp.gnome.org/pub/GNOME/sources/pango/1.18/%{name}-%{version}.tar.bz2
|
|
|
|
Source1: README.SuSE
|
|
|
|
Source2: macros.pango
|
|
|
|
Source99: baselibs.conf
|
|
|
|
# PATCH-FIX-UPSTREAM pango64.patch bgo129534 -- needed for biarch. Unfortunately, this is not good enough for usptream.
|
|
|
|
Patch0: pango64.patch
|
2008-10-06 17:20:31 +02:00
|
|
|
BuildRequires: gcc-c++
|
2008-09-13 13:41:20 +02:00
|
|
|
BuildRequires: gtk-doc
|
2010-07-21 15:26:14 +02:00
|
|
|
BuildRequires: pkg-config
|
2010-08-07 11:37:03 +02:00
|
|
|
BuildRequires: pkgconfig(cairo)
|
|
|
|
BuildRequires: pkgconfig(fontconfig)
|
|
|
|
BuildRequires: pkgconfig(freetype2)
|
|
|
|
BuildRequires: pkgconfig(gobject-2.0)
|
|
|
|
BuildRequires: pkgconfig(gobject-introspection-1.0)
|
|
|
|
BuildRequires: pkgconfig(libthai)
|
|
|
|
BuildRequires: pkgconfig(xft)
|
|
|
|
BuildRequires: pkgconfig(xrender)
|
2010-10-12 23:23:11 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
Pango is a library for layout and rendering of text, with an emphasis
|
|
|
|
on internationalization. It can be used anywhere that text layout
|
|
|
|
is needed.
|
|
|
|
|
|
|
|
Pango forms the core of text and font handling for GTK+.
|
|
|
|
|
|
|
|
%package -n libpango-1_0-0
|
2009-12-15 14:09:28 +01:00
|
|
|
License: LGPLv2.1+
|
2010-10-12 23:23:11 +02:00
|
|
|
Summary: Library for Layout and Rendering of Text
|
2007-01-05 16:49:43 +01:00
|
|
|
Group: System/Libraries
|
2010-10-12 23:23:11 +02:00
|
|
|
Requires(post): %{name}-tools
|
|
|
|
Provides: %{name} = %{version}
|
|
|
|
# Note: we keep <= (and a rpmlint warning...) until we get a version higher than 1.28.3 (when this provides/obsoletes was introduced)
|
|
|
|
Obsoletes: %{name} <= %{version}
|
2009-01-09 01:43:59 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: pango-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2007-01-05 16:49:43 +01:00
|
|
|
|
2010-10-12 23:23:11 +02:00
|
|
|
%description -n libpango-1_0-0
|
2007-01-05 16:49:43 +01:00
|
|
|
Pango is a library for layout and rendering of text, with an emphasis
|
2010-10-12 23:23:11 +02:00
|
|
|
on internationalization. It can be used anywhere that text layout
|
|
|
|
is needed.
|
|
|
|
|
|
|
|
Pango forms the core of text and font handling for GTK+.
|
|
|
|
|
|
|
|
%package tools
|
|
|
|
License: LGPLv2.1+
|
|
|
|
Summary: Library for Layout and Rendering of Text -- Tools
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description tools
|
|
|
|
Pango is a library for layout and rendering of text, with an emphasis
|
|
|
|
on internationalization. It can be used anywhere that text layout
|
|
|
|
is needed.
|
|
|
|
|
|
|
|
Pango forms the core of text and font handling for GTK+.
|
2008-05-22 01:40:29 +02:00
|
|
|
|
|
|
|
%package module-thai-lang
|
2009-12-15 14:09:28 +01:00
|
|
|
License: LGPLv2.1+
|
2010-10-12 23:23:11 +02:00
|
|
|
Summary: Library for Layout and Rendering of Text -- Module for the Thai Language
|
2008-05-22 01:40:29 +02:00
|
|
|
Group: System/Libraries
|
2010-10-12 23:23:11 +02:00
|
|
|
Requires(post): %{name}-tools
|
|
|
|
Requires(postun): %{name}-tools
|
2008-05-22 01:40:29 +02:00
|
|
|
Provides: locale(pango:th_TH)
|
|
|
|
|
|
|
|
%description module-thai-lang
|
|
|
|
Pango is a library for layout and rendering of text, with an emphasis
|
2010-10-12 23:23:11 +02:00
|
|
|
on internationalization. It can be used anywhere that text layout
|
|
|
|
is needed.
|
|
|
|
|
|
|
|
Pango forms the core of text and font handling for GTK+.
|
2007-01-05 16:49:43 +01:00
|
|
|
|
|
|
|
%package devel
|
2009-12-15 14:09:28 +01:00
|
|
|
License: LGPLv2.1+
|
2010-10-12 23:23:11 +02:00
|
|
|
Requires: libpango-1_0-0 = %{version}
|
|
|
|
Summary: Library for Layout and Rendering of Text -- Development Files
|
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
|
2010-10-12 23:23:11 +02:00
|
|
|
Pango is a library for layout and rendering of text, with an emphasis
|
|
|
|
on internationalization. It can be used anywhere that text layout
|
|
|
|
is needed.
|
|
|
|
|
|
|
|
Pango forms the core of text and font handling for GTK+.
|
|
|
|
|
2007-01-05 16:49:43 +01:00
|
|
|
This package contains all necessary include files and libraries needed
|
|
|
|
to develop applications that require these.
|
|
|
|
|
|
|
|
%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
|
2010-10-12 23:23:11 +02:00
|
|
|
find %{buildroot}%{_libdir} -name '*.la' -type f -delete -print
|
|
|
|
touch %{buildroot}%{_sysconfdir}/pango/pango.modules
|
2007-01-05 16:49:43 +01:00
|
|
|
%if "%_lib" == "lib64"
|
2010-10-12 23:23:11 +02:00
|
|
|
mv %{buildroot}%{_bindir}/pango-querymodules %{buildroot}%{_bindir}/pango-querymodules-64
|
|
|
|
mv %{buildroot}%{_sysconfdir}/pango/pango.modules %{buildroot}%{_sysconfdir}/pango/pango64.modules
|
2007-01-05 16:49:43 +01:00
|
|
|
%endif
|
2010-10-12 23:23:11 +02:00
|
|
|
# Install rpm macros
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/rpm
|
|
|
|
cp %{S:2} %{buildroot}%{_sysconfdir}/rpm
|
2007-01-05 16:49:43 +01:00
|
|
|
|
|
|
|
%clean
|
2010-10-12 23:23:11 +02:00
|
|
|
rm -rf %{buildroot}
|
2007-01-05 16:49:43 +01:00
|
|
|
|
2010-10-12 23:23:11 +02:00
|
|
|
###########################################################################
|
|
|
|
# Note: when updating scriptlets, don't forget to also update baselibs.conf
|
|
|
|
###########################################################################
|
|
|
|
|
|
|
|
# Convenient %define for the scriplets
|
2007-01-05 16:49:43 +01:00
|
|
|
%if "%_lib" == "lib64"
|
2010-10-12 23:23:11 +02:00
|
|
|
%define _pango_querymodules %{_bindir}/pango-querymodules-64
|
|
|
|
%define _pango_querymodules_update_cache %{_pango_querymodules} > %{_sysconfdir}/pango/pango64.modules
|
2007-01-05 16:49:43 +01:00
|
|
|
%else
|
2010-10-12 23:23:11 +02:00
|
|
|
%define _pango_querymodules %{_bindir}/pango-querymodules
|
|
|
|
%define _pango_querymodules_update_cache %{_pango_querymodules} > %{_sysconfdir}/pango/pango.modules
|
2007-01-05 16:49:43 +01:00
|
|
|
%endif
|
|
|
|
|
2010-10-14 09:47:24 +02:00
|
|
|
%post -n libpango-1_0-0
|
|
|
|
/sbin/ldconfig
|
|
|
|
%if 0
|
2010-10-12 23:23:11 +02:00
|
|
|
# In case libpango-1_0-0 gets installed before pango-tools, we don't want to
|
|
|
|
# fail. So we make the call to pango-querymodules dependent on the existence of
|
|
|
|
# the binary. This is why we also have a %post for pango-tools.
|
2010-10-14 09:47:24 +02:00
|
|
|
%endif
|
2010-10-12 23:23:11 +02:00
|
|
|
if test -f %{_pango_querymodules}; then
|
|
|
|
%{_pango_querymodules_update_cache}
|
2007-01-05 16:49:43 +01:00
|
|
|
fi
|
2010-10-12 23:23:11 +02:00
|
|
|
|
2010-10-14 09:47:24 +02:00
|
|
|
%if 0
|
2010-10-12 23:23:11 +02:00
|
|
|
# No need to call pango-querymodules in postun:
|
|
|
|
# - if it's an upgrade, it will have been called in post
|
|
|
|
# - if it's an uninstall, we don't care about this anymore
|
2010-10-14 09:47:24 +02:00
|
|
|
%endif
|
2010-10-12 23:23:11 +02:00
|
|
|
|
|
|
|
%postun -n libpango-1_0-0 -p /sbin/ldconfig
|
2008-10-12 00:27:23 +02:00
|
|
|
|
|
|
|
%post module-thai-lang
|
2010-10-12 23:23:11 +02:00
|
|
|
%{_pango_querymodules_update_cache}
|
2008-10-12 00:27:23 +02:00
|
|
|
|
|
|
|
%postun module-thai-lang
|
2010-10-12 23:23:11 +02:00
|
|
|
%{_pango_querymodules_update_cache}
|
|
|
|
|
2010-10-14 09:47:24 +02:00
|
|
|
%post tools
|
|
|
|
%if 0
|
2010-10-12 23:23:11 +02:00
|
|
|
# If we install pango-tools for the first time, then we should run it in case
|
|
|
|
# libpango-1_0-0 was installed first (ie, if
|
|
|
|
# %{_libdir}/pango/%{pango_binary_version} already exists) which means
|
|
|
|
# pango-querymodules couldn't run there.
|
2010-10-14 09:47:24 +02:00
|
|
|
%endif
|
2010-10-12 23:23:11 +02:00
|
|
|
if [ $1 == 1 ]; then
|
|
|
|
test -d %{_libdir}/pango/%{pango_binary_version}
|
|
|
|
if test $? -eq 0; then
|
|
|
|
%{_pango_querymodules_update_cache}
|
|
|
|
fi
|
2008-10-12 00:27:23 +02:00
|
|
|
fi
|
2007-01-05 16:49:43 +01:00
|
|
|
|
2010-10-12 23:23:11 +02:00
|
|
|
%files -n libpango-1_0-0
|
2007-01-05 16:49:43 +01:00
|
|
|
%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
|
|
|
|
%dir %{_libdir}/pango
|
2010-10-12 23:23:11 +02:00
|
|
|
%dir %{_libdir}/pango/%{pango_binary_version}
|
|
|
|
%dir %{_libdir}/pango/%{pango_binary_version}/modules
|
|
|
|
%{_libdir}/pango/%{pango_binary_version}/modules/pango-arabic-fc.so
|
|
|
|
%{_libdir}/pango/%{pango_binary_version}/modules/pango-arabic-lang.so
|
|
|
|
%{_libdir}/pango/%{pango_binary_version}/modules/pango-basic-fc.so
|
|
|
|
%{_libdir}/pango/%{pango_binary_version}/modules/pango-basic-x.so
|
|
|
|
%{_libdir}/pango/%{pango_binary_version}/modules/pango-hangul-fc.so
|
|
|
|
%{_libdir}/pango/%{pango_binary_version}/modules/pango-hebrew-fc.so
|
|
|
|
%{_libdir}/pango/%{pango_binary_version}/modules/pango-indic-fc.so
|
|
|
|
%{_libdir}/pango/%{pango_binary_version}/modules/pango-indic-lang.so
|
|
|
|
%{_libdir}/pango/%{pango_binary_version}/modules/pango-khmer-fc.so
|
|
|
|
%{_libdir}/pango/%{pango_binary_version}/modules/pango-syriac-fc.so
|
|
|
|
%{_libdir}/pango/%{pango_binary_version}/modules/pango-thai-fc.so
|
|
|
|
%{_libdir}/pango/%{pango_binary_version}/modules/pango-tibetan-fc.so
|
2007-01-05 16:49:43 +01:00
|
|
|
%{_libdir}/lib*.so.*
|
2010-09-19 01:21:29 +02:00
|
|
|
%{_libdir}/girepository-1.0/Pango-1.0.typelib
|
|
|
|
%{_libdir}/girepository-1.0/PangoCairo-1.0.typelib
|
|
|
|
%{_libdir}/girepository-1.0/PangoFT2-1.0.typelib
|
|
|
|
%{_libdir}/girepository-1.0/PangoXft-1.0.typelib
|
2007-01-05 16:49:43 +01:00
|
|
|
%dir %{_sysconfdir}/pango
|
|
|
|
%{_sysconfdir}/pango/pangox.aliases
|
|
|
|
%if "%_lib" == "lib64"
|
|
|
|
%ghost %{_sysconfdir}/pango/pango64.modules
|
|
|
|
%else
|
|
|
|
%ghost %{_sysconfdir}/pango/pango.modules
|
|
|
|
%endif
|
|
|
|
|
2010-10-12 23:23:11 +02:00
|
|
|
%files tools
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%{_bindir}/pango-querymodules*
|
|
|
|
%{_bindir}/pango-view
|
|
|
|
%doc %{_mandir}/man1/pango-querymodules.1*
|
|
|
|
%doc %{_mandir}/man1/pango-view.1*
|
|
|
|
|
|
|
|
# We have this module in a subpackage because it requires additional libraries.
|
2008-05-22 01:40:29 +02:00
|
|
|
%files module-thai-lang
|
|
|
|
%defattr(-, root, root)
|
2010-10-12 23:23:11 +02:00
|
|
|
%{_libdir}/pango/%{pango_binary_version}/modules/pango-thai-lang.so
|
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
|
2010-09-19 01:21:29 +02:00
|
|
|
%{_includedir}/pango-1.0/
|
|
|
|
%{_datadir}/gir-1.0/*.gir
|
|
|
|
%doc %{_datadir}/gtk-doc/html/pango/
|
2010-10-12 23:23:11 +02:00
|
|
|
%{_sysconfdir}/rpm/macros.pango
|
2007-12-18 18:54:24 +01:00
|
|
|
|
2007-02-19 23:39:03 +01:00
|
|
|
%changelog
|