File culmus-fonts.spec of Package culmus-fonts

#
# spec file for package culmus-fonts
#
# Copyright (c) 2013 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 %{_fontsdir}/Type1
%define upstream_name  culmus

Name:           culmus-fonts
Version:        0.130
Release:        0
Summary:        Free Hebrew Fonts
License:        GPL-2.0+
Group:          System/X11/Fonts
Url:            http://culmus.sourceforge.net/
Source0:        %{upstream_name}-%{version}.tar.bz2
BuildRequires:  fontpackages-devel
%reconfigure_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}%_ttfontsdir
install -m 0644 *.ttf \
        %{buildroot}%_ttfontsdir
mkdir -p %{buildroot}%type1dir
install -c -m 644 *.afm *.pf? %{buildroot}%type1dir
install -c -m 644 fonts.scale-type1 \
        %{buildroot}%type1dir/fonts.scale.culmus

%reconfigure_fonts_scriptlets

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

%changelog
openSUSE Build Service is sponsored by