Группа :: Система/Библиотеки
Пакет: pango
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%define ver_major 1.14
%define module_ver 1.5.0
%def_disable static
%def_enable gtk_doc
Name: pango
Version: %ver_major.10
Release: alt2.M40.1
Summary: System for layout and rendering of internationalized text
License: LGPL
Group: System/Libraries
Url: http://www.pango.org/
Source: ftp://ftp.gnome.org/pub/gnome/sources/%name/%ver_major/%name-%version.tar.bz2
# from pango-1.14.9-8.el5.src.rpm
Patch: pango-1.14.9-synthetic-gdef.patch
# From configure.in
%define glib_ver 2.10.0
%define cairo_ver 1.2.2
%define gtk_doc_ver 1.0
%define xft_ver 2.0.0
%define pkgconfig_ver 0.15-alt3.2
%define freetype2_ver 2.1.4
%define fontconfig_ver 2.2.1-alt2
# We need to prereq these so we can run pango-querymodules in post
PreReq: glib2 >= %glib_ver
PreReq: libXft
BuildPreReq: glib2-devel >= %glib_ver
BuildPreReq: libcairo-devel >= %cairo_ver
BuildPreReq: gtk-doc >= %gtk_doc_ver
BuildPreReq: pkgconfig >= %pkgconfig_ver
BuildPreReq: fontconfig-devel >= %fontconfig_ver
BuildPreReq: freetype2-devel >= %freetype2_ver
BuildRequires: docbook-dtds docbook-style-xsl libX11-devel libXft-devel libXt-devel xsltproc zlib-devel
BuildRequires: gnome-common
%description
A library to handle unicode strings as well as complex bidirectional
or context dependent shaped strings.
%package -n lib%name
Summary: System for layout and rendering of internationalized text
Group: System/Libraries
Provides: pango = %version
Obsoletes: pango
Obsoletes: gscript
Requires: glib2 >= %glib_ver
Requires: libXft
%description -n lib%name
A library to handle unicode strings as well as complex bidirectional
or context dependent shaped strings.
%package -n lib%name-devel
Summary: Development libraries and header files for pango
Group: Development/C
Provides: pango-devel = %version
Obsoletes: pango-devel
Requires: lib%name = %version-%release
Requires: glib2-devel >= %glib_ver, libcairo-devel >= %cairo_ver
Requires: libXft-devel
Requires: fontconfig-devel >= %fontconfig_ver
%description -n lib%name-devel
The pango-devel package includes the libraries and header files
for the pango package.
%package -n lib%name-devel-doc
Summary: Development documentation for Pango
Group: Development/C
Conflicts: lib%name < %version-%release
%description -n lib%name-devel-doc
Pango is a library to handle unicode strings as well as complex
bidirectional or context dependent shaped strings.
This package contains development documentation for Pango.
%package -n lib%name-devel-static
Summary: Static libraries for pango
Group: Development/C
%description -n lib%name-devel-static
The pango-devel package includes the static libraries for the pango package.
%prep
%setup -q -n %name-%version
%patch -p1
%build
%__autoreconf
%configure \
%{subst_enable static} \
--enable-man \
%if_enabled gtk_doc
--enable-gtk-doc \
%endif
%make_build
%install
%makeinstall
%post -n lib%name
%post_ldconfig
%_bindir/pango-querymodules >/etc/pango/pango.modules
%__chmod 644 /etc/pango/pango.modules
%postun -n lib%name -p %postun_ldconfig
%files -n lib%name
%_bindir/%name-querymodules
%_bindir/%name-view
%dir %_libdir/%name
%dir %_libdir/%name/%module_ver
%dir %_libdir/%name/%module_ver/modules
%_libdir/libpango-1.0.so.*
%_libdir/libpangocairo-1.0.so.*
%_libdir/libpangoft2-1.0.so.*
%_libdir/libpangox-1.0.so.*
%_libdir/libpangoxft-1.0.so.*
%_libdir/%name/%module_ver/*/*.so
%dir %_sysconfdir/pango
%config %_sysconfdir/%name/pangox.aliases
%ghost %_sysconfdir/%name/pango.modules
%_man1dir/%name-querymodules.*
%doc README AUTHORS ChangeLog examples/HELLO.utf8
%files -n lib%name-devel
%_includedir/*
%_libdir/*.so
%_libdir/pkgconfig/*
%if_enabled gtk_doc
%files -n lib%name-devel-doc
%_datadir/gtk-doc/html/*
%endif
%if_enabled static
%files -n lib%name-devel-static
%_libdir/*.a
%_libdir/%name/%module_ver/*/*.a
%endif
%exclude %_libdir/%name/%module_ver/modules/*.la
%changelog
…
Полный changelog можно просмотреть здесь
%define module_ver 1.5.0
%def_disable static
%def_enable gtk_doc
Name: pango
Version: %ver_major.10
Release: alt2.M40.1
Summary: System for layout and rendering of internationalized text
License: LGPL
Group: System/Libraries
Url: http://www.pango.org/
Source: ftp://ftp.gnome.org/pub/gnome/sources/%name/%ver_major/%name-%version.tar.bz2
# from pango-1.14.9-8.el5.src.rpm
Patch: pango-1.14.9-synthetic-gdef.patch
# From configure.in
%define glib_ver 2.10.0
%define cairo_ver 1.2.2
%define gtk_doc_ver 1.0
%define xft_ver 2.0.0
%define pkgconfig_ver 0.15-alt3.2
%define freetype2_ver 2.1.4
%define fontconfig_ver 2.2.1-alt2
# We need to prereq these so we can run pango-querymodules in post
PreReq: glib2 >= %glib_ver
PreReq: libXft
BuildPreReq: glib2-devel >= %glib_ver
BuildPreReq: libcairo-devel >= %cairo_ver
BuildPreReq: gtk-doc >= %gtk_doc_ver
BuildPreReq: pkgconfig >= %pkgconfig_ver
BuildPreReq: fontconfig-devel >= %fontconfig_ver
BuildPreReq: freetype2-devel >= %freetype2_ver
BuildRequires: docbook-dtds docbook-style-xsl libX11-devel libXft-devel libXt-devel xsltproc zlib-devel
BuildRequires: gnome-common
%description
A library to handle unicode strings as well as complex bidirectional
or context dependent shaped strings.
%package -n lib%name
Summary: System for layout and rendering of internationalized text
Group: System/Libraries
Provides: pango = %version
Obsoletes: pango
Obsoletes: gscript
Requires: glib2 >= %glib_ver
Requires: libXft
%description -n lib%name
A library to handle unicode strings as well as complex bidirectional
or context dependent shaped strings.
%package -n lib%name-devel
Summary: Development libraries and header files for pango
Group: Development/C
Provides: pango-devel = %version
Obsoletes: pango-devel
Requires: lib%name = %version-%release
Requires: glib2-devel >= %glib_ver, libcairo-devel >= %cairo_ver
Requires: libXft-devel
Requires: fontconfig-devel >= %fontconfig_ver
%description -n lib%name-devel
The pango-devel package includes the libraries and header files
for the pango package.
%package -n lib%name-devel-doc
Summary: Development documentation for Pango
Group: Development/C
Conflicts: lib%name < %version-%release
%description -n lib%name-devel-doc
Pango is a library to handle unicode strings as well as complex
bidirectional or context dependent shaped strings.
This package contains development documentation for Pango.
%package -n lib%name-devel-static
Summary: Static libraries for pango
Group: Development/C
%description -n lib%name-devel-static
The pango-devel package includes the static libraries for the pango package.
%prep
%setup -q -n %name-%version
%patch -p1
%build
%__autoreconf
%configure \
%{subst_enable static} \
--enable-man \
%if_enabled gtk_doc
--enable-gtk-doc \
%endif
%make_build
%install
%makeinstall
%post -n lib%name
%post_ldconfig
%_bindir/pango-querymodules >/etc/pango/pango.modules
%__chmod 644 /etc/pango/pango.modules
%postun -n lib%name -p %postun_ldconfig
%files -n lib%name
%_bindir/%name-querymodules
%_bindir/%name-view
%dir %_libdir/%name
%dir %_libdir/%name/%module_ver
%dir %_libdir/%name/%module_ver/modules
%_libdir/libpango-1.0.so.*
%_libdir/libpangocairo-1.0.so.*
%_libdir/libpangoft2-1.0.so.*
%_libdir/libpangox-1.0.so.*
%_libdir/libpangoxft-1.0.so.*
%_libdir/%name/%module_ver/*/*.so
%dir %_sysconfdir/pango
%config %_sysconfdir/%name/pangox.aliases
%ghost %_sysconfdir/%name/pango.modules
%_man1dir/%name-querymodules.*
%doc README AUTHORS ChangeLog examples/HELLO.utf8
%files -n lib%name-devel
%_includedir/*
%_libdir/*.so
%_libdir/pkgconfig/*
%if_enabled gtk_doc
%files -n lib%name-devel-doc
%_datadir/gtk-doc/html/*
%endif
%if_enabled static
%files -n lib%name-devel-static
%_libdir/*.a
%_libdir/%name/%module_ver/*/*.a
%endif
%exclude %_libdir/%name/%module_ver/modules/*.la
%changelog
…
Полный changelog можно просмотреть здесь