Group :: Sistema/Fontes/X11 bitmap
RPM: fonts-bitmap-cyrillic
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%define _fontsdir %_datadir/fonts/bitmap
Name: fonts-bitmap-cyrillic
Version: 2.3.1
Release: alt7
License: distributable
Source: xrus-2.3.1-src.tgz
Group: System/Fonts/X11 bitmap
Summary: Cyrillic bitmap fonts for the X Window System in koi8-r encoding
Packager: Valery V. Inozemtsev <shrek at altlinux.ru>
PreReq: mkfontdir fontconfig >= 2.4.2
Obsoletes: xorg-x11-cyrillic-fonts
Provides: xorg-x11-cyrillic-fonts = %version-%release
BuildArch: noarch
BuildRequires: xorg-x11-font-utils
%description
Collection of cyrillic raster fonts for X Window System by Andrey A. Chernov.
%prep
%setup -q -n xrus-2.3.1-src
%build
%make X11R6
%install
%make instX11R6 USERDIR=%buildroot%_fontsdir/cyrillic
rm -f %buildroot%_fontsdir/cyrillic/xrus.info
mkdir -p %buildroot%_sysconfdir/X11/fontpath.d
ln -s ../../..%_fontsdir/cyrillic/misc %buildroot%_sysconfdir/X11/fontpath.d/bitmap-cyrillic-misc:unscaled:pri=10
ln -s ../../..%_fontsdir/cyrillic/100dpi %buildroot%_sysconfdir/X11/fontpath.d/bitmap-cyrillic-100dpi:unscaled:pri=10
ln -s ../../..%_fontsdir/cyrillic/75dpi %buildroot%_sysconfdir/X11/fontpath.d/bitmap-cyrillic-75dpi:unscaled:pri=10
%triggerin -- %name <= 2.3.1-alt4
if [ -x %_sbindir/chkfontpath -a -f %_sysconfdir/X11/fs/config ]; then
%_sbindir/chkfontpath -q -r %_fontsdir/cyrillic/misc:unscaled
%_sbindir/chkfontpath -q -r %_fontsdir/cyrillic/75dpi:unscaled
%_sbindir/chkfontpath -q -r %_fontsdir/cyrillic/100dpi:unscaled
fi
%post
mkfontdir %_fontsdir/cyrillic/misc
mkfontdir %_fontsdir/cyrillic/100dpi
mkfontdir %_fontsdir/cyrillic/75dpi
%postun
%_bindir/fc-cache --system-only ||:
%files
%doc README.Winitzki xrus.info
%_sysconfdir/X11/fontpath.d/*
%_fontsdir/cyrillic
%changelog
…
Todas as alterações você pod ver aqui
Name: fonts-bitmap-cyrillic
Version: 2.3.1
Release: alt7
License: distributable
Source: xrus-2.3.1-src.tgz
Group: System/Fonts/X11 bitmap
Summary: Cyrillic bitmap fonts for the X Window System in koi8-r encoding
Packager: Valery V. Inozemtsev <shrek at altlinux.ru>
PreReq: mkfontdir fontconfig >= 2.4.2
Obsoletes: xorg-x11-cyrillic-fonts
Provides: xorg-x11-cyrillic-fonts = %version-%release
BuildArch: noarch
BuildRequires: xorg-x11-font-utils
%description
Collection of cyrillic raster fonts for X Window System by Andrey A. Chernov.
%prep
%setup -q -n xrus-2.3.1-src
%build
%make X11R6
%install
%make instX11R6 USERDIR=%buildroot%_fontsdir/cyrillic
rm -f %buildroot%_fontsdir/cyrillic/xrus.info
mkdir -p %buildroot%_sysconfdir/X11/fontpath.d
ln -s ../../..%_fontsdir/cyrillic/misc %buildroot%_sysconfdir/X11/fontpath.d/bitmap-cyrillic-misc:unscaled:pri=10
ln -s ../../..%_fontsdir/cyrillic/100dpi %buildroot%_sysconfdir/X11/fontpath.d/bitmap-cyrillic-100dpi:unscaled:pri=10
ln -s ../../..%_fontsdir/cyrillic/75dpi %buildroot%_sysconfdir/X11/fontpath.d/bitmap-cyrillic-75dpi:unscaled:pri=10
%triggerin -- %name <= 2.3.1-alt4
if [ -x %_sbindir/chkfontpath -a -f %_sysconfdir/X11/fs/config ]; then
%_sbindir/chkfontpath -q -r %_fontsdir/cyrillic/misc:unscaled
%_sbindir/chkfontpath -q -r %_fontsdir/cyrillic/75dpi:unscaled
%_sbindir/chkfontpath -q -r %_fontsdir/cyrillic/100dpi:unscaled
fi
%post
mkfontdir %_fontsdir/cyrillic/misc
mkfontdir %_fontsdir/cyrillic/100dpi
mkfontdir %_fontsdir/cyrillic/75dpi
%postun
%_bindir/fc-cache --system-only ||:
%files
%doc README.Winitzki xrus.info
%_sysconfdir/X11/fontpath.d/*
%_fontsdir/cyrillic
%changelog
…
Todas as alterações você pod ver aqui