]>
Commit | Line | Data |
---|---|---|
17f9727d AM |
1 | %define _name SourceSansPro |
2 | Summary: Adobe Source Sans Pro - A set of OpenType fonts designed for user interfaces | |
3 | Name: fonts-OTF-Adobe-%{_name} | |
4 | Version: 1.033 | |
5 | Release: 1 | |
6 | License: OFL | |
7 | Group: Fonts | |
f992b572 AM |
8 | Source0: http://downloads.sourceforge.net/sourcesans.adobe/SourceSansPro_FontsOnly-%{version}.zip |
9 | # Source0-md5: 3c9453d754d044175c1082bdf2ab032a | |
17f9727d AM |
10 | Source1: %{name}-fontconfig.conf |
11 | URL: http://sourceforge.net/projects/sourcesans.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 OpenType fonts that have been designed to work | |
21 | well in user interface (UI) environments, as well as in text setting | |
22 | for screen and print. | |
23 | ||
24 | %prep | |
25 | %setup -q -n SourceSansPro_FontsOnly-%{version} | |
26 | ||
27 | %install | |
28 | rm -rf $RPM_BUILD_ROOT | |
29 | install -d $RPM_BUILD_ROOT{%{otffontsdir},%{_datadir}/fontconfig/conf.avail,%{_sysconfdir}/fonts/conf.d} | |
30 | ||
31 | install -p OTF/*.otf $RPM_BUILD_ROOT%{otffontsdir} | |
32 | install -p %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/fontconfig/conf.avail/%{name}.conf | |
33 | ln -s %{_datadir}/fontconfig/conf.avail/%{name}.conf $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d/ | |
34 | ||
35 | %clean | |
36 | rm -rf $RPM_BUILD_ROOT | |
37 | ||
38 | %post | |
39 | fontpostinst OTF | |
40 | ||
41 | %postun | |
42 | fontpostinst OTF | |
43 | ||
44 | %files | |
45 | %defattr(644,root,root,755) | |
46 | %{otffontsdir}/*.otf | |
f992b572 AM |
47 | %{_sysconfdir}/fonts/conf.d/%{name}.conf |
48 | %{_datadir}/fontconfig/conf.avail/%{name}.conf |