Blame SPECS/aajohan-comfortaa-fonts.spec

0f59d0
%global fontname aajohan-comfortaa
0f59d0
%global fontconf 61-%{fontname}.conf
0f59d0
0f59d0
Name:           %{fontname}-fonts
0f59d0
Version:        3.001
0f59d0
Release:        2%{?dist}
0f59d0
Summary:        Modern style true type font
0f59d0
0f59d0
License:        OFL
0f59d0
URL:            http://aajohan.deviantart.com
0f59d0
Source0:        http://www.deviantart.com/download/105395949/comfortaa___font_by_aajohan-d1qr019.zip
0f59d0
Source1:        %{name}-fontconfig.conf
0f59d0
Source2:        %{fontname}.metainfo.xml
0f59d0
0f59d0
BuildArch:      noarch
0f59d0
BuildRequires:  fontpackages-devel
0f59d0
BuildRequires:	libappstream-glib
0f59d0
Requires:       fontpackages-filesystem
0f59d0
0f59d0
%description
0f59d0
Comfortaa is a sans-serif font comfortable in every aspect with
0f59d0
Bold, Regular, and Thin variants.
0f59d0
It has very good European language coverage and decent Cyrillic coverage.  
0f59d0
0f59d0
%prep
0f59d0
%autosetup -n %{version}
0f59d0
0f59d0
# Fixing
0f59d0
# wrong-file-end-of-line-encoding issue
0f59d0
# Thanks to Paul Flo Williams
0f59d0
0f59d0
for file in *.txt; do
0f59d0
 sed 's/\r//g' "$file" | \
0f59d0
 fold -s > "$file.new" && \
0f59d0
 touch -r "$file" "$file.new" && \
0f59d0
 mv "$file.new" "$file"
0f59d0
done
0f59d0
0f59d0
%build
0f59d0
0f59d0
%install
0f59d0
install -m 0755 -d %{buildroot}%{_fontdir}
0f59d0
install -m 0644 -p *.ttf %{buildroot}%{_fontdir}
0f59d0
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
0f59d0
                   %{buildroot}%{_fontconfig_confdir}
0f59d0
install -m 0644 -p %{SOURCE1} \
0f59d0
        %{buildroot}%{_fontconfig_templatedir}/%{fontconf}
0f59d0
0f59d0
ln -s %{_fontconfig_templatedir}/%{fontconf} \
0f59d0
      %{buildroot}%{_fontconfig_confdir}/%{fontconf}
0f59d0
0f59d0
# Add AppStream metadata
0f59d0
install -Dm 0644 -p %{SOURCE2} \
0f59d0
        %{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml
0f59d0
%check
0f59d0
appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/appdata/%{fontname}.metainfo.xml
0f59d0
0f59d0
%_font_pkg -f %{fontconf} *.ttf
0f59d0
%doc FONTLOG.txt OFL.txt
0f59d0
%{_datadir}/appdata/%{fontname}.metainfo.xml
0f59d0
0f59d0
%changelog
0f59d0
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.001-2
0f59d0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
0f59d0
0f59d0
* Mon Oct 02 2017 Luya Tshimbalanga <luya@fedoraproject.org> - 3.001-1
0f59d0
- Update to 3.001
0f59d0
0f59d0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
0f59d0
0f59d0
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.004-7
0f59d0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
0f59d0
0f59d0
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.004-6
0f59d0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
0f59d0
0f59d0
* Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.004-5
0f59d0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
0f59d0
0f59d0
* Sun Oct 19 2014 Parag Nemade <pnemade AT redhat DOT com> - 2.004-4
0f59d0
- Add metainfo file to show this font in gnome-software
0f59d0
0f59d0
* Fri Jun 06 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.004-3
0f59d0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
0f59d0
0f59d0
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.004-2
0f59d0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
0f59d0
0f59d0
* Sat May 11 2013 Luya Tshimbalanga <luya@fedoraproject.org> - 2.004-1
0f59d0
- Latest upstream release
0f59d0
0f59d0
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.003-2
0f59d0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
0f59d0
0f59d0
* Sun Dec 30 2012 Luya Tshimbalanga <luya@fedoraproject.org> - 2.003-1
0f59d0
- Upstream update (rhbz#786442)
0f59d0
0f59d0
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.002-6
0f59d0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
0f59d0
0f59d0
* Sat Jan 14 2012 Luya Tshimbalanga <luya@fedoraproject.org> - 2.002-5
0f59d0
- Upstream update (rhbz#771541)
0f59d0
- Spec cleaned up
0f59d0
- updated filename documentation
0f59d0
0f59d0
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.004-3
0f59d0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
0f59d0
0f59d0
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.004-2
0f59d0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
0f59d0
0f59d0
* Fri Dec 3 2010 Luya Tshimbalanga <luya@fedoraproject.org> - 1.004-1
0f59d0
- Upstream update rhbz#658745
0f59d0
0f59d0
* Thu Sep 23 2010 Luya Tshimbalanga <luya@fedoraproject.org> - 1.003-5.1
0f59d0
- Changed to the correct description rhbz#636987
0f59d0
0f59d0
* Tue Aug 3 2010 Luya Tshimbalanga <luya@fedoraproject.org> - 1.003-4
0f59d0
- Set the right close tag inside 61 conf file
0f59d0
0f59d0
* Fri Jul 30 2010 Luya Tshimbalanga <luya@fedoraproject.org> - 1.003-3
0f59d0
- Added missing documentations
0f59d0
- Switched to the right versioning
0f59d0
- Addressed wrong-file-end-of-line-encoding issue
0f59d0
0f59d0
* Thu Jul 29 2010 Luya Tshimbalanga <luya@fedoraproject.org> - 1.003-2
0f59d0
- Set prefix to 61 for fontconfig.conf
0f59d0
- Shortened description
0f59d0
- Some fixes
0f59d0
0f59d0
* Tue Jul 27 2010 Luya Tshimbalanga <luya@fedoraproject.org> - 1.003-1
0f59d0
- Initial RPM release.