Blame SPECS/paratype-pt-sans-fonts.spec

acab4e
%global fontname paratype-pt-sans
acab4e
%global fontconf 57-%{fontname}
acab4e
acab4e
%global archivename PTSans.zip
acab4e
acab4e
%global common_desc \
acab4e
The PT Sans family was developed as part of the “Public Types of Russian \
acab4e
Federation” project. This project aims at enabling the peoples of Russia to \
acab4e
read and write their native languages, using free/libre fonts. It is \
acab4e
dedicated to the 300-year anniversary of the Russian civil type invented by \
acab4e
Peter the Great from 1708 to 1710, and was realized with financial support \
acab4e
from the Russian Federal Agency for Press and Mass Communications. \
acab4e
\
acab4e
The fonts include support for all 54 title¹ languages of the Russian \
acab4e
Federation as well as more common Western, Central European and Cyrillic \
acab4e
blocks making them unique and a very important tool for modern digital \
acab4e
communications. \
acab4e
\
acab4e
PT Sans is a grotesque font based on Russian type designs of the second part \
acab4e
of the 20th century. However, it also includes very distinctive features of \
acab4e
modern humanistic design, fulfilling present day aesthetic and functional \
acab4e
requirements. \
acab4e
\
acab4e
It was designed by Alexandra Korolkova, Olga Umpeleva and Vladimir Yefimov \
acab4e
and released by ParaType. \
acab4e
\
acab4e
¹ A “title” language is named after an ethnic group.
acab4e
acab4e
acab4e
Name:           %{fontname}-fonts
acab4e
Version:        20141121
acab4e
Release:        6%{?dist}
acab4e
Summary:        A pan-Cyrillic typeface
acab4e
acab4e
License:        OFL
acab4e
URL:            http://www.paratype.com/public/
acab4e
# We now got new updated source archive to use
acab4e
Source0:        http://www.fontstock.com/public/PTSansOFL.zip
acab4e
# Below is original and old source archive
acab4e
# Source0:        http://www.fontstock.com/public/PTSans_OFL.zip
acab4e
Source10:       %{name}-fontconfig.conf
acab4e
Source11:       %{name}-caption-fontconfig.conf
acab4e
Source12:       %{fontname}.metainfo.xml
acab4e
Source13:       %{fontname}-narrow.metainfo.xml
acab4e
Source14:       %{fontname}-caption.metainfo.xml
acab4e
acab4e
BuildArch:      noarch
acab4e
Requires:       fontpackages-filesystem
acab4e
BuildRequires:  fontpackages-devel
acab4e
acab4e
%description
acab4e
%common_desc
acab4e
acab4e
This package includes the four basic styles and two narrows styles for
acab4e
economic setting.
acab4e
acab4e
%_font_pkg -f %{fontconf}.conf PTS*.ttf PTN*.ttf
acab4e
%doc *.txt
acab4e
%{_datadir}/appdata/%{fontname}.metainfo.xml
acab4e
%{_datadir}/appdata/%{fontname}-narrow.metainfo.xml
acab4e
acab4e
acab4e
%package -n %{fontname}-caption-fonts
acab4e
Summary:        A pan-Cyrillic typeface (caption forms for small text)
acab4e
BuildRequires:  fontpackages-devel
acab4e
acab4e
%description -n %{fontname}-caption-fonts
acab4e
%common_desc
acab4e
acab4e
This package includes 2 captions styles for small text sizes.
acab4e
acab4e
%_font_pkg -n caption -f %{fontconf}-caption.conf PTC*.ttf
acab4e
%doc *.txt
acab4e
%{_datadir}/appdata/%{fontname}-caption.metainfo.xml
acab4e
acab4e
acab4e
%prep
acab4e
%setup -q -c
acab4e
acab4e
for txt in *.txt ; do
acab4e
   if $(echo "$txt" | grep -q "rus\.txt") ; then
acab4e
     iconv --from=UTF-16       --to=UTF-8 "$txt" > "$txt.1"
acab4e
   else
