Blame SPECS/aajohan-comfortaa-fonts.spec

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