File jmk-x11-fonts.spec of Package jmk-x11-fonts

%define Release		1
%define fontname    jmk

Summary: Character-cell fonts for X11
Name: 			%{fontname}-x11-fonts
%if 0%{?mandriva_version}
BuildRequires:  imake xorg-x11 xorg-x11-100dpi-fonts xorg-x11-75dpi-fonts
%ifarch x86_64
BuildRequires:  lib64xorg-x11-devel
%endif
%ifarch %{ix86}
BuildRequires:  libxorg-x11-devel
%endif
Group: X11/Fonts
%endif
%if 0%{?rhel_version} || 0%{?centos_version} || 0%{?fedora_version}
BuildRequires:  imake libX11-devel xorg-x11-xinit xorg-x11-font-utils xorg-x11-fonts-misc
Group: User Interface/X
%endif
%if 0%{?suse_version}
BuildRequires: xorg-x11-devel xorg-x11 xorg-x11-fonts
Group: X11/Fonts
%endif


BuildRequires:  freetype2 
%define	fontdir     /usr/share/fonts/%{fontname}
Version:        3.0
Release: 48.1
Packager: Agnelo de la Crotche <agnelo@unixversal.com>
License: GPL
URL: http://www.pobox.com/~jmknoble
Source0: http://www.pobox.com/~jmknoble/fonts/%{name}-%{version}.tar.gz
Patch0:         %name-%version.patch
Prefix: %{Prefix}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
These are character-cell fonts for use with the X Window System,
created by Jim Knoble.  The current list of fonts included in this
package are:

  Neep (formerly known as NouveauGothic)

    A pleasantly legible variation on the standard fixed fonts that
    accompany most distributions of the X Window System.  Comes in both
    normal and bold weights in small, medium, large, extra-large, and
    huge sizes, as well as an extra-small size that only comes in
    normal weight.  Comes in the following encodings:

      ISO-8859-1  (Latin1, Western European + Icelandic)
      ISO-8859-2  (Latin2, Eastern European)
      ISO-8859-9  (Latin5, Western European + Turkish)
      ISO-8859-15 (Latin9, Western European + Euro Symbol)

  Modd

    A fixed-width font with sleek, contemporary styling.  Normal and
    bold weights in a 10-point (6x11) and a 12-point (6x13) size.
    ISO-8859-1 encoding only.

These fonts were created using the xmbdfed BDF font editor
<ftp://crl.nmsu.edu/CLR/multiling/General/>.

For more information about fonts and the X Window System, see the X(1)
man page.

%prep
%setup
%patch0 -p1

%build

make -C neep

xmkmf
make

%install
install -d -m 0755 %{buildroot}%{fontdir}

make INSTALL_DIR=%{fontdir} DESTDIR=$RPM_BUILD_ROOT install

%clean
rm -rf %{buildroot}

%post
%if 0%{?suse_version}
%run_suseconfig_fonts
%endif

%postun
%if 0%{?suse_version}
%run_suseconfig_fonts
%endif

%files
%attr(-   ,root,root) %doc ChangeLog NEWS README %{name}-%{version}.lsm
%attr(0755,root,root) %dir %{fontdir}
%attr(0444,root,root) %{fontdir}/*

openSUSE Build Service is sponsored by