]>
Commit | Line | Data |
---|---|---|
627da52e ER |
1 | %define priority 65-1 |
2 | %define ppriority 65-0 | |
3 | %define fontname vlgothic | |
4 | %define archivename VLGothic-%{version} | |
5 | %define fontconf %{priority}-%{fontname}-gothic | |
6 | %define pfontconf %{ppriority}-%{fontname}-pgothic | |
7 | ||
8 | Summary: Japanese TrueType font | |
9 | Name: fonts-TTF-vlgothic | |
10 | Version: 20101218 | |
11 | Release: 1 | |
12 | License: mplus and BSD | |
13 | Group: Fonts | |
14 | URL: http://dicey.org/vlgothic | |
15 | Source0: http://osdn.dl.sourceforge.jp/vlgothic/50227/%{archivename}.tar.bz2 | |
16 | # Source0-md5: 26bfe3ee8b71828194a589616f397202 | |
17 | Source1: %{fontname}-fontconfig-pgothic.conf | |
18 | Source2: %{fontname}-fontconfig-gothic.conf | |
19 | Provides: %{fontname}-p-fonts = %{version}-%{release} | |
20 | Provides: VLGothic-fonts = %{version}-%{release} | |
21 | Provides: VLGothic-fonts-proportional = %{version}-%{release} | |
22 | Obsoletes: %{fontname}-p-fonts < 20101218-1 | |
23 | Obsoletes: VLGothic-fonts < 20090204-1 | |
24 | Obsoletes: VLGothic-fonts-proportional < 20090204-1 | |
25 | BuildArch: noarch | |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
27 | ||
28 | %define _ttffontsdir %{_fontsdir}/TTF | |
29 | ||
30 | %description | |
31 | VLGothic provides Japanese TrueType fonts from the Vine Linux project. | |
32 | Most of the glyphs are taken from the M+ and Sazanami Gothic fonts, | |
33 | but some have also been improved by the project. | |
34 | ||
35 | %prep | |
36 | %setup -q -n VLGothic | |
37 | ||
38 | %install | |
39 | rm -rf $RPM_BUILD_ROOT | |
40 | install -d $RPM_BUILD_ROOT{%{_sysconfdir}/fonts/{conf.avail,conf.d},%{_ttffontsdir}} | |
41 | cp -p *.ttf $RPM_BUILD_ROOT%{_ttffontsdir} | |
42 | install -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.avail/%{pfontconf}.conf | |
43 | install -p %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.avail/%{fontconf}.conf | |
44 | ln -s ../conf.avail/%{pfontconf}.conf $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d | |
45 | ln -s ../conf.avail/%{fontconf}.conf $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d | |
46 | ||
47 | %clean | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | ||
50 | %files | |
51 | %defattr(644,root,root,755) | |
52 | %doc README* LICENSE* | |
53 | %{_sysconfdir}/fonts/conf.avail/*.conf | |
54 | %{_sysconfdir}/fonts/conf.d/*.conf | |
55 | %{_fontsdir}/TTF/VL-Gothic-Regular.ttf | |
56 | %{_fontsdir}/TTF/VL-PGothic-Regular.ttf |