Репозиторий Sisyphus
Последнее обновление: 28 сентября 2020 | Пакетов: 17704 | Посещений: 19306726
en ru br
Репозитории ALT
4.0: 1.14.10-alt2.M40.1
3.0: 1.8.1-alt1
www.altlinux.org/Changes

Группа :: Система/Библиотеки
Пакет: pango

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%define ver_major 1.8
%define module_ver 1.4.0
%def_disable static
%def_enable gtk_doc
# build Qt sample or not
%def_without viewer

Name: pango
Version: %ver_major.1
Release: alt1

Summary: System for layout and rendering of internationalized text
License: LGPL
Group: System/Libraries
Url: http://www.pango.org/

Packager: Yuri N. Sedunov <aris at altlinux.ru>

Source: ftp://ftp.gnome.org/pub/gnome/sources/%name/%ver_major/%name-%version.tar.bz2

%define glib_ver 2.5.3
%define gtk_doc_ver 1.1
%define pkgconfig_ver 0.15-alt3.2
%define freetype2_ver 2.1.4
%define qt_ver_major 2
%define xft_ver 2.1.0
%define fontconfig_ver 2.2.1-alt2

%if_with viewer
%if "%qt_ver_major" == "2"
%define libqt_ver 2.3.1-alt12
BuildPreReq: libqt%qt_ver_major-devel >= %libqt_ver
%endif
%endif

# 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: gtk-doc >= %gtk_doc_ver
BuildPreReq: pkgconfig >= %pkgconfig_ver
#BuildPreReq: libXft-devel >= %xft_ver
BuildPreReq: libXft-devel
BuildPreReq: fontconfig-devel >= %fontconfig_ver

# Automatically added by buildreq on Wed Mar 17 2004

BuildRequires: XFree86-devel-static XFree86-libs docbook-dtds docbook-style-xsl fontconfig-devel freetype2-devel gcc-c++ gcc-g77 glib2-devel gtk-doc libstdc++-devel pkgconfig xml-common 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 >= %xft_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
#Requires: libXft-devel >= %xft_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.

%package -n %name-viewer
Summary: QT Example of pango
Group: Text tools
Requires: lib%name = %version-%release

%description -n %name-viewer
Little example of pango library usage.

%define qtdir %_libdir/qt%qt_ver_major

%prep
%setup -q -n %name-%version

%build
%configure \
%if_with viewer
   --with-qt=%qtdir \
%else
   --without-qt \
%endif
   %{subst_enable static} \
%if_enabled gtk_doc
   --enable-gtk-doc \
%endif
   --localstatedir=%_var

%make_build

%install
%makeinstall

# remove non-packaged files

%__rm -f %buildroot%_libdir/%name/%module_ver/*/*.la

%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
%dir %_libdir/%name
%dir %_libdir/%name/%module_ver
%dir %_libdir/%name/%module_ver/modules
%_libdir/*.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 TODO 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

%if_with viewer
%files -n %name-viewer
%_bindir/%name-viewer
%endif

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin