1 | %define _fontdir %{_datadir}/fonts/%{name} |
---|
2 | |
---|
3 | Summary: monospaced font designed for code listings |
---|
4 | Name: OpenType-inconsolata |
---|
5 | Version: 001.010 |
---|
6 | Release: 2%{?_dist_release} |
---|
7 | License: SIL OFL v1.1 |
---|
8 | Group: User Interface/X |
---|
9 | URL: http://www.levien.com/type/myfonts/inconsolata.html |
---|
10 | Source0: http://www.levien.com/type/myfonts/Inconsolata.otf |
---|
11 | Source1: http://www.levien.com/type/myfonts/textest.pdf |
---|
12 | Source2: http://www.levien.com/type/myfonts/Inconsolata.sfd |
---|
13 | Source3: http://www.levien.com/type/myfonts/Inconsolata.pfa |
---|
14 | |
---|
15 | ## OFL.txt and OFL-FAQ.txt are downloaded from http://scripts.sil.org/ |
---|
16 | Source10: OFL.txt |
---|
17 | Source11: OFL-FAQ.txt |
---|
18 | |
---|
19 | BuildArch: noarch |
---|
20 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot |
---|
21 | |
---|
22 | %description |
---|
23 | Inconsolata is a monospace font, designed for code listings and the like, |
---|
24 | in print. There are a great many "programmer fonts," designed primarily |
---|
25 | for use on the screen, but in most cases do not have the attention to |
---|
26 | detail for high resolution rendering. |
---|
27 | |
---|
28 | %prep |
---|
29 | %setup -T -c -n %{name}-%{version} |
---|
30 | %__cp %{SOURCE1} %{SOURCE10} %{SOURCE11} . || exit 1 |
---|
31 | |
---|
32 | %build |
---|
33 | |
---|
34 | %install |
---|
35 | %__rm -rf $RPM_BUILD_ROOT |
---|
36 | |
---|
37 | %__mkdir_p $RPM_BUILD_ROOT%{_fontdir} |
---|
38 | %__cp -a %{SOURCE0} $RPM_BUILD_ROOT%{_fontdir}/ |
---|
39 | |
---|
40 | %clean |
---|
41 | %__rm -rf $RPM_BUILD_ROOT |
---|
42 | |
---|
43 | %post |
---|
44 | %__font_install_post %{_fontdir} |
---|
45 | |
---|
46 | %postun |
---|
47 | %__font_install_postun %{_fontdir} |
---|
48 | |
---|
49 | %files |
---|
50 | %defattr(-,root,root,-) |
---|
51 | %doc textest.pdf OFL.txt OFL-FAQ.txt |
---|
52 | %{_fontdir}/Inconsolata.otf |
---|
53 | |
---|
54 | %changelog |
---|
55 | * Sun Jan 12 2014 TANAKA hiroaki <mosaicist@jcom.home.ne.jp> 001.010-2 |
---|
56 | - rebuilt with gcc-4.8 |
---|
57 | |
---|
58 | * Sun Jun 5 2011 Munehiro Yamamoto <munepi@vinelinux.org> 001.010-1 |
---|
59 | - Initial build. |
---|