Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37731231
en ru br
Репозитории ALT
S:2.14.2-alt8
5.1: 2.7.2-alt1
4.1: 2.6.0-alt0.M41.1
4.0: 2.4.2-alt3
3.0: 2.3.2-alt2
www.altlinux.org/Changes

Группа :: Система/Настройка/Прочее
Пакет: fontconfig

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

%define docdir %_docdir/%name-%version

%def_disable static
%def_disable libxml2

Name: fontconfig
Version: 2.6.0
Release: alt0.M41.1

Summary: Font configuration and customization library & utilities
Group: System/Configuration/Other
License: MIT
Url: http://fontconfig.org/

Packager: Valery Inozemtsev <shrek at altlinux.ru>

Obsoletes: lib%name < %version-%release
Provides: lib%name = %version-%release

Source: %name-%version.tar
Patch: %name-%version-%release.patch

# Automatically added by buildreq on Tue Jan 09 2007

BuildRequires: docbook-utils-print elinks gcc-c++ libfreetype-devel
%if_enabled libxml2
BuildRequires: libxml2-devel
%else
BuildRequires: libexpat-devel
%endif

%description
Fontconfig is designed to locate fonts within the system and
select them according to requirements specified by applications.

%package devel
Summary: Development files for font configuration and customization library
Group: Development/C
Requires: %name = %version-%release

%description devel
The %name-devel package includes the header files
and developer documentation for the fontconfig package.

Install fontconfig-devel if you want to develop programs which
will use fontconfig.

%package devel-static
Summary: Static build of the font configuration and customization library
Group: Development/C
Requires: %name-devel = %version-%release

%description devel-static
The %name-devel-static package includes the static libraries
for the fontconfig package.

%prep
%setup -q
%patch -p1

%build
%autoreconf
%configure \
%{subst_enable static} \
--with-docdir=%docdir \
--with-default-fonts=%_datadir/fonts \
--with-cache-dir=%_var/cache/%name \
%{subst_enable libxml2}

%make_build

%install
%make DESTDIR=%buildroot install

# our fonts.conf

> %buildroot%_sysconfdir/fonts/local.conf

# firsttime update fonts cache

install -Dp -m755 fontconfig-firsttime %buildroot%_sysconfdir/firsttime.d/%name

%post
%post_ldconfig
[ -n "$DURING_INSTALL" ] || %_sysconfdir/firsttime.d/%name

%triggerin -- %name <= 2.3.2
find %_datadir/fonts -depth -type f -name fonts.cache-1 -delete

%postun -p %postun_ldconfig

%files
%doc README AUTHORS doc/fontconfig-user.html doc/fontconfig-user.txt
%_sysconfdir/firsttime.d/%name
%dir %_sysconfdir/fonts
%dir %_sysconfdir/fonts/conf.d
%dir %_sysconfdir/fonts/conf.avail
%config %_sysconfdir/fonts/fonts.dtd
%config %_sysconfdir/fonts/fonts.conf
%config(noreplace) %_sysconfdir/fonts/conf.avail/*.conf
%_sysconfdir/fonts/conf.d/README
%_sysconfdir/fonts/conf.d/[2-9]*.conf
%ghost %_sysconfdir/fonts/conf.d/1*.conf
%ghost %config(missingok,noreplace) %_sysconfdir/fonts/local.conf
%_bindir/fc-*
%_libdir/*.so.*
%_man1dir/*
%_man5dir/*
%dir %_var/cache/%name

%files devel
%doc doc/fontconfig-devel doc/fontconfig-devel.txt
%_libdir/*.so
%_pkgconfigdir/*.pc
%_includedir/*
%_man3dir/*

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

%changelog

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

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