acab4e
     iconv --from=WINDOWS-1251 --to=UTF-8 "$txt" > "$txt.1"
acab4e
   fi
acab4e
   sed -i 's/\r//' "$txt.1"
acab4e
   touch -r "$txt" "$txt.1"
acab4e
   mv "$txt.1" "$txt"
acab4e
done
acab4e
acab4e
acab4e
%build
acab4e
acab4e
acab4e
%install
acab4e
install -m 0755 -d %{buildroot}%{_fontdir}
acab4e
install -m 0644 -p *.ttf %{buildroot}%{_fontdir}
acab4e
acab4e
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
acab4e
                   %{buildroot}%{_fontconfig_confdir}
acab4e
acab4e
install -m 0644 -p %{SOURCE10} \
acab4e
        %{buildroot}%{_fontconfig_templatedir}/%{fontconf}.conf
acab4e
install -m 0644 -p %{SOURCE11} \
acab4e
        %{buildroot}%{_fontconfig_templatedir}/%{fontconf}-caption.conf
acab4e
acab4e
for fconf in %{fontconf}.conf \
acab4e
             %{fontconf}-caption.conf ; do
acab4e
  ln -s %{_fontconfig_templatedir}/$fconf \
acab4e
        %{buildroot}%{_fontconfig_confdir}/$fconf
acab4e
done
acab4e
acab4e
# Add AppStream metadata
acab4e
install -Dm 0644 -p %{SOURCE12} \
acab4e
        %{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml
acab4e
install -Dm 0644 -p %{SOURCE13} \
acab4e
        %{buildroot}%{_datadir}/appdata/%{fontname}-narrow.metainfo.xml
acab4e
install -Dm 0644 -p %{SOURCE14} \
acab4e
        %{buildroot}%{_datadir}/appdata/%{fontname}-caption.metainfo.xml
acab4e
acab4e
acab4e
%changelog
acab4e
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 20141121-6
acab4e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
acab4e
acab4e
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 20141121-5
acab4e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
acab4e
acab4e
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 20141121-4
acab4e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
acab4e
acab4e
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 20141121-3
acab4e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
acab4e
acab4e
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20141121-2
acab4e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
acab4e
acab4e
* Fri Nov 21 2014 Parag Nemade <pnemade AT redhat DOT com> - 20141121-1
acab4e
- Change the Source0 archive
acab4e
- Update to current snapshot 20141121
acab4e
acab4e
* Sun Nov 09 2014 Parag Nemade <pnemade AT redhat DOT com> - 20101909-5
acab4e
- Add metainfo file to show this font in gnome-software
acab4e
- Remove group tag
acab4e
acab4e
* Fri Jun 06 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20101909-4
acab4e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
acab4e
acab4e
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20101909-3
acab4e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
acab4e
acab4e
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20101909-2
acab4e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
acab4e
acab4e
* Fri Nov 30 2012 Parag <paragn AT fedoraproject DOT org> - 20101909-1
acab4e
- Resolves:rh#882107 - source files does not match with upstream
acab4e
acab4e
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20100408-4
acab4e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
acab4e
acab4e
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20100408-3
acab4e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
acab4e
acab4e
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20100408-2
acab4e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
acab4e
acab4e
* Sun Jul 25 2010 Nicolas Mailhot <nicolas.mailhot at laposte.net>
acab4e
- 20100408-1
acab4e
— Update to latest upstream release
acab4e
— Switch to the OFL version
acab4e
acab4e
* Thu Feb 18 2010 Nicolas Mailhot <nicolas.mailhot at laposte.net>
acab4e
- 20100112-3
acab4e
— Remove vestigial dep in caption subpackage
acab4e
acab4e
* Sat Feb 13 2010 Nicolas Mailhot <nicolas.mailhot at laposte.net>
acab4e
- 20100112-2
acab4e
— Update for review
acab4e
acab4e
* Sun Jan 17 2010 Nicolas Mailhot <nicolas.mailhot at laposte.net>
acab4e
- 20100112-1
acab4e
— Initial release
acab4e