Репозитории 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 |
Группа :: Система/Настройка/Прочее
Пакет: fontconfig
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%define docdir %_docdir/%name-%version
Name: fontconfig
Version: 2.7.2
Release: alt1
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
BuildRequires: docbook-utils-print elinks gcc-c++ libfreetype-devel libexpat-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.
%prep
%setup -q
%patch -p1
%build
%autoreconf
%configure \
--disable-static \
--with-docdir=%docdir \
--with-default-fonts=%_datadir/fonts \
--with-cache-dir=%_var/cache/%name
%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
[ -n "$DURING_INSTALL" ] || %_sysconfdir/firsttime.d/%name
%triggerin -- %name <= 2.3.2
find %_datadir/fonts -depth -type f -name fonts.cache-1 -delete
%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/*
%changelog
…
Полный changelog можно просмотреть здесь
Name: fontconfig
Version: 2.7.2
Release: alt1
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
BuildRequires: docbook-utils-print elinks gcc-c++ libfreetype-devel libexpat-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.
%prep
%setup -q
%patch -p1
%build
%autoreconf
%configure \
--disable-static \
--with-docdir=%docdir \
--with-default-fonts=%_datadir/fonts \
--with-cache-dir=%_var/cache/%name
%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
[ -n "$DURING_INSTALL" ] || %_sysconfdir/firsttime.d/%name
%triggerin -- %name <= 2.3.2
find %_datadir/fonts -depth -type f -name fonts.cache-1 -delete
%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/*
%changelog
…
Полный changelog можно просмотреть здесь