aajohan-comfortaa-fonts/aajohan-comfortaa-fonts.spec

111 lines
3.6 KiB
RPMSpec

%global fontname aajohan-comfortaa
%global fontconf 61-%{fontname}.conf
Name: %{fontname}-fonts
Version: 2.004
Release: 3%{?dist}
Summary: Modern style true type font
Group: User Interface/X
License: OFL
URL: http://aajohan.deviantart.com
Source0: http://www.deviantart.com/download/105395949/comfortaa___font_by_aajohan-d1qr019.zip
Source1: %{name}-fontconfig.conf
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: fontpackages-devel
Requires: fontpackages-filesystem
%description
Comfortaa is a sans-serif font comfortable in every aspect with
Bold, Regular, and Thin variants.
It has very good European language coverage and decent Cyrillic coverage.
%prep
%setup -q -n Comfortaa
# Fixing
# wrong-file-end-of-line-encoding issue
# Thanks to Paul Flo Williams
for file in *.txt; do
sed 's/\r//g' "$file" | \
fold -s > "$file.new" && \
touch -r "$file" "$file.new" && \
mv "$file.new" "$file"
done
%build
%install
rm -rf %{buildroot}
install -m 0755 -d %{buildroot}%{_fontdir}
install -m 0644 -p *.ttf %{buildroot}%{_fontdir}
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
%{buildroot}%{_fontconfig_confdir}
install -m 0644 -p %{SOURCE1} \
%{buildroot}%{_fontconfig_templatedir}/%{fontconf}
ln -s %{_fontconfig_templatedir}/%{fontconf} \
%{buildroot}%{_fontconfig_confdir}/%{fontconf}
%clean
rm -rf %{buildroot}
%_font_pkg -f %{fontconf} *.ttf
%doc FONTLOG.txt OFL.txt
%changelog
* Fri Jun 06 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.004-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.004-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Sat May 11 2013 Luya Tshimbalanga <luya@fedoraproject.org> - 2.004-1
- Latest upstream release
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.003-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Sun Dec 30 2012 Luya Tshimbalanga <luya@fedoraproject.org> - 2.003-1
- Upstream update (rhbz#786442)
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.002-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Sat Jan 14 2012 Luya Tshimbalanga <luya@fedoraproject.org> - 2.002-5
- Upstream update (rhbz#771541)
- Spec cleaned up
- updated filename documentation
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.004-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.004-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Fri Dec 3 2010 Luya Tshimbalanga <luya@fedoraproject.org> - 1.004-1
- Upstream update rhbz#658745
* Thu Sep 23 2010 Luya Tshimbalanga <luya@fedoraproject.org> - 1.003-5.1
- Changed to the correct description rhbz#636987
* Tue Aug 3 2010 Luya Tshimbalanga <luya@fedoraproject.org> - 1.003-4
- Set the right close tag inside 61 conf file
* Fri Jul 30 2010 Luya Tshimbalanga <luya@fedoraproject.org> - 1.003-3
- Added missing documentations
- Switched to the right versioning
- Addressed wrong-file-end-of-line-encoding issue
* Thu Jul 29 2010 Luya Tshimbalanga <luya@fedoraproject.org> - 1.003-2
- Set prefix to 61 for fontconfig.conf
- Shortened description
- Some fixes
* Tue Jul 27 2010 Luya Tshimbalanga <luya@fedoraproject.org> - 1.003-1
- Initial RPM release.