1 %define fontname open-sans
2 %define fontconf 60-%{fontname}.conf
3 Summary: Open Sans is a humanist sans-serif typeface designed by Steve Matteson
4 Name: fonts-TTF-OpenSans
9 URL: http://www.google.com/fonts/specimen/Open+Sans
10 # Since the font doesn't have clear upstream, the source zip package is
11 # downloaded from Google Fonts. It is then converted to tar.gz. All by get-source.sh.
12 Source0: http://pkgs.fedoraproject.org/repo/pkgs/open-sans-fonts/open-sans-fonts-%{version}.tar.xz/5fa43b45f45c7ef4b589b3bdf4052d77/open-sans-fonts-%{version}.tar.xz
13 # Source0-md5: 5fa43b45f45c7ef4b589b3bdf4052d77
14 Source1: fontconfig.conf
15 Source2: get-source.sh
16 BuildRequires: tar >= 1:1.22
17 BuildRequires: ttembed
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 %define _ttffontsdir %{_fontsdir}/TTF
25 Open Sans is a humanist sans serif typeface designed by Steve
26 Matteson, Type Director of Ascender Corp. This version contains the
27 complete 897 character set, which includes the standard ISO Latin 1,
28 Latin CE, Greek and Cyrillic character sets. Open Sans was designed
29 with an upright stress, open forms and a neutral, yet friendly
30 appearance. It was optimized for print, web, and mobile interfaces,
31 and has excellent legibility characteristics in its letter forms.
34 %setup -q -n open-sans-fonts-%{version}
37 # set Embedding permission to 'Installable'
38 ls *.ttf | xargs ttembed
41 rm -rf $RPM_BUILD_ROOT
42 install -d $RPM_BUILD_ROOT{%{_ttffontsdir},%{_sysconfdir}/fonts/conf.d,%{_datadir}/fontconfig/conf.avail}
44 cp -p *.ttf $RPM_BUILD_ROOT%{_ttffontsdir}
45 cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/fontconfig/conf.avail/%{fontconf}
46 ln -s %{_datadir}/fontconfig/conf.avail/%{fontconf} $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d/%{fontconf}
49 rm -rf $RPM_BUILD_ROOT
52 %defattr(644,root,root,755)
54 %{_sysconfdir}/fonts/conf.d/60-open-sans.conf
55 %{_datadir}/fontconfig/conf.avail/60-open-sans.conf
56 %{_datadir}/fonts/TTF/OpenSans-Bold.ttf
57 %{_datadir}/fonts/TTF/OpenSans-BoldItalic.ttf
58 %{_datadir}/fonts/TTF/OpenSans-ExtraBold.ttf
59 %{_datadir}/fonts/TTF/OpenSans-ExtraBoldItalic.ttf
60 %{_datadir}/fonts/TTF/OpenSans-Italic.ttf
61 %{_datadir}/fonts/TTF/OpenSans-Light.ttf
62 %{_datadir}/fonts/TTF/OpenSans-LightItalic.ttf
63 %{_datadir}/fonts/TTF/OpenSans-Regular.ttf
64 %{_datadir}/fonts/TTF/OpenSans-Semibold.ttf
65 %{_datadir}/fonts/TTF/OpenSans-SemiboldItalic.ttf