Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37726340
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

Name: fontconfig
Version: 2.3.2
Release: alt2

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

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

Source: http://freedesktop.org/~fontconfig/release/%name-%version.tar.gz
Source1: alt-generic-names.conf
Source2: alt-pre-user.conf
Source3: alt-post-user.conf

Source10: firsttime

# RH

# Blacklist certain fonts that freetype can't handle.
Patch2: fontconfig-2.3-rh-blacklist.patch
# Ignore .fulldir entries from earlier versions 'dircache' fix.
Patch3: fontconfig-2.1-rh-fulldir.patch
#
# SuSE
Patch10: fontconfig-fonts.conf-alt.patch
Patch11: AppleRoman-DynaFont.patch
Patch12: euro.patch
Patch13: fontconfig-minmaxabs.patch
Patch14: fontconfig-sentinel.patch

%def_disable static
%{?_enable_static:BuildPreReq: glibc-devel-static}

%define freetype2_version 2.1.3

BuildPreReq: freetype2-devel >= %freetype2_version

# Automatically added by buildreq on Fri Mar 18 2005 (-bi)

#BuildRequires: OpenSP cm-super-fonts-tex-dvips docbook-dtds docbook-style-dsssl docbook-utils-print elinks freetype2-devel gcc-c++ gcc-g77 jadetex libexpat-devel libstdc++-devel openjade perl-SGMLSpm python-base python-modules-compiler python-modules-encodings sgml-common tetex-core tetex-latex urw-tex zlib-devel
BuildRequires: OpenSP cm-super-fonts-tex-dvips docbook-dtds docbook-style-dsssl
BuildRequires: docbook-utils-print elinks freetype2-devel gcc-c++ jadetex libexpat-devel
BuildRequires: libstdc++-devel openjade perl-SGMLSpm
BuildRequires: sgml-common tetex-core tetex-latex urw-tex zlib-devel

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

%if_enabled static
%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.
%endif # enabled static

%prep
%setup -q
%patch2 -p1
%patch3 -p1
#
%patch10 -p1
%patch11 -p0
%patch12 -p0
%patch13 -p0
%patch14 -p1

%build
%configure %{subst_enable static} \
   --disable-docs --with-docdir=%docdir \
   --with-default-fonts=%_datadir/fonts/default \
   --with-add-fonts=\
%_x11fontsdir/misc,\
%_x11fontsdir/TrueType,\
%_datadir/fonts/TrueType-ms,\
%_x11fontsdir/msttf,\
%_datadir/fonts/j2se-sun,\
%_x11fontsdir/urw-ttf

%make_build
%make_install -C doc

%install
%__mkdir_p -m0744 %buildroot/%docdir %buildroot/%_man3dir/

%make_install install DESTDIR=%buildroot
%make_install install DESTDIR=%buildroot -C doc
%__install -pm644 conf.d/README %buildroot/%_sysconfdir/fonts/conf.d/

%__install -pm644 conf.d/README %buildroot/%_sysconfdir/fonts/conf.d/
%__install -pm644 doc/Fc*.3 %buildroot/%_man3dir/


# our fonts.conf

%__install -pm644 %SOURCE1 %buildroot/%_sysconfdir/fonts/alt-generic-names.conf
%__install -pm644 %SOURCE2 %buildroot/%_sysconfdir/fonts/alt-pre-user.conf
%__install -pm644 %SOURCE3 %buildroot/%_sysconfdir/fonts/alt-post-user.conf
> %buildroot/%_sysconfdir/fonts/local.conf

# firsttime update fonts cache

%__mkdir_p %buildroot/%_sysconfdir/firsttime.d/
%__install -m 0755 %SOURCE10 %buildroot/%_sysconfdir/firsttime.d/%name

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

%postun -p %postun_ldconfig

%files
%doc README AUTHORS ChangeLog doc/fontconfig-user.html doc/fontconfig-user.txt
%_bindir/fc-cache
%_bindir/fc-list
%_bindir/fc-match
%config %_sysconfdir/firsttime.d/%name
%dir %_sysconfdir/fonts
%config %_sysconfdir/fonts/fonts.dtd
%config %_sysconfdir/fonts/fonts.conf
%config %_sysconfdir/fonts/alt-*.conf
%ghost %config(missingok,noreplace) %_sysconfdir/fonts/local.conf
%dir %_sysconfdir/fonts/conf.d/
%config(noreplace) %_sysconfdir/fonts/conf.d/*
%_sysconfdir/fonts/conf.d/README
%_libdir/*.so.*
%_man1dir/*
%_man5dir/*

%files devel
%doc README AUTHORS ChangeLog doc/fontconfig-devel/ doc/fontconfig-devel.txt doc/fontconfig-devel.txt
%_libdir/*.so
%_libdir/pkgconfig/*
%_includedir/*
%_man3dir/*
%dir %docdir

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

%changelog

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

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