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