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