File pango.spec of Package pango
#
# spec file for package pango (Version 1.10.2)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: pango
BuildRequires: cairo-devel gtkdoc sgml-skel
%define prefix /opt/gnome
%define sysconfdir /etc%{prefix}
License: LGPL
Group: System/Libraries
Autoreqprov: on
Version: 1.18.3
Release: 1.0
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: SuSEconfig.pango
Source2: README.SuSE
Patch: pango64.patch
Patch1: pango-ottest.patch
#Patch2: bugzilla-53228-artificial-bold-and-italic.patch
#Patch3: pango-131128-font-extents-rounding.diff
#Patch4: pango-104365-use-hinted-metrics.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
PreReq: filesystem /usr/bin/touch /bin/rm /bin/rmdir
Requires: cairo
%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 <otaylor@redhat.com>
Changwoo Ryu <cwryu@adam.kaist.ac.kr>
Sivaraj Doddannan <sivaraj@intelligroup.com>
%package devel
Requires: pango = %version glib2-devel glibc-devel %(rpm -q --whatprovides XFree86-devel --queryformat '%{NAME}')
Summary: Include Files and Libraries mandatory for Development.
Group: Development/Libraries/GNOME
Autoreqprov: on
Requires: cairo-devel
%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>
%package doc
Requires: pango = %version
Summary: System for Layout and Rendering of Internationalised Text
Group: System/Libraries
Autoreqprov: on
%description doc
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 <otaylor@redhat.com>
Changwoo Ryu <cwryu@adam.kaist.ac.kr>
Sivaraj Doddannan <sivaraj@intelligroup.com>
%debug_package
%prep
%setup -q
cp -a %{S:1} .
%if "%_lib" == "lib64"
cp -a %{S:2} .
%patch
%endif
#%patch1
#%patch2 -p1
#%patch3 -p1
#%patch4 -p1
%build
%{?suse_update_config:%{suse_update_config -f}}
aclocal
libtoolize --force
automake -a
autoconf
CFLAGS="$RPM_OPT_FLAGS" \
./configure --prefix=%{prefix} \
--libdir=%{prefix}/%_lib \
--mandir=%{prefix}/share/man \
--with-native-locale=yes \
--with-xinput=xfree \
--sysconfdir=%{sysconfdir} \
--enable-gtk-doc=yes
make %{?jobs:-j %jobs}
%install
export LIBRARY_PATH=$RPM_BUILD_ROOT/opt/gnome/%{_lib}:$RPM_BUILD_ROOT/opt/gnome/%{_lib}/pango/modules
make install DESTDIR=$RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/sbin/conf.d
install -m 755 SuSEconfig.pango $RPM_BUILD_ROOT/sbin/conf.d
touch $RPM_BUILD_ROOT%{sysconfdir}/pango/pango.modules
%if "%_lib" == "lib64"
mv $RPM_BUILD_ROOT%{prefix}/bin/pango-querymodules\
$RPM_BUILD_ROOT%{prefix}/bin/pango-querymodules-64
mv $RPM_BUILD_ROOT%{sysconfdir}/pango/pango.modules\
$RPM_BUILD_ROOT%{sysconfdir}/pango/pango64.modules
%endif
# .la files for modules are not needed
rm $RPM_BUILD_ROOT%{prefix}/%_lib/pango/*/modules/*.la
gzip -9nf $RPM_BUILD_ROOT%{prefix}/share/man/man?/*.?
%clean
rm -rf $RPM_BUILD_ROOT
%pre
# Remove orphan files and directories obsolete since 9.0.
rm -f etc/pango/pango.modules
rmdir etc/pango usr/lib/pango 2>/dev/null || true
%post
%run_ldconfig
touch var/adm/SuSEconfig/run-pango
%postun
%run_ldconfig
touch var/adm/SuSEconfig/run-pango
%files
%defattr(-,root,root)
%if "%_lib" == "lib64"
%doc README AUTHORS COPYING ChangeLog README.SuSE
%else
%doc README AUTHORS COPYING ChangeLog
%endif
/sbin/conf.d/SuSEconfig.pango
%dir %{prefix}/%_lib/pango
%dir %{prefix}/%_lib/pango/1.6.0
%dir %{prefix}/%_lib/pango/1.6.0/modules
%{prefix}/%_lib/pango/1.6.0/modules/*.so
%{prefix}/%_lib/lib*.so.*
%{prefix}/bin/pango-*
%doc %{prefix}/share/man/man?/*.*
%dir %{sysconfdir}/pango
%{sysconfdir}/pango/pangox.aliases
%if "%_lib" == "lib64"
%ghost %{sysconfdir}/pango/pango64.modules
%else
%ghost %{sysconfdir}/pango/pango.modules
%endif
%files devel
%defattr(-, root, root)
%{prefix}/%_lib/lib*.so
%{prefix}/%_lib/lib*.*a
#%{prefix}/%_lib/pango/1.6.0/modules/*.la
%{prefix}/%_lib/pkgconfig/*.pc
%{prefix}/include/pango-1.0
%files doc
%defattr(-, root, root)
%{prefix}/share/gtk-doc/html/pango
%changelog -n pango
* Sat Dec 22 2007 - psankar@suse.de
- Push 1.18.3 tarball