3 %define fontname vlgothic
4 %define archivename VLGothic-%{version}
5 %define fontconf %{priority}-%{fontname}-gothic
6 %define pfontconf %{ppriority}-%{fontname}-pgothic
8 Summary: Japanese TrueType font
9 Name: fonts-TTF-vlgothic
12 License: mplus and BSD
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
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 %define _ttffontsdir %{_fontsdir}/TTF
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.
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
48 rm -rf $RPM_BUILD_ROOT
51 %defattr(644,root,root,755)
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