]>
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} | |
944f7c9e AM |
4 | Version: 1.010 |
5 | Release: 1 | |
8283d6dc AM |
6 | License: OFL |
7 | Group: Fonts | |
8 | Source0: http://downloads.sourceforge.net/sourcecodepro.adobe/SourceCodePro_FontsOnly-%{version}.zip | |
944f7c9e | 9 | # Source0-md5: b13521e8ff303f6940509f3dde96aec3 |
8283d6dc AM |
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 | ||
944f7c9e | 30 | install -p OTF/*.otf $RPM_BUILD_ROOT%{otffontsdir} |
8283d6dc AM |
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 |