/[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 335015 - (show annotations) (download)
Tue Dec 25 17:30:55 2012 UTC (7 years, 3 months ago) by pterjan
File size: 1615 byte(s)
- Fix documentation files list for new rpm
1 %global fontname aajohan-comfortaa
2 %global fontconf 61-%{fontname}.conf
3
4 Name: %{fontname}-fonts
5 Version: 1.004
6 Release: %mkrel 2
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.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 %doc "Please\ read\ me.txt" "Comfortaa\ FONTLOG.txt" "OFL\ -\ Font\ License.txt"
58
59

  ViewVC Help
Powered by ViewVC 1.1.26