2007-01-05 16:49:43 +01:00
|
|
|
#
|
2011-03-01 10:13:14 +01:00
|
|
|
# spec file for package pango
|
2007-01-05 16:49:43 +01:00
|
|
|
#
|
2014-02-12 11:07:15 +01:00
|
|
|
# Copyright (c) 2014 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/
|
|
|
|
#
|
|
|
|
|
2012-03-28 08:05:24 +02:00
|
|
|
|
2011-03-01 09:00:04 +01:00
|
|
|
# When updating the binary version, do not forget to also update baselibs.conf
|
2012-09-07 19:02:21 +02:00
|
|
|
%define pango_binary_version 1.8.0
|
2008-03-03 18:13:35 +01:00
|
|
|
|
2007-01-05 16:49:43 +01:00
|
|
|
Name: pango
|
2014-09-25 09:44:24 +02:00
|
|
|
Version: 1.36.8
|
2011-12-21 05:15:11 +01:00
|
|
|
Release: 0
|
2011-03-01 09:00:04 +01:00
|
|
|
Summary: Library for Layout and Rendering of Text
|
2011-12-21 05:15:11 +01:00
|
|
|
License: LGPL-2.1+
|
|
|
|
Group: System/Libraries
|
2011-06-16 17:45:04 +02:00
|
|
|
Url: http://www.pango.org/
|
2013-09-24 22:07:20 +02:00
|
|
|
Source: http://download.gnome.org/sources/pango/1.36/%{name}-%{version}.tar.xz
|
2014-08-08 15:51:04 +02:00
|
|
|
Source1: README.SUSE
|
2011-03-01 09:00:04 +01:00
|
|
|
Source2: macros.pango
|
|
|
|
Source99: baselibs.conf
|
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
|
2013-06-23 16:14:18 +02:00
|
|
|
BuildRequires: pkgconfig(cairo) >= 1.12.10
|
2013-03-13 23:44:54 +01:00
|
|
|
BuildRequires: pkgconfig(fontconfig) >= 2.10.91
|
2010-08-07 11:37:03 +02:00
|
|
|
BuildRequires: pkgconfig(freetype2)
|
2012-09-23 19:23:42 +02:00
|
|
|
BuildRequires: pkgconfig(glib-2.0) >= 2.33.12
|
|
|
|
BuildRequires: pkgconfig(gobject-2.0)
|
2010-08-07 11:37:03 +02:00
|
|
|
BuildRequires: pkgconfig(gobject-introspection-1.0)
|
2012-12-11 17:48:33 +01:00
|
|
|
BuildRequires: pkgconfig(harfbuzz) >= 0.9.9
|
2011-11-23 12:22:51 +01:00
|
|
|
BuildRequires: pkgconfig(libthai) >= 0.1.9
|
2012-09-27 17:08:43 +02:00
|
|
|
BuildRequires: pkgconfig(xft) >= 2.0.0
|
2010-08-07 11:37:03 +02:00
|
|
|
BuildRequires: pkgconfig(xrender)
|
2011-03-01 09:00:04 +01: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
|
|
|
|
Summary: Library for Layout and Rendering of Text
|
2007-01-05 16:49:43 +01:00
|
|
|
Group: System/Libraries
|
2013-01-14 20:53:19 +01:00
|
|
|
# pango-querymodules(-64)? was first introduced the --update-cache option in 1.31.1... (bnc#792646).
|
|
|
|
Requires(post): %{name}-tools >= 1.31.1
|
2011-03-01 09:00:04 +01:00
|
|
|
Provides: %{name} = %{version}
|
2011-04-20 13:14:19 +02:00
|
|
|
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
|
|
|
|
2011-03-01 09:00:04 +01: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
|
2011-03-01 09:00:04 +01:00
|
|
|
on internationalization. It can be used anywhere that text layout
|
|
|
|
is needed.
|
2010-10-12 23:23:11 +02:00
|
|
|
|
2011-03-01 09:00:04 +01:00
|
|
|
Pango forms the core of text and font handling for GTK+.
|
2010-10-12 23:23:11 +02:00
|
|
|
|
2011-12-12 16:47:09 +01:00
|
|
|
%package -n typelib-1_0-Pango-1_0
|
2011-12-21 05:15:11 +01:00
|
|
|
Summary: Library for Layout and Rendering of Text -- Introspection bindings
|
2011-12-12 16:47:09 +01:00
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n typelib-1_0-Pango-1_0
|
|
|
|
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+.
|
|
|
|
|
2011-12-21 05:15:11 +01:00
|
|
|
This package provides the GObject Introspection bindings for Pango.
|
|
|
|
|
2011-03-01 09:00:04 +01:00
|
|
|
%package tools
|
|
|
|
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.
|
2010-10-12 23:23:11 +02:00
|
|
|
|
2011-03-01 09:00:04 +01:00
|
|
|
Pango forms the core of text and font handling for GTK+.
|
2008-05-22 01:40:29 +02:00
|
|
|
|
|
|
|
%package module-thai-lang
|
2011-03-01 09:00:04 +01: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
|
2011-03-01 09:00:04 +01:00
|
|
|
Requires(post): %{name}-tools
|
|
|
|
Requires(postun): %{name}-tools
|
2012-09-07 19:04:36 +02:00
|
|
|
Provides: locale(pango:th_TH)
|
2008-05-22 01:40:29 +02:00
|
|
|
|
|
|
|
%description module-thai-lang
|
|
|
|
Pango is a library for layout and rendering of text, with an emphasis
|
2011-03-01 09:00:04 +01:00
|
|
|
on internationalization. It can be used anywhere that text layout
|
|
|
|
is needed.
|
2010-10-15 12:43:47 +02:00
|
|
|
|
2011-03-01 09:00:04 +01:00
|
|
|
Pango forms the core of text and font handling for GTK+.
|
2007-01-05 16:49:43 +01:00
|
|
|
|
|
|
|
%package devel
|
2011-03-01 09:00:04 +01:00
|
|
|
Summary: Library for Layout and Rendering of Text -- Development Files
|
2007-01-05 16:49:43 +01:00
|
|
|
Group: Development/Libraries/GNOME
|
2012-09-07 19:02:21 +02:00
|
|
|
Requires: libpango-1_0-0 = %{version}
|
|
|
|
Requires: typelib-1_0-Pango-1_0 = %{version}
|
2009-01-09 01:43:59 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
2012-09-07 19:04:36 +02:00
|
|
|
Obsoletes: pango-devel-64bit
|
2009-01-09 01:43:59 +01:00
|
|
|
%endif
|
2009-03-26 17:31:27 +01:00
|
|
|
Provides: pango-doc = %{version}
|
2011-06-16 17:45:04 +02:00
|
|
|
Obsoletes: pango-doc < %{version}
|
2007-01-05 16:49:43 +01:00
|
|
|
|
|
|
|
%description devel
|
2011-03-01 09:00:04 +01: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.
|
2010-10-15 12:43:47 +02:00
|
|
|
|
2011-03-01 09:00:04 +01:00
|
|
|
Pango forms the core of text and font handling for GTK+.
|
2010-10-15 12:43:47 +02:00
|
|
|
|
2011-03-01 09:00:04 +01:00
|
|
|
This package contains all necessary include files and libraries needed
|
|
|
|
to develop applications that require these.
|
2010-10-15 12:43:47 +02:00
|
|
|
|
2007-01-05 16:49:43 +01:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2012-09-07 19:02:21 +02:00
|
|
|
%if "%{_lib}" == "lib64"
|
|
|
|
cp -a %{SOURCE1} .
|
2007-12-22 19:34:09 +01:00
|
|
|
%endif
|
2007-01-05 16:49:43 +01:00
|
|
|
|
|
|
|
%build
|
2014-03-28 11:43:18 +01:00
|
|
|
%configure --disable-static --with-pic --with-cairo
|
2012-09-07 19:02:21 +02:00
|
|
|
make %{?_smp_mflags}
|
2007-01-05 16:49:43 +01:00
|
|
|
|
|
|
|
%install
|
2012-09-07 19:02:21 +02:00
|
|
|
%make_install
|
2011-03-01 09:00:04 +01:00
|
|
|
find %{buildroot}%{_libdir} -name '*.la' -type f -delete -print
|
2012-09-07 19:02:21 +02:00
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/pango/
|
2014-02-23 01:38:37 +01:00
|
|
|
touch %{buildroot}%{_sysconfdir}/pango/pango.modules
|
|
|
|
touch %{buildroot}%{_libdir}/pango/%{pango_binary_version}/modules.cache
|
2012-09-07 19:02:21 +02:00
|
|
|
%if "%{_lib}" == "lib64"
|
2011-03-01 09:00:04 +01:00
|
|
|
mv %{buildroot}%{_bindir}/pango-querymodules %{buildroot}%{_bindir}/pango-querymodules-64
|
2007-01-05 16:49:43 +01:00
|
|
|
%endif
|
2011-03-01 09:00:04 +01:00
|
|
|
# Install rpm macros
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/rpm
|
2012-09-07 19:02:21 +02:00
|
|
|
cp %{SOURCE2} %{buildroot}%{_sysconfdir}/rpm
|
2007-01-05 16:49:43 +01:00
|
|
|
|
2011-03-01 09:00:04 +01:00
|
|
|
###########################################################################
|
|
|
|
# Note: when updating scriptlets, don't forget to also update baselibs.conf
|
|
|
|
###########################################################################
|
|
|
|
|
2012-09-21 21:40:45 +02:00
|
|
|
# Convenient %%define for the scriplets
|
2012-09-07 19:02:21 +02:00
|
|
|
%if "%{_lib}" == "lib64"
|
2011-03-01 09:00:04 +01:00
|
|
|
%define _pango_querymodules %{_bindir}/pango-querymodules-64
|
2007-01-05 16:49:43 +01:00
|
|
|
%else
|
2011-03-01 09:00:04 +01:00
|
|
|
%define _pango_querymodules %{_bindir}/pango-querymodules
|
2007-01-05 16:49:43 +01:00
|
|
|
%endif
|
2012-09-21 21:40:45 +02:00
|
|
|
%define _pango_querymodules_update_cache %{_pango_querymodules} --update-cache
|
2007-01-05 16:49:43 +01:00
|
|
|
|
2011-03-01 09:00:04 +01:00
|
|
|
%post -n libpango-1_0-0
|
2010-10-14 09:47:24 +02:00
|
|
|
/sbin/ldconfig
|
2011-03-01 09:00:04 +01:00
|
|
|
%if 0
|
|
|
|
# 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
|
2012-09-21 21:40:45 +02:00
|
|
|
# the binary. This is why we also have a %%post for pango-tools.
|
2011-03-01 09:00:04 +01:00
|
|
|
%endif
|
|
|
|
if test -f %{_pango_querymodules}; then
|
|
|
|
%{_pango_querymodules_update_cache}
|
2007-01-05 16:49:43 +01:00
|
|
|
fi
|
2011-03-01 09:00:04 +01:00
|
|
|
|
|
|
|
%if 0
|
|
|
|
# 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
|
|
|
|
2011-03-01 09:00:04 +01:00
|
|
|
%postun -n libpango-1_0-0 -p /sbin/ldconfig
|
|
|
|
|
2008-10-12 00:27:23 +02:00
|
|
|
%post module-thai-lang
|
2011-03-01 09:00:04 +01:00
|
|
|
%{_pango_querymodules_update_cache}
|
2008-10-12 00:27:23 +02:00
|
|
|
|
|
|
|
%postun module-thai-lang
|
2011-03-01 09:00:04 +01:00
|
|
|
%{_pango_querymodules_update_cache}
|
|
|
|
|
|
|
|
%post tools
|
|
|
|
%if 0
|
|
|
|
# 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
|
2012-09-21 21:40:45 +02:00
|
|
|
# %%{_libdir}/pango/%%{pango_binary_version} already exists) which means
|
2011-03-01 09:00:04 +01:00
|
|
|
# pango-querymodules couldn't run there.
|
2010-10-15 12:43:47 +02:00
|
|
|
%endif
|
2014-11-10 22:27:53 +01:00
|
|
|
if [ $1 = 1 ]; then
|
2014-02-23 01:38:37 +01:00
|
|
|
test -f %{_libdir}/libpango-1.0.so.0
|
2011-03-01 09:00:04 +01:00
|
|
|
if test $? -eq 0; then
|
|
|
|
%{_pango_querymodules_update_cache}
|
|
|
|
fi
|
|
|
|
fi
|
2007-01-05 16:49:43 +01:00
|
|
|
|
2011-03-01 09:00:04 +01:00
|
|
|
%files -n libpango-1_0-0
|
2007-01-05 16:49:43 +01:00
|
|
|
%defattr(-,root,root)
|
2012-09-07 19:02:21 +02:00
|
|
|
%if "%{_lib}" == "lib64"
|
2014-08-08 15:51:04 +02: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
|
2011-03-01 09:00:04 +01:00
|
|
|
%dir %{_libdir}/pango/%{pango_binary_version}
|
2014-02-23 01:38:37 +01:00
|
|
|
%ghost %{_libdir}/pango/%{pango_binary_version}/modules.cache
|
2011-03-01 09:00:04 +01:00
|
|
|
%dir %{_libdir}/pango/%{pango_binary_version}/modules
|
|
|
|
%{_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-indic-lang.so
|
2007-01-05 16:49:43 +01:00
|
|
|
%{_libdir}/lib*.so.*
|
|
|
|
%dir %{_sysconfdir}/pango
|
2014-02-23 01:38:37 +01:00
|
|
|
%config %ghost %{_sysconfdir}/pango/pango.modules
|
2007-01-05 16:49:43 +01:00
|
|
|
|
2011-12-12 16:47:09 +01:00
|
|
|
%files -n typelib-1_0-Pango-1_0
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_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
|
|
|
|
|
2011-03-01 09:00:04 +01: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)
|
2011-03-01 09:00:04 +01: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/
|
2011-03-01 09:00:04 +01:00
|
|
|
%{_sysconfdir}/rpm/macros.pango
|
2007-12-18 18:54:24 +01:00
|
|
|
|
2007-02-19 23:39:03 +01:00
|
|
|
%changelog
|