File PTSerif-fonts.spec of Package PTSerif-fonts

#
# spec file for package PTSerif-fonts
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


%define _ttf_fontdir    %{_datadir}/fonts/truetype

Name:           PTSerif-fonts
Version:        1.000OFL
Release:        3
License:        OFL-1.1
Summary:        Serif Fonts for Minority Languages of Russia
Url:            http://www.paratype.com/public/
Group:          System/X11/Fonts
Source0:        http://www.fontstock.com/public/PTSerifOFL.zip
Source1:        http://www.paratype.ru/public/Info_PT_SS.pdf
Requires(pre):  %suseconfig_fonts_prereq
BuildRequires:  unzip
BuildRequires:  xorg-x11-devel
Provides:       locale(be;ru;uk)
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
PT Serif is a transitional serif face with humanistic terminals designed
for use together with PT Sans and harmonized with PT Sans on metrics,
proportions, weights and design. PT Serif consists of six styles:
regular and bold weights with corresponding italics form a standard
computer font family for basic text setting; two caption styles (regular
and italic) are for texts of small point sizes.

The fonts beside standard Western, Central European and Cyrillic code
pages contain characters of all title languages of Russian Federation
that make them unique and very important tool of the modern digital
communications.

%prep
%setup -cqn %{name}-%{version}
%__cp %{S:1} .
%__sed -i 's/\r$//g' PTSansPTSerifOFL.txt

%build

%install
%__install -dm 0755 %{buildroot}%{_ttf_fontdir}
%__install -m 0644 *.ttf %{buildroot}%{_ttf_fontdir}

%post
%run_suseconfig_fonts

%postun
%run_suseconfig_fonts

%files
%defattr(-,root,root,-)
%doc Info_PT_SS.pdf PTSansPTSerifOFL.txt
%dir %{_ttf_fontdir}
%{_ttf_fontdir}/*.ttf

%changelog
openSUSE Build Service is sponsored by