Blame SPECS/aajohan-comfortaa-fonts.spec

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