Blame SPECS/sil-scheherazade-fonts.spec

57f81c
%global fontname sil-scheherazade
57f81c
%global fontconf 65-%{fontname}.conf
57f81c
57f81c
Name:           %{fontname}-fonts
57f81c
Version:        2.100
57f81c
Release:        14%{?dist}
57f81c
Summary:        An Arabic script unicode font
57f81c
57f81c
License:        OFL
57f81c
URL:            https://software.sil.org/scheherazade/
57f81c
Source0:        https://software.sil.org/downloads/r/scheherazade/Scheherazade-%{version}.zip
57f81c
Source1:        %{name}-fontconfig.conf
57f81c
Source2:        %{fontname}.metainfo.xml
57f81c
57f81c
BuildArch:      noarch
57f81c
BuildRequires:  fontpackages-devel
57f81c
Requires:       fontpackages-filesystem
57f81c
57f81c
%description
57f81c
Scheherazade, named after the heroine of the classic Arabian Nights tale, is
57f81c
designed in a similar style to traditional typefaces such as Monotype Naskh,
57f81c
extended to cover the full Unicode Arabic repertoire.
57f81c
57f81c
%prep
57f81c
%setup -q -n Scheherazade-%{version}
57f81c
57f81c
57f81c
%build
57f81c
for docfile in *.txt; do
57f81c
    fold -s $docfile > $docfile.new && \
57f81c
    sed -i "s|\r||g" $docfile.new && \
57f81c
    touch -r $docfile $docfile.new && \
57f81c
    mv $docfile.new $docfile
57f81c
done
57f81c
57f81c
%install
57f81c
install -m 0755 -d %{buildroot}%{_fontdir}
57f81c
install -m 0644 -p *.ttf %{buildroot}%{_fontdir}
57f81c
57f81c
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
57f81c
                   %{buildroot}%{_fontconfig_confdir}
57f81c
57f81c
install -m 0644 -p %{SOURCE1} \
57f81c
        %{buildroot}%{_fontconfig_templatedir}/%{fontconf}
57f81c
ln -s %{_fontconfig_templatedir}/%{fontconf} \
57f81c
      %{buildroot}%{_fontconfig_confdir}/%{fontconf}
57f81c
57f81c
# Add AppStream metadata
57f81c
install -Dm 0644 -p %{SOURCE2} \
57f81c
        %{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml
57f81c
57f81c
%_font_pkg -f %{fontconf} *.ttf
57f81c
%license OFL.txt
57f81c
%doc FONTLOG.txt README.txt OFL-FAQ.txt documentation/*
57f81c
%{_datadir}/appdata/%{fontname}.metainfo.xml
57f81c
57f81c
%changelog
57f81c
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 2.100-14
57f81c
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
57f81c
  Related: rhbz#1991688
57f81c
57f81c
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 2.100-13
57f81c
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
57f81c
57f81c
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.100-12
57f81c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
57f81c
57f81c
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.100-11
57f81c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
57f81c
57f81c
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.100-10
57f81c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
57f81c
57f81c
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.100-9
57f81c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
57f81c
57f81c
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.100-8
57f81c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
57f81c
57f81c
* Tue Jul 24 2018 Akira TAGOH <tagoh@redhat.com> - 2.100-7
57f81c
- Update URL.
57f81c
- Modernize the spec file.
57f81c
57f81c
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.100-6
57f81c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
57f81c
57f81c
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.100-5
57f81c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
57f81c
57f81c
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.100-4
57f81c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
57f81c
57f81c
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.100-3
57f81c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
57f81c
57f81c
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.100-2
57f81c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
57f81c
57f81c
* Thu Sep 10 2015 Hedayat Vatankhah <hedayat.fwd+rpmchlog@gmail.com> - 2.100-1
57f81c
- Update to upstream version 2.100
57f81c
57f81c
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.020-4
57f81c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
57f81c
57f81c
* Fri Oct 17 2014 Parag Nemade <pnemade AT redhat DOT com> - 2.020-3
57f81c
- Add metainfo file to show this font in gnome-software
57f81c
57f81c
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.020-2
57f81c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
57f81c
57f81c
* Tue Feb 25 2014 Hedayat Vatankhah <hedayat.fwd+rpmchlog@gmail.com> - 2.020-1
57f81c
- Update to 2.020 upstream release with bug fixes
57f81c
57f81c
* Mon Sep 16 2013 Hedayat Vatankhah <hedayat.fwd+rpmchlog@gmail.com> - 2.010-1
57f81c
- Update to upstream bugfix release 010
57f81c
57f81c
* Sun Aug 18 2013 Hedayat Vatankhah <hedayat.fwd+rpmchlog@gmail.com> - 2.000-1
57f81c
- Update to version 2.000
57f81c
57f81c
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.005-4
57f81c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
57f81c
57f81c
* Sat Feb 16 2013 Hedayat Vatankhah <hedayat.fwd+rpmchlog@gmail.com> - 1.005-3
57f81c
- Fix fontconfig test tag to use 'compare' rather than 'mode' which is the
57f81c
  correct keyword
57f81c
57f81c
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.005-2
57f81c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
57f81c
57f81c
* Wed Jan 09 2013 Hedayat Vatankhah <hedayat.fwd+rpmchlog@gmail.com> - 1.005-1
57f81c
- Updated to 1.005 upstream version
57f81c
- Removed some deprecated entries (like cleaning buildroot)
57f81c
57f81c
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.001-6
57f81c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
57f81c
57f81c
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.001-5
57f81c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
57f81c
57f81c
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.001-4
57f81c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
57f81c
57f81c
* Sat May 01 2010 Hedayat Vatankhah <hedayat@grad.com> - 1.001-3
57f81c
- Scaled the font (1.2 times bigger) to make it more like other fonts
57f81c
57f81c
* Sat Oct 03 2009 Hedayat Vatankhah <hedayat@grad.com> - 1.001-2
57f81c
- Fixed summary to not include font name
57f81c
- Removed some parts of the description
57f81c
- Added fontconfig rules
57f81c
57f81c
* Mon Sep 28 2009 Hedayat Vatankhah <hedayat@grad.com> - 1.001-1
57f81c
- Initial version
57f81c