1 |
dmorgan |
70826 |
%global fontname aajohan-comfortaa |
2 |
|
|
%global fontconf 61-%{fontname}.conf |
3 |
|
|
|
4 |
|
|
Name: %{fontname}-fonts |
5 |
|
|
Version: 1.004 |
6 |
pterjan |
335015 |
Release: %mkrel 2 |
7 |
dmorgan |
70826 |
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.zip |
13 |
|
|
Source1: %{name}-fontconfig.conf |
14 |
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
15 |
|
|
BuildArch: noarch |
16 |
|
|
BuildRequires: fontpackages-devel |
17 |
|
|
Requires: fontpackages-filesystem |
18 |
|
|
|
19 |
|
|
%description |
20 |
|
|
Comfortaa is a sans-serif font comfortable in every aspect with |
21 |
|
|
Bold, Regular, and Thin variants. |
22 |
|
|
It has very good European language coverage and decent Cyrillic coverage. |
23 |
|
|
|
24 |
|
|
%prep |
25 |
|
|
%setup -q -n comfortaa |
26 |
|
|
|
27 |
|
|
# Fixing |
28 |
|
|
# wrong-file-end-of-line-encoding issue |
29 |
|
|
# Thanks to Paul Flo Williams |
30 |
|
|
|
31 |
|
|
for file in *.txt; do |
32 |
|
|
sed 's/\r//g' "$file" | \ |
33 |
|
|
fold -s > "$file.new" && \ |
34 |
|
|
touch -r "$file" "$file.new" && \ |
35 |
|
|
mv "$file.new" "$file" |
36 |
|
|
done |
37 |
|
|
|
38 |
|
|
%build |
39 |
|
|
|
40 |
|
|
%install |
41 |
|
|
rm -rf %{buildroot} |
42 |
|
|
install -m 0755 -d %{buildroot}%{_fontdir} |
43 |
|
|
install -m 0644 -p *.ttf %{buildroot}%{_fontdir} |
44 |
|
|
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \ |
45 |
|
|
%{buildroot}%{_fontconfig_confdir} |
46 |
|
|
install -m 0644 -p %{SOURCE1} \ |
47 |
|
|
%{buildroot}%{_fontconfig_templatedir}/%{fontconf} |
48 |
|
|
|
49 |
|
|
ln -s %{_fontconfig_templatedir}/%{fontconf} \ |
50 |
|
|
%{buildroot}%{_fontconfig_confdir}/%{fontconf} |
51 |
|
|
|
52 |
|
|
%clean |
53 |
|
|
rm -rf %{buildroot} |
54 |
|
|
|
55 |
|
|
%_font_pkg -f %{fontconf} *.ttf |
56 |
|
|
|
57 |
pterjan |
335015 |
%doc "Please\ read\ me.txt" "Comfortaa\ FONTLOG.txt" "OFL\ -\ Font\ License.txt" |
58 |
dmorgan |
70826 |
|
59 |
|
|
|