1 |
dmorgan |
70826 |
%global fontname aajohan-comfortaa |
2 |
|
|
%global fontconf 61-%{fontname}.conf |
3 |
|
|
|
4 |
|
|
Name: %{fontname}-fonts |
5 |
|
|
Version: 1.004 |
6 |
umeabot |
522072 |
Release: %mkrel 5 |
7 |
dmorgan |
70826 |
Summary: Modern style true type font |
8 |
|
|
|
9 |
|
|
Group: System/X11 |
10 |
|
|
License: OFL |
11 |
|
|
URL: http://aajohan.deviantart.com |
12 |
daviddavid |
666147 |
Source0: http://www.deviantart.com/download/105395949/comfortaa___font_by_aajohan-d1qr019-old.zip |
13 |
dmorgan |
70826 |
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 |
fwang |
395553 |
%doc *.txt |