/[packages]/cauldron/aajohan-comfortaa-fonts/current/SPECS/aajohan-comfortaa-fonts.spec
ViewVC logotype

Contents of /cauldron/aajohan-comfortaa-fonts/current/SPECS/aajohan-comfortaa-fonts.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 666147 - (show annotations) (download)
Thu Aug 21 08:58:20 2014 UTC (9 years, 7 months ago) by daviddavid
File size: 1427 byte(s)
SILENT remove old tarball to upload the new (as they have the same name)

1 %global fontname aajohan-comfortaa
2 %global fontconf 61-%{fontname}.conf
3
4 Name: %{fontname}-fonts
5 Version: 1.004
6 Release: %mkrel 5
7 Summary: Modern style true type font
8
9 Group: System/X11
10 License: OFL
11 URL: http://aajohan.deviantart.com
12 Source0: http://www.deviantart.com/download/105395949/comfortaa___font_by_aajohan-d1qr019-old.zip
13 Source1: %{name}-fontconfig.conf
14 BuildArch: noarch
15 BuildRequires: fontpackages-devel
16 Requires: fontpackages-filesystem
17
18 %description
19 Comfortaa is a sans-serif font comfortable in every aspect with
20 Bold, Regular, and Thin variants.
21 It has very good European language coverage and decent Cyrillic coverage.
22
23 %prep
24 %setup -q -n comfortaa
25
26 # Fixing
27 # wrong-file-end-of-line-encoding issue
28 # Thanks to Paul Flo Williams
29
30 for file in *.txt; do
31 sed 's/\r//g' "$file" | \
32 fold -s > "$file.new" && \
33 touch -r "$file" "$file.new" && \
34 mv "$file.new" "$file"
35 done
36
37 %install
38 install -m 0755 -d %{buildroot}%{_fontdir}
39 install -m 0644 -p *.ttf %{buildroot}%{_fontdir}
40 install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
41 %{buildroot}%{_fontconfig_confdir}
42 install -m 0644 -p %{SOURCE1} \
43 %{buildroot}%{_fontconfig_templatedir}/%{fontconf}
44
45 ln -s %{_fontconfig_templatedir}/%{fontconf} \
46 %{buildroot}%{_fontconfig_confdir}/%{fontconf}
47
48 %_font_pkg -f %{fontconf} *.ttf
49 %doc *.txt

  ViewVC Help
Powered by ViewVC 1.1.30