File xfs.spec of Package xfs

#
# spec file for package xfs
#
# Copyright (c) 2014 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/
#


Name:           xfs
Version:        1.1.4
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
Url:            http://xorg.freedesktop.org/
# http://xorg.freedesktop.org/releases/individual/app/
Source0:        %{name}-%{version}.tar.bz2
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
%endif
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

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

%prep
%setup -q

%build
%configure
make %{?_smp_mflags}

%install
%make_install
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}

%post
%fillup_and_insserv xfs

%preun
%stop_on_removal xfs

%postun
%restart_on_update xfs
%insserv_cleanup

%files
%defattr(-,root,root)
%doc ChangeLog COPYING README
%dir %{_sysconfdir}/X11/fs
%config %verify(not md5 size mtime) %{_sysconfdir}/X11/fs/config
%{_sysconfdir}/init.d/xfs
%{_bindir}/xfs
%{_sbindir}/rcxfs
%{_mandir}/man1/xfs.1%{?ext_man}
%{_mandir}/man8/rcxfs.8%{?ext_man}

%changelog
openSUSE Build Service is sponsored by