]>
Commit | Line | Data |
---|---|---|
0541c18e AM |
1 | %define _name AnonymousPro |
2 | Summary: A set of fixed-width fonts designed with coding in mind | |
3 | Name: fonts-TTF-%{_name} | |
4 | Version: 1.002 | |
5 | Release: 1 | |
6 | License: OFL | |
7 | Group: Fonts | |
8 | Source0: http://www.marksimonson.com/assets/content/fonts/AnonymousPro-%{version}.zip | |
9 | # Source0-md5: bb5141b20b9d69b3190be03e5706c8b7 | |
10 | Source1: %{name}-fontconfig.conf | |
11 | URL: http://www.marksimonson.com/fonts/view/anonymous-pro | |
12 | BuildRequires: unzip | |
13 | Requires(post,postun): fontpostinst | |
14 | BuildArch: noarch | |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
16 | ||
17 | %define ttffontsdir %{_fontsdir}/TTF | |
18 | ||
19 | %description | |
20 | Anonymous Pro (2009) is a family of four fixed-width fonts designed | |
21 | with coding in mind. Anonymous Pro features an international, | |
22 | Unicode-based character set, with support for most Western and Central | |
23 | European Latin-based languages, plus Greek and Cyrillic. Anonymous Pro | |
24 | is based on an earlier font, Anonymous(TM) (2001), my TrueType version | |
25 | of Anonymous 9, a Macintosh bitmap font developed in the mid-’90s by | |
26 | Susan Lesch and David Lamkins. | |
27 | ||
28 | %prep | |
29 | %setup -q -c | |
30 | ||
31 | %install | |
32 | rm -rf $RPM_BUILD_ROOT | |
33 | cd %{_name}-%{version}.* | |
34 | ||
35 | install -d $RPM_BUILD_ROOT{%{ttffontsdir},%{_datadir}/fontconfig/conf.avail,%{_sysconfdir}/fonts/conf.d} | |
36 | ||
37 | install -p *.ttf $RPM_BUILD_ROOT%{ttffontsdir} | |
38 | install -p %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/fontconfig/conf.avail/%{name}.conf | |
39 | ln -s %{_datadir}/fontconfig/conf.avail/%{name}.conf $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d/ | |
40 | ||
41 | %clean | |
42 | rm -rf $RPM_BUILD_ROOT | |
43 | ||
44 | %post | |
45 | fontpostinst TTF | |
46 | ||
47 | %postun | |
48 | fontpostinst TTF | |
49 | ||
50 | %files | |
51 | %defattr(644,root,root,755) | |
52 | %{ttffontsdir}/*.ttf | |
53 | %{_sysconfdir}/fonts/conf.d/%{name}.conf | |
54 | %{_datadir}/fontconfig/conf.avail/%{name}.conf |