]> git.pld-linux.org Git - packages/fonts-TTF-vlgothic.git/blame - fonts-TTF-vlgothic.spec
- new, based on fedora vlgothic-fonts package
[packages/fonts-TTF-vlgothic.git] / fonts-TTF-vlgothic.spec
CommitLineData
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
8Summary: Japanese TrueType font
9Name: fonts-TTF-vlgothic
10Version: 20101218
11Release: 1
12License: mplus and BSD
13Group: Fonts
14URL: http://dicey.org/vlgothic
15Source0: http://osdn.dl.sourceforge.jp/vlgothic/50227/%{archivename}.tar.bz2
16# Source0-md5: 26bfe3ee8b71828194a589616f397202
17Source1: %{fontname}-fontconfig-pgothic.conf
18Source2: %{fontname}-fontconfig-gothic.conf
19Provides: %{fontname}-p-fonts = %{version}-%{release}
20Provides: VLGothic-fonts = %{version}-%{release}
21Provides: VLGothic-fonts-proportional = %{version}-%{release}
22Obsoletes: %{fontname}-p-fonts < 20101218-1
23Obsoletes: VLGothic-fonts < 20090204-1
24Obsoletes: VLGothic-fonts-proportional < 20090204-1
25BuildArch: noarch
26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28%define _ttffontsdir %{_fontsdir}/TTF
29
30%description
31VLGothic provides Japanese TrueType fonts from the Vine Linux project.
32Most of the glyphs are taken from the M+ and Sazanami Gothic fonts,
33but some have also been improved by the project.
34
35%prep
36%setup -q -n VLGothic
37
38%install
39rm -rf $RPM_BUILD_ROOT
40install -d $RPM_BUILD_ROOT{%{_sysconfdir}/fonts/{conf.avail,conf.d},%{_ttffontsdir}}
41cp -p *.ttf $RPM_BUILD_ROOT%{_ttffontsdir}
42install -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.avail/%{pfontconf}.conf
43install -p %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.avail/%{fontconf}.conf
44ln -s ../conf.avail/%{pfontconf}.conf $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d
45ln -s ../conf.avail/%{fontconf}.conf $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d
46
47%clean
48rm -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
This page took 0.26879 seconds and 4 git commands to generate.