From: "Valery V. Inozemtsev" <shrek@altlinux.ru>
To: ALT Devel discussion list <devel@lists.altlinux.org>, lav@etersoft.ru
Subject: Re: [devel] fonts policy
Date: Mon, 3 Sep 2007 17:35:17 +0400
Message-ID: <200709031735.25134.shrek@altlinux.ru> (raw)
In-Reply-To: <200709031256.26736.shrek@altlinux.ru>
[-- Attachment #1.1: Type: text/plain, Size: 251 bytes --]
В сообщении от 3 сентября 2007 Valery V. Inozemtsev написал(a):
> Hi!
>
> опубликован новый fonts policy
> http://www.freesource.info/wiki/Altlinux/Policy/Fonts
> жду замечаний/дополнений/пожеланий
патчь для rpm-build-fonts
--
Valery V. Inozemtsev
[-- Attachment #1.2: rpm-build-fonts-0.1-new-policy.patch --]
[-- Type: text/x-diff, Size: 4948 bytes --]
--- rpm-build-fonts-0.1/macros.orig 2007-01-12 03:50:54 +0300
+++ rpm-build-fonts-0.1/macros 2007-09-03 17:33:31 +0400
@@ -3,6 +3,7 @@
# 12.02.2006, 12.01.2007
#
+%_fontpathdir %_sysconfdir/X11/fontpath.d
%_fontsdir %_datadir/fonts
%_bitmapfontsdir %_fontsdir/bitmap
%_type1fontsdir %_fontsdir/type1
@@ -11,7 +12,7 @@
%fonts_requires \
BuildRequires: rpm-build-fonts \
-PreReq: chkfontpath fontconfig \
+PreReq: fontconfig >= 2.4.2 \
%nil
# for use in %%install section (use with name of font family)
@@ -22,13 +23,16 @@ PreReq: chkfontpath fontconfig \
mkdir -p %buildroot%__currentfontsdir \
cat <<EOF >%{1}.files \
%%dir %__currentfontsdir \
-%%config %__currentfontsdir/fonts.cache-1 \
-%%config %__currentfontsdir/fonts.dir \
+%__currentfontsdir/fonts.scale \
+%__currentfontsdir/fonts.dir \
+%_fontpathdir/ttf-%{1}:pri=50 \
EOF\
install -p -m644 *.ttf %buildroot%__currentfontsdir/ \
find %buildroot%__currentfontsdir/ -name "*.ttf" | sed -e "s|%buildroot||g" >>%{1}.files \
-%_sbindir/ttmkfdir -f %{1} -o %buildroot%__currentfontsdir/fonts.dir \
-touch %buildroot%__currentfontsdir/fonts.cache-1 \
+%_bindir/mkfontscale %buildroot%__currentfontsdir/ \
+ln -s fonts.scale %buildroot%__currentfontsdir/fonts.dir \
+mkdir -p %buildroot%_fontpathdir \
+ln -s ../../..%__currentfontsdir %buildroot%_fontpathdir/ttf-%{1}:pri=50 \
%nil
# TODO: split common parts
@@ -40,13 +44,16 @@ touch %buildroot%__currentfontsdir/fonts
mkdir -p %buildroot%__currentfontsdir \
cat <<EOF >%{1}.files \
%%dir %__currentfontsdir \
-%%config %__currentfontsdir/fonts.cache-1 \
-%%config %__currentfontsdir/fonts.dir \
+%__currentfontsdir/fonts.scale \
+%__currentfontsdir/fonts.dir \
+%_fontpathdir/otf-%{1}:pri=50 \
EOF\
install -p -m644 *.otf %buildroot%__currentfontsdir/ \
find %buildroot%__currentfontsdir/ -name "*.otf" | sed -e "s|%buildroot||g" >>%{1}.files \
-%_sbindir/ttmkfdir -f %{1} -o %buildroot%__currentfontsdir/fonts.dir \
-touch %buildroot%__currentfontsdir/fonts.cache-1 \
+%_bindir/mkfontscale %buildroot%__currentfontsdir \
+ln -s fonts.scale %buildroot%__currentfontsdir/fonts.dir \
+mkdir -p %buildroot%_fontpathdir \
+ln -s ../../..%__currentfontsdir %buildroot%_fontpathdir/otf-%{1}:pri=50 \
%nil
@@ -56,13 +63,18 @@ touch %buildroot%__currentfontsdir/fonts
mkdir -p %buildroot%__type1dir \
cat <<EOF >%{1}.files \
%%dir %__type1dir \
-%%config %__type1dir/fonts.cache-1 \
-%%config %__type1dir/fonts.dir \
+%__type1dir/fonts.scale \
+%__type1dir/fonts.dir \
+%_fontpathdir/type1-%{1}:pri=40 \
EOF\
-install -p -m644 *.afm *.pfb %buildroot%__type1dir \
+find -name \*.afm -exec install -p -m644 -t %buildroot%__type1dir {} \; \
+find -name \*.pfb -exec install -p -m644 -t %buildroot%__type1dir {} \; \
+find -name \*.pfa -exec install -p -m644 -t %buildroot%__type1dir {} \; \
find %buildroot%__type1dir/ -name "*.*" | sed -e "s|%buildroot||g" >>%{1}.files \
-mkfontdir %buildroot%__type1dir \
-touch %buildroot%__type1dir/fonts.cache-1 \
+mkfontscale %buildroot%__type1dir \
+ln -s fonts.scale %buildroot%__type1dir/fonts.dir \
+mkdir -p %buildroot%_fontpathdir \
+ln -s ../../..%__type1dir %buildroot%_fontpathdir/type1-%{1}:pri=40 \
%nil
%bitmap_fonts_install() \
@@ -71,25 +83,25 @@ touch %buildroot%__type1dir/fonts.cache-
mkdir -p %buildroot%__currentfontsdir \
cat <<EOF >%{1}.files \
%%dir %__currentfontsdir \
-%%config %__currentfontsdir/fonts.cache-1 \
-%%config %__currentfontsdir/fonts.dir \
+%__currentfontsdir/fonts.dir \
+%_fontpathdir/bitmap-%{1}:pri=20 \
EOF\
install -p -m644 *.pcf.gz %buildroot%__currentfontsdir/ \
-find %buildroot%__currentfontsdir/ -name "*.otf" | sed -e "s|%buildroot||g" >>%{1}.files \
-%_sbindir/ttmkfdir -f %{1} -o %buildroot%__currentfontsdir/fonts.dir \
-touch %buildroot%__currentfontsdir/fonts.cache-1 \
+find %buildroot%__currentfontsdir/ -name "*.pcf.gz" | sed -e "s|%buildroot||g" >>%{1}.files \
+%_bindir/mkfontdir %buildroot%__currentfontsdir \
+mkdir -p %buildroot%_fontpathdir \
+ln -s ../../..%__currentfontsdir %buildroot%_fontpathdir/bitmap-%{1}:pri=20 \
%nil
# for use in %%post section
%post_fonts \
%_bindir/fc-cache %__currentfontsdir || : \
-%_sbindir/chkfontpath -q --add %__currentfontsdir || : \
%nil
# for use in %%postun section
%postun_fonts \
if [ "$1" = "0" ]; then \
-%_sbindir/chkfontpath -q --remove %__currentfontsdir || : \
+%_bindir/fc-cache --system-only || : \
fi \
%nil
--- rpm-build-fonts-0.1/rpm-build-fonts.spec.orig 2007-01-12 03:51:40 +0300
+++ rpm-build-fonts-0.1/rpm-build-fonts.spec 2007-09-03 17:23:50 +0400
@@ -13,7 +13,7 @@ BuildArch: noarch
BuildRequires: rpm-build-compat
# for ttf, type1 fonts indexing
-Requires: ttmkfdir xorg-x11-font-utils mkfontdir
+Requires: xorg-x11-font-utils
%description
RPM helper scripts for build fonts packages.
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2007-09-03 13:35 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-03 8:56 Valery V. Inozemtsev
2007-09-03 13:35 ` Valery V. Inozemtsev [this message]
2007-09-03 17:25 ` Michael Shigorin
2007-09-03 17:33 ` Valery V. Inozemtsev
2007-09-03 21:20 ` Michael Shigorin
2007-09-04 6:15 ` Valery V. Inozemtsev
2007-09-04 16:58 ` Michael Shigorin
2007-09-04 17:03 ` Valery V. Inozemtsev
2007-09-03 18:16 ` Dmitry V. Levin
2007-09-03 18:26 ` Valery V. Inozemtsev
2007-09-03 18:32 ` Dmitry V. Levin
2007-09-04 8:04 ` Денис Смирнов
2007-09-04 9:05 ` Vladimir V. Kamarzin
2007-09-04 22:50 ` Денис Смирнов
2007-09-05 18:05 ` [devel] monit Michael Shigorin
2007-09-07 13:14 ` Денис Смирнов
2007-09-04 13:55 ` [devel] fonts policy Igor Zubkov
2007-09-04 16:20 ` [devel] [JT] Re: SIP Anton Farygin
2007-09-04 16:32 ` Igor Zubkov
2007-09-04 18:15 ` Anton Farygin
2007-09-04 19:34 ` Igor Zubkov
2007-09-04 22:47 ` Денис Смирнов
2007-09-04 22:46 ` [devel] fonts policy Денис Смирнов
2007-09-04 8:08 ` Денис Смирнов
2007-09-04 13:18 ` [devel] freesource.info -- просьва востановить страницу (was: Re: fonts policy) Aleksey Avdeev
2007-09-04 17:00 ` Michael Shigorin
2007-09-04 22:45 ` Денис Смирнов
2007-09-04 23:59 ` Денис Смирнов
2007-09-05 9:30 ` [devel] freesource.info -- просьва востановить страницу Aleksey Avdeev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200709031735.25134.shrek@altlinux.ru \
--to=shrek@altlinux.ru \
--cc=devel@lists.altlinux.org \
--cc=lav@etersoft.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git