]> git.pld-linux.org Git - packages/fonts-OTF-Adobe-SourceCodePro.git/blob - fonts-OTF-Adobe-SourceCodePro.spec
- new urls
[packages/fonts-OTF-Adobe-SourceCodePro.git] / fonts-OTF-Adobe-SourceCodePro.spec
1 # NOTE: there are also TTF fonts in tarball
2 Summary:        Adobe Source Code Pro - A set of OpenType fonts for coders
3 Summary(pl.UTF-8):      Adobe Source Code Pro - zbiór fontów OpenType dla programistów
4 Name:           fonts-OTF-Adobe-SourceCodePro
5 Version:        1.017
6 Release:        1
7 License:        OFL v1.1
8 Group:          Fonts
9 Source0:        https://github.com/adobe-fonts/source-code-pro/archive/%{version}R.tar.gz
10 # Source0-md5:  6f8609cb05afbafc01a5b4d5b7c99cc7
11 Source1:        %{name}-fontconfig.conf
12 URL:            http://adobe-fonts.github.io/source-code-pro/
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
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
28 %prep
29 %setup -q -n source-code-pro-%{version}R
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
35 install -p OTF/*.otf $RPM_BUILD_ROOT%{otffontsdir}
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)
50 %doc LICENSE.txt ReadMe.html SourceCodeProReadMe.html
51 %{otffontsdir}/SourceCodePro-*.otf
52 %{_sysconfdir}/fonts/conf.d/%{name}.conf
53 %{_datadir}/fontconfig/conf.avail/%{name}.conf
This page took 0.058708 seconds and 3 git commands to generate.