]>
Commit | Line | Data |
---|---|---|
46a14f35 | 1 | # NOTE: there are also TTF fonts in tarball |
8283d6dc | 2 | Summary: Adobe Source Code Pro - A set of OpenType fonts for coders |
46a14f35 JB |
3 | Summary(pl.UTF-8): Adobe Source Code Pro - zbiór fontów OpenType dla programistów |
4 | Name: fonts-OTF-Adobe-SourceCodePro | |
d63f6079 | 5 | Version: 1.017 |
944f7c9e | 6 | Release: 1 |
46a14f35 | 7 | License: OFL v1.1 |
8283d6dc | 8 | Group: Fonts |
ee83cb5f AM |
9 | Source0: https://github.com/adobe-fonts/source-code-pro/archive/%{version}R.tar.gz |
10 | # Source0-md5: 6f8609cb05afbafc01a5b4d5b7c99cc7 | |
8283d6dc | 11 | Source1: %{name}-fontconfig.conf |
ee83cb5f | 12 | URL: http://adobe-fonts.github.io/source-code-pro/ |
8283d6dc AM |
13 | BuildRequires: unzip |
14 | Requires(post,postun): fontpostinst | |
15 | BuildArch: noarch | |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
17 | ||
18 | %define otffontsdir %{_fontsdir}/OTF | |
19 | ||
20 | %description | |
21 | Source Sans is a set of monospaced OpenType fonts that have been | |
22 | designed to work well coding environments. | |
23 | ||
46a14f35 JB |
24 | %description -l pl.UTF-8 |
25 | Source Sans to zbiór fontów OpenType o stałej szerokości znaku, | |
26 | zaprojektowany z myślą o środowiskach programistycznych. | |
27 | ||
8283d6dc | 28 | %prep |
ee83cb5f | 29 | %setup -q -n source-code-pro-%{version}R |
8283d6dc AM |
30 | |
31 | %install | |
32 | rm -rf $RPM_BUILD_ROOT | |
33 | install -d $RPM_BUILD_ROOT{%{otffontsdir},%{_datadir}/fontconfig/conf.avail,%{_sysconfdir}/fonts/conf.d} | |
34 | ||
944f7c9e | 35 | install -p OTF/*.otf $RPM_BUILD_ROOT%{otffontsdir} |
8283d6dc AM |
36 | install -p %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/fontconfig/conf.avail/%{name}.conf |
37 | ln -s %{_datadir}/fontconfig/conf.avail/%{name}.conf $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d/ | |
38 | ||
39 | %clean | |
40 | rm -rf $RPM_BUILD_ROOT | |
41 | ||
42 | %post | |
43 | fontpostinst OTF | |
44 | ||
45 | %postun | |
46 | fontpostinst OTF | |
47 | ||
48 | %files | |
49 | %defattr(644,root,root,755) | |
46a14f35 JB |
50 | %doc LICENSE.txt ReadMe.html SourceCodeProReadMe.html |
51 | %{otffontsdir}/SourceCodePro-*.otf | |
8283d6dc AM |
52 | %{_sysconfdir}/fonts/conf.d/%{name}.conf |
53 | %{_datadir}/fontconfig/conf.avail/%{name}.conf |