]>
Commit | Line | Data |
---|---|---|
8283d6dc AM |
1 | %define _name SourceCodePro |
2 | Summary: Adobe Source Code Pro - A set of OpenType fonts for coders | |
3 | Name: fonts-OTF-Adobe-%{_name} | |
4 | Version: 1.009 | |
88e04c4b | 5 | Release: 2 |
8283d6dc AM |
6 | License: OFL |
7 | Group: Fonts | |
8 | Source0: http://downloads.sourceforge.net/sourcecodepro.adobe/SourceCodePro_FontsOnly-%{version}.zip | |
9 | # Source0-md5: dfc882152ec1ed85dc1178529c54b7a5 | |
10 | Source1: %{name}-fontconfig.conf | |
11 | URL: http://sourceforge.net/projects/sourcecodepro.adobe/ | |
12 | BuildRequires: unzip | |
13 | Requires(post,postun): fontpostinst | |
14 | BuildArch: noarch | |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
16 | ||
17 | %define otffontsdir %{_fontsdir}/OTF | |
18 | ||
19 | %description | |
20 | Source Sans is a set of monospaced OpenType fonts that have been | |
21 | designed to work well coding environments. | |
22 | ||
23 | %prep | |
24 | %setup -q -n SourceCodePro_FontsOnly-%{version} | |
25 | ||
26 | %install | |
27 | rm -rf $RPM_BUILD_ROOT | |
28 | install -d $RPM_BUILD_ROOT{%{otffontsdir},%{_datadir}/fontconfig/conf.avail,%{_sysconfdir}/fonts/conf.d} | |
29 | ||
30 | install -p *.otf $RPM_BUILD_ROOT%{otffontsdir} | |
31 | install -p %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/fontconfig/conf.avail/%{name}.conf | |
32 | ln -s %{_datadir}/fontconfig/conf.avail/%{name}.conf $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d/ | |
33 | ||
34 | %clean | |
35 | rm -rf $RPM_BUILD_ROOT | |
36 | ||
37 | %post | |
38 | fontpostinst OTF | |
39 | ||
40 | %postun | |
41 | fontpostinst OTF | |
42 | ||
43 | %files | |
44 | %defattr(644,root,root,755) | |
45 | %{otffontsdir}/*.otf | |
46 | %{_sysconfdir}/fonts/conf.d/%{name}.conf | |
47 | %{_datadir}/fontconfig/conf.avail/%{name}.conf |