Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37705005
en ru br
Репозитории ALT
S:1.51.1-alt1
5.1: 1.24.5-alt1
4.1: 1.20.5-alt0.M41.3
www.altlinux.org/Changes

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

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

%define _name pango
%define ver_major 1.24
%define module_ver 1.6.0
%def_disable static
%def_disable gtk_doc

Name: lib%_name
Version: %ver_major.5
Release: alt1

Summary: System for layout and rendering of internationalized text
License: %lgpl2plus
Group: System/Libraries
Url: http://www.pango.org/
Packager: GNOME Maintainers Team <gnome at packages.altlinux.org>

Source: %gnome_ftp/%_name/%ver_major/%_name-%version.tar.bz2

Source10: %{name}-%ver_major-symver.map
Source11: %{name}cairo-%ver_major-symver.map
Source12: %{name}ft2-%ver_major-symver.map

Provides: %_name = %version-%release
Obsoletes: %_name < %version-1.16
Obsoletes: gscript

# From configure.in

%define glib_ver 2.17.3
%define cairo_ver 1.7.6
%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: rpm-build-gnome
BuildPreReq: rpm-build-licenses

BuildPreReq: gnome-common
BuildPreReq: libXt-devel libX11-devel
BuildPreReq: fontconfig-devel >= %fontconfig_ver
BuildPreReq: freetype2-devel >= %freetype2_ver
BuildPreReq: libXft-devel
BuildPreReq: libcairo-devel >= %cairo_ver
BuildPreReq: glib2-devel >= %glib_ver
BuildPreReq: gtk-doc >= %gtk_doc_ver
# Needed for man pages generation
BuildPreReq: xsltproc docbook-dtds docbook-style-xsl
BuildPreReq: pkgconfig >= %pkgconfig_ver

BuildRequires: zlib-devel

%description
A library to handle unicode strings as well as complex bidirectional
or context dependent shaped strings.

%package devel
Summary: Development libraries and header files for pango
Group: Development/C
Provides: %_name-devel = %version-%release
Obsoletes: %_name-devel < %version-1.16
Requires: %name = %version-%release

%description devel
The pango-devel package includes the libraries and header files
for the pango package.

%package devel-doc
Summary: Development documentation for Pango
Group: Development/C
Conflicts: %name < %version-%release
BuildArch: noarch

%description 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.

%if_enabled static
%package devel-static
Summary: Static libraries for pango
Group: Development/C

%description devel-static
The pango-devel package includes the static libraries for the pango package.
%endif

%prep
%setup -q -n %_name-%version

# Add our parts about symbols versioning

install -p -m644 %SOURCE10 pango/libpango-1.0-altlinux.ver
install -p -m644 %SOURCE11 pango/libpangocairo-1.0-altlinux.ver
install -p -m644 %SOURCE12 pango/libpangoft2-1.0-altlinux.ver

%build
%autoreconf
%configure \
   %{subst_enable static} \
   --enable-man \
   %{?_enable_gtk_doc:--enable-gtk-doc} \
   --enable-explicit-deps=yes

%make_build
tests/runtests.sh

%install
%make_install install DESTDIR=%buildroot
touch %buildroot%_sysconfdir/%_name/%_name.modules

%post
%_bindir/pango-querymodules >/etc/pango/pango.modules
chmod 644 /etc/pango/pango.modules

%files
%_bindir/%_name-querymodules
%_bindir/%_name-view
%dir %_libdir/%_name
%dir %_libdir/%_name/%module_ver
%dir %_libdir/%_name/%module_ver/modules
%_libdir/%name-1.0.so.*
%_libdir/%{name}cairo-1.0.so.*
%_libdir/%{name}ft2-1.0.so.*
%_libdir/%{name}x-1.0.so.*
%_libdir/%{name}xft-1.0.so.*
%_libdir/%_name/%module_ver/*/*.so
%dir %_sysconfdir/%_name
%config %_sysconfdir/%_name/pangox.aliases
%ghost %_sysconfdir/%_name/%_name.modules
%_man1dir/%_name-querymodules.*
%_man1dir/%_name-view.*
%doc README AUTHORS ChangeLog

%files devel
%_includedir/*
%_libdir/*.so
%_pkgconfigdir/*.pc

%files devel-doc
%_datadir/gtk-doc/html/*

%if_enabled static
%files devel-static
%_libdir/*.a
%_libdir/%_name/%module_ver/*/*.a
%endif

%exclude %_libdir/%_name/%module_ver/modules/*.la

%changelog

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

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