File culmus-fonts.spec of Package culmus-fonts

#
# spec file for package culmus-fonts
#
# Copyright (c) 2012 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 type1dir /usr/share/fonts/Type1
%define ttfdir   /usr/share/fonts/truetype
%define upstream_name  culmus

Name:           culmus-fonts
Version:        0.120
Release:        6
License:        GPL-2.0+
Summary:        Free Hebrew Fonts
Url:            http://culmus.sourceforge.net/
Group:          System/X11/Fonts
Source0:        %{upstream_name}-%{version}.tar.bz2
Requires(pre):  %suseconfig_fonts_prereq
Provides:       locale(he)
# FIXME: This causes a rpmlint warning; change <= to < once here's a new upstream version
Obsoletes:      culmus <= %{version}
Provides:       culmus = %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
Nine Hebrew font families. ASCII glyphs partially borrowed from the URW
and Bitstream fonts.  Those families provide a basic set of a serif
(Frank Ruehl), sans serif (Nachlieli), and monospaced (Miriam Mono)
fonts. Also included Miriam, Drugulin, Aharoni, David, Yehuda, and
Ellinia.

%prep
%setup -q -n %{upstream_name}-%{version}

%build

%install
mkdir -p %{buildroot}%ttfdir
install -m 0644 *.ttf \
        %{buildroot}%ttfdir
mkdir -p %{buildroot}%type1dir
install -c -m 644 *.afm *.pf? %{buildroot}%type1dir
install -c -m 644 fonts.scale-type1 \
        %{buildroot}%type1dir/fonts.scale.culmus

%post
%run_suseconfig_fonts

%postun
%run_suseconfig_fonts

%files
%defattr(-, root,root)
%doc CHANGES fonts.scale-ttf culmus.conf GNU-GPL LICENSE LICENSE-BITSTREAM
%type1dir
%ttfdir

%changelog