File gdouros-abydos-fonts.spec of Package gdouros-abydos-fonts

# spec file for package gdouros-abydos-fonts
# Copyright (c) 2018 SUSE LINUX 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

Name:           gdouros-abydos-fonts
Version:        1.96
Release:        0
Summary:        A data font of 7440 Egyptian hieroglyphs
License:        SUSE-Permissive
Group:          System/X11/Fonts
# Download URL
Source0:        AbydosFont-%{version}.zip
# Download URL
Source1:        Abydos-20171217.pdf
# Download URL
Source2:        AbydosGlyph-20171217.pdf
Source3:        README-SUSE
BuildRequires:  fontpackages-devel
BuildRequires:  unzip
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

Font containing 7440 Egyptian hieroglyphs.
Abydos is mainly based on Glyph for Windows version 2.0; it also covers
proposals for encoding Egyptian Hieroglyphs in The Unicode Standard:
  * Hans van den Berg, Eric Aubourg, “Hieroglyphic Text Processing:
    Glyph for Windows”, CCER, 2007
  * Michel Suignard, “Source analysis of an extended Egyptian
    Hieroglyphs repertoire”, L2/16-257,
  * “New draft for the encoding of an extended Egyptian Hieroglyphs
    repertoire”, L2/17-073

%package        doc
Summary:        Documentation for %{name}
Group:          Documentation/Other
Requires:       %{name} = %{version}

%description    doc
Contains pdf documentation for %{name}.

%setup -q -cT -a0


mkdir -p %{buildroot}%{_ttfontsdir}
install -m 0644 *.ttf %{buildroot}%{_ttfontsdir}/
# install docs
cp %{SOURCE1} %{SOURCE2} %{SOURCE3} \
   -t .
for i in *-*.pdf; do
        IFS=-. read -r a b c <<< "$i"; mv "$i" "$a.$c"



%files doc
%doc Abydos.pdf AbydosGlyph.pdf