ALT Linux repositórios
Group :: Sistema/Configurações/Rede
RPM: fontconfig
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%define docdir %_docdir/%name-%version
%def_disable static
%def_disable libxml2
Name: fontconfig
Version: 2.4.2
Release: alt3
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: http://fontconfig.org/release/%name-%version.tar.gz
Source1: fontconfig-fc-conf.tar.bz2
Source4: %name-2.4.2.map
Source10: %name-firsttime
Source20: %name-10-antialias.conf
Source21: %name-10-no-antialias.conf
Source22: %name-10-style-full.conf
Source23: %name-10-style-light.conf
Source24: %name-10-style-medium.conf
Source25: %name-10-style-none.conf
Source26: %name-40-generic.conf
Source27: %name-60-alt-post-user.conf
Source28: %name-10-hinting.conf
Patch0: fontconfig-2.4.2-git-FcPatternDuplicate.patch
Patch1: fontconfig-2.4.2-git-rehash.patch
Patch2: fontconfig-2.4.2-git-glyph-name-buffer.patch
Patch3: fontconfig-2.4.2-git-FcDirCacheUnlink-bug11756.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 -a1
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%__install -m644 %SOURCE4 src/symver.map
%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 export_symbols=-Wl,--version-script=symver.map
cd fc-conf
%make
%install
%make DESTDIR=%buildroot install
%__install -m0755 fc-conf/fc-conf %buildroot%_bindir
%__rm -f %buildroot%_sysconfdir/fonts/conf.d/*{latin,unifont}.conf
%__install -m644 %SOURCE20 %buildroot%_sysconfdir/fonts/conf.avail/10-antialias.conf
%__install -m644 %SOURCE21 %buildroot%_sysconfdir/fonts/conf.avail/10-no-antialias.conf
%__install -m644 %SOURCE22 %buildroot%_sysconfdir/fonts/conf.avail/10-style-full.conf
%__install -m644 %SOURCE23 %buildroot%_sysconfdir/fonts/conf.avail/10-style-light.conf
%__install -m644 %SOURCE24 %buildroot%_sysconfdir/fonts/conf.avail/10-style-medium.conf
%__install -m644 %SOURCE25 %buildroot%_sysconfdir/fonts/conf.avail/10-style-none.conf
%__install -m644 %SOURCE28 %buildroot%_sysconfdir/fonts/conf.avail/10-hinting.conf
%__install -m644 %SOURCE26 %buildroot%_sysconfdir/fonts/conf.avail/40-generic.conf
%__install -m644 %SOURCE27 %buildroot%_sysconfdir/fonts/conf.avail/60-alt-post-user.conf
cd %buildroot%_sysconfdir/fonts/conf.d
%__ln_s ../conf.avail/60-alt-post-user.conf .
%__ln_s ../conf.avail/10*.conf .
# our fonts.conf
> %buildroot%_sysconfdir/fonts/local.conf
# firsttime update fonts cache
%__install -Dp -m755 %SOURCE10 %buildroot%_sysconfdir/firsttime.d/%name
%post
%post_ldconfig
[ -n "$DURING_INSTALL" ] || %_sysconfdir/firsttime.d/%name
%triggerin -- %name <= 2.3.2
/bin/find %_datadir/fonts -depth -type f -name fonts.cache-1 -delete
%postun
%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.avail/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
…
Todas as alterações você pod ver aqui
%def_disable static
%def_disable libxml2
Name: fontconfig
Version: 2.4.2
Release: alt3
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: http://fontconfig.org/release/%name-%version.tar.gz
Source1: fontconfig-fc-conf.tar.bz2
Source4: %name-2.4.2.map
Source10: %name-firsttime
Source20: %name-10-antialias.conf
Source21: %name-10-no-antialias.conf
Source22: %name-10-style-full.conf
Source23: %name-10-style-light.conf
Source24: %name-10-style-medium.conf
Source25: %name-10-style-none.conf
Source26: %name-40-generic.conf
Source27: %name-60-alt-post-user.conf
Source28: %name-10-hinting.conf
Patch0: fontconfig-2.4.2-git-FcPatternDuplicate.patch
Patch1: fontconfig-2.4.2-git-rehash.patch
Patch2: fontconfig-2.4.2-git-glyph-name-buffer.patch
Patch3: fontconfig-2.4.2-git-FcDirCacheUnlink-bug11756.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 -a1
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%__install -m644 %SOURCE4 src/symver.map
%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 export_symbols=-Wl,--version-script=symver.map
cd fc-conf
%make
%install
%make DESTDIR=%buildroot install
%__install -m0755 fc-conf/fc-conf %buildroot%_bindir
%__rm -f %buildroot%_sysconfdir/fonts/conf.d/*{latin,unifont}.conf
%__install -m644 %SOURCE20 %buildroot%_sysconfdir/fonts/conf.avail/10-antialias.conf
%__install -m644 %SOURCE21 %buildroot%_sysconfdir/fonts/conf.avail/10-no-antialias.conf
%__install -m644 %SOURCE22 %buildroot%_sysconfdir/fonts/conf.avail/10-style-full.conf
%__install -m644 %SOURCE23 %buildroot%_sysconfdir/fonts/conf.avail/10-style-light.conf
%__install -m644 %SOURCE24 %buildroot%_sysconfdir/fonts/conf.avail/10-style-medium.conf
%__install -m644 %SOURCE25 %buildroot%_sysconfdir/fonts/conf.avail/10-style-none.conf
%__install -m644 %SOURCE28 %buildroot%_sysconfdir/fonts/conf.avail/10-hinting.conf
%__install -m644 %SOURCE26 %buildroot%_sysconfdir/fonts/conf.avail/40-generic.conf
%__install -m644 %SOURCE27 %buildroot%_sysconfdir/fonts/conf.avail/60-alt-post-user.conf
cd %buildroot%_sysconfdir/fonts/conf.d
%__ln_s ../conf.avail/60-alt-post-user.conf .
%__ln_s ../conf.avail/10*.conf .
# our fonts.conf
> %buildroot%_sysconfdir/fonts/local.conf
# firsttime update fonts cache
%__install -Dp -m755 %SOURCE10 %buildroot%_sysconfdir/firsttime.d/%name
%post
%post_ldconfig
[ -n "$DURING_INSTALL" ] || %_sysconfdir/firsttime.d/%name
%triggerin -- %name <= 2.3.2
/bin/find %_datadir/fonts -depth -type f -name fonts.cache-1 -delete
%postun
%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.avail/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
…
Todas as alterações você pod ver aqui