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

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