1 | %define ver 20160519 |
---|
2 | %define rel 1 |
---|
3 | |
---|
4 | %define bonumver 1005 |
---|
5 | %define pagellaver 1632 |
---|
6 | %define scholaver 1533 |
---|
7 | %define termesver 1543 |
---|
8 | |
---|
9 | %define fontname texgyre-math |
---|
10 | %define _fontdir %{_datadir}/fonts/OpenType-%{fontname} |
---|
11 | |
---|
12 | Summary: Maths fonts to match tex-gyre text fonts |
---|
13 | Summary(ja): TeX Gyre数式フォント |
---|
14 | Name: OpenType-%{fontname} |
---|
15 | Version: %{ver} |
---|
16 | Release: %{rel}%{?_dist_release} |
---|
17 | Source0: http://www.gust.org.pl/projects/e-foundry/tg-math/download/texgyrebonum-math-%{bonumver}.zip |
---|
18 | Source1: http://www.gust.org.pl/projects/e-foundry/tg-math/download/texgyrepagella-math-%{pagellaver}.zip |
---|
19 | Source2: http://www.gust.org.pl/projects/e-foundry/tg-math/download/texgyreschola-math-%{scholaver}.zip |
---|
20 | Source3: http://www.gust.org.pl/projects/e-foundry/tg-math/download/texgyretermes-math-%{termesver}.zip |
---|
21 | Source4: GUST-FONT-LICENSE.txt |
---|
22 | License: GUST Font Licens |
---|
23 | Group: User Interface/X |
---|
24 | URL: http://www.gust.org.pl/projects/e-foundry/tg-math |
---|
25 | BuildArch: noarch |
---|
26 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
27 | |
---|
28 | Vendor: Project Vine |
---|
29 | Distribution: Vine Linux |
---|
30 | Packager: ara_t |
---|
31 | |
---|
32 | |
---|
33 | %description |
---|
34 | TeXGyre-Math is a collection of maths fonts to match the text fonts of |
---|
35 | the TeXGyre collection. |
---|
36 | |
---|
37 | TeXGyre-Math-Bonum (to match TeXGyre-Bonum), |
---|
38 | TeXGyre-Math-Pagella (to match TeXGyre-Pagella), |
---|
39 | TeXGyre-Math-Schola (to match TeXGyre-Schola) and |
---|
40 | TeXGyre-Math-Termes (to match TeXGyre-Termes) fonts are provided. |
---|
41 | |
---|
42 | %prep |
---|
43 | %setup -q -T -a 0 -a 1 -a 2 -a 3 -c |
---|
44 | |
---|
45 | %build |
---|
46 | |
---|
47 | %install |
---|
48 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
49 | %{__mkdir_p} ${RPM_BUILD_ROOT}%{_fontdir} |
---|
50 | %{__mkdir_p} ${RPM_BUILD_ROOT}%{_docdir}/%{name} |
---|
51 | %{__install} -m0644 */opentype/*.otf ${RPM_BUILD_ROOT}%{_fontdir} |
---|
52 | %{__install} -m0644 */doc/test-word-texgyre_*_math.{docx,pdf} \ |
---|
53 | ${RPM_BUILD_ROOT}%{_docdir}/%{name} |
---|
54 | %{__install} -m0644 %{SOURCE4} ${RPM_BUILD_ROOT}%{_docdir}/%{name} |
---|
55 | |
---|
56 | %clean |
---|
57 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
58 | |
---|
59 | %post |
---|
60 | %__font_install_post %{_fontdir} |
---|
61 | |
---|
62 | %postun |
---|
63 | %__font_install_postun %{_fontdir} |
---|
64 | |
---|
65 | %files |
---|
66 | %defattr(-,root,root) |
---|
67 | %{_fontdir} |
---|
68 | %{_docdir} |
---|
69 | |
---|
70 | %changelog |
---|
71 | * Sun Oct 08 2017 Toshiaki Ara <ara_t@384.jp> 2.005-1 |
---|
72 | - initial build for Vine Linux |
---|
73 | |
---|