File xfs.spec of Package xfs

# spec file for package xfs
# 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

Name:           xfs
Version:        1.1.3
Release:        0
# FIXME: update xorg-x11-fonts-devel BuildRequires to font-util after renaming is done
Summary:        X font server
License:        HPND
Group:          System/X11/Utilities
Source1:        xfs.config
Source2:        xfs.init.d
%if 0%{?suse_version} >= 01140
# Needed to create the man page symlink to init.d
BuildRequires:  aaa_base-extras
BuildRequires:  pkg-config
# FIXME: change to font-util >= 1.1 when xorg-x11-fonts-devel will be renamed
BuildRequires:  xorg-x11-fonts-devel
BuildRequires:  pkgconfig(xfont)
BuildRequires:  pkgconfig(xorg-macros) >= 1.10
BuildRequires:  pkgconfig(xproto) >= 7.0.17
BuildRequires:  pkgconfig(xtrans)
PreReq:         %fillup_prereq
PreReq:         %insserv_prereq
# This was part of the xorg-x11 package up to version 7.6
Conflicts:      xorg-x11 <= 7.6
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

xfs is the X Window System font server. It supplies fonts to X Window
System display servers.

%setup -q

make %{?_smp_mflags}

install -D -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/X11/fs/config
install -D -m0755 %{SOURCE2} %{buildroot}%{_sysconfdir}/init.d/xfs
mkdir -p %{buildroot}%{_sbindir}
ln -s %{_sysconfdir}/init.d/xfs %{buildroot}%{_sbindir}/rcxfs
# missing manual page
mkdir -p %{buildroot}%{_mandir}/man8
ln -s ../man7/init.d.7%{?ext_man} %{buildroot}%{_mandir}/man8/rcxfs.8%{?ext_man}

%fillup_and_insserv xfs

%stop_on_removal xfs

%restart_on_update xfs

%dir %{_sysconfdir}/X11/fs
%config %verify(not md5 size mtime) %{_sysconfdir}/X11/fs/config

openSUSE Build Service is sponsored by