/ courier-prime-fonts / courier-prime-fonts.spec
courier-prime-fonts.spec
 1  %global fontname    courier-prime
 2  %global fontconf    61-%{fontname}.conf
 3  
 4  Name:    %{fontname}-fonts
 5  Version: 1.203
 6  Release: 3%{?dist}
 7  Summary: A free, improved, classical monospaced typeface
 8  
 9  Group:   User Interface/X
10  License: OFL
11  URL:     https://quoteunquoteapps.com/courierprime/
12  Source0: https://quoteunquoteapps.com/courierprime/downloads/courier-prime.zip
13  Source1: %{fontname}-fontconfig.conf
14  
15  BuildArch:     noarch
16  BuildRequires: fontpackages-devel
17  Requires:      fontpackages-filesystem
18  
19  %description
20  Courier Prime is a TrueType monospaced font designed specifically
21  for screenplays. It was designed by Alan Dague-Greene for John August
22  and released by Quote-Unquote Apps under the SIL Open Font License (OFL).
23  
24  
25  %prep
26  %setup -q -c
27  cp -p 'Courier Prime'/*.ttf .
28  cp -p 'Courier Prime'/LICENSE/OFL.txt LICENSE
29  cp -p 'Courier Prime'/LICENSE/OFL-FAQ.txt LICENSE-FAQ
30  cp -p 'Courier Prime'/'Read me.txt' .
31  
32  
33  %install
34  install -m 0755 -d %{buildroot}%{_fontdir}
35  install -m 0644 -p *.ttf %{buildroot}%{_fontdir}
36  
37  install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
38                     %{buildroot}%{_fontconfig_confdir}
39  
40  install -m 0644 -p %{SOURCE1} \
41          %{buildroot}%{_fontconfig_templatedir}/%{fontconf}
42  ln -s %{_fontconfig_templatedir}/%{fontconf} \
43        %{buildroot}%{_fontconfig_confdir}/%{fontconf}
44  
45  sed -i 's/\r$//' LICENSE-FAQ
46  
47  %_font_pkg -f %{fontconf} *.ttf
48  %license LICENSE LICENSE-FAQ
49  %doc "Read me.txt"
50  
51  %changelog
52  * Fri Oct 30 2020 Dawid Zych <dawid.zych@yandex.com> - 1.203-3
53  - Update download link.
54  
55  * Wed Jan 11 2017 Dawid Zych <dawid.zych@yandex.com> - 1.203-2
56  - Update fontconfig and it's priority.
57  
58  * Thu Jan 05 2017 Dawid Zych <dawid.zych@yandex.com> - 1.203-1
59  - Initial packaging.