|
|
1a89808 |
%global fontname aajohan-comfortaa
|
|
|
1a89808 |
%global fontconf 61-%{fontname}.conf
|
|
|
1a89808 |
|
|
|
1a89808 |
Name: %{fontname}-fonts
|
|
|
1a89808 |
Version: 1.003
|
|
|
1a89808 |
Release: 4%{?dist}
|
|
|
1a89808 |
Summary: Modern style true type font
|
|
|
1a89808 |
|
|
|
1a89808 |
Group: User Interface/X
|
|
|
1a89808 |
License: OFL
|
|
|
1a89808 |
URL: http://aajohan.deviantart.com
|
|
|
1a89808 |
Source0: http://www.deviantart.com/download/105395949/Comfortaa___font_by_aajohan.zip
|
|
|
1a89808 |
Source1: %{name}-fontconfig.conf
|
|
|
1a89808 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
1a89808 |
BuildArch: noarch
|
|
|
1a89808 |
BuildRequires: fontpackages-devel
|
|
|
1a89808 |
Requires: fontpackages-filesystem
|
|
|
1a89808 |
|
|
|
1a89808 |
%description
|
|
|
1a89808 |
Comfortaa is a sans-serif font comfortable in every aspect with
|
|
|
1a89808 |
Regular, Light Condensed, Italic, Bold Expanded, and Bold Italic variants.
|
|
|
1a89808 |
It has very good European language coverage and decent Cyrillic coverage.
|
|
|
1a89808 |
|
|
|
1a89808 |
%prep
|
|
|
1a89808 |
%setup -q -n Comfortaa
|
|
|
1a89808 |
|
|
|
1a89808 |
# Fixing
|
|
|
1a89808 |
# wrong-file-end-of-line-encoding issue
|
|
|
1a89808 |
# Thanks to Paul Flo Williams
|
|
|
1a89808 |
|
|
|
1a89808 |
for file in *.txt; do
|
|
|
1a89808 |
sed 's/\r//g' "$file" | \
|
|
|
1a89808 |
fold -s > "$file.new" && \
|
|
|
1a89808 |
touch -r "$file" "$file.new" && \
|
|
|
1a89808 |
mv "$file.new" "$file"
|
|
|
1a89808 |
done
|
|
|
1a89808 |
|
|
|
1a89808 |
%build
|
|
|
1a89808 |
|
|
|
1a89808 |
%install
|
|
|
1a89808 |
rm -rf %{buildroot}
|
|
|
1a89808 |
install -m 0755 -d %{buildroot}%{_fontdir}
|
|
|
1a89808 |
install -m 0644 -p *.ttf %{buildroot}%{_fontdir}
|
|
|
1a89808 |
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
|
|
|
1a89808 |
%{buildroot}%{_fontconfig_confdir}
|
|
|
1a89808 |
install -m 0644 -p %{SOURCE1} \
|
|
|
1a89808 |
%{buildroot}%{_fontconfig_templatedir}/%{fontconf}
|
|
|
1a89808 |
|
|
|
1a89808 |
ln -s %{_fontconfig_templatedir}/%{fontconf} \
|
|
|
1a89808 |
%{buildroot}%{_fontconfig_confdir}/%{fontconf}
|
|
|
1a89808 |
|
|
|
1a89808 |
%clean
|
|
|
1a89808 |
rm -rf %{buildroot}
|
|
|
1a89808 |
|
|
|
1a89808 |
%_font_pkg -f %{fontconf} *.ttf
|
|
|
1a89808 |
|
|
|
1a89808 |
%doc Please\ read\ me.txt Comfortaa\ FONTLOG.txt OFL\ -\ Font\ License.txt
|
|
|
1a89808 |
|
|
|
1a89808 |
|
|
|
1a89808 |
%changelog
|
|
|
1a89808 |
* Tue Aug 3 2010 Luya Tshimbalanga <luya@fedoraproject.org> - 1.003-4
|
|
|
1a89808 |
- Set the right close tag inside 61 conf file
|
|
|
1a89808 |
|
|
|
1a89808 |
* Fri Jul 30 2010 Luya Tshimbalanga <luya@fedoraproject.org> - 1.003-3
|
|
|
1a89808 |
- Added missing documentations
|
|
|
1a89808 |
- Switched to the right versioning
|
|
|
1a89808 |
- Addressed wrong-file-end-of-line-encoding issue
|
|
|
1a89808 |
|
|
|
1a89808 |
* Thu Jul 29 2010 Luya Tshimbalanga <luya@fedoraproject.org> - 1.003-2
|
|
|
1a89808 |
- Set prefix to 61 for fontconfig.conf
|
|
|
1a89808 |
- Shortened description
|
|
|
1a89808 |
- Some fixes
|
|
|
1a89808 |
|
|
|
1a89808 |
* Tue Jul 27 2010 Luya Tshimbalanga <luya@fedoraproject.org> - 1.003-1
|
|
|
1a89808 |
- Initial RPM release.
|