%define _disable_rebuild_configure 1 Name: xfs Version: 1.2.1 Release: 2 Summary: Font server for X11 Group: System/Servers Source0: http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.xz Source1: xfs.init Source2: xfs.sysconfig Source3: xfs.config License: MIT Obsoletes: xorg-x11-xfs BuildRequires: libfs-devel >= 1.0.0 BuildRequires: libxfont-devel >= 1.2.8-2mdv BuildRequires: pkgconfig(xfont2) BuildRequires: pkgconfig(xproto) BuildRequires: x11-util-macros >= 1.0.1 BuildRequires: x11-xtrans-devel >= 1.0.0 Requires(pre): rpm-helper Requires(post): rpm-helper Requires: fslsfonts Requires: fstobdf Requires: showfont # because of X11R6 directory handling on x11-server-common Requires(pre): x11-server-common >= 1.4.0.90-13mdv # because of fontpath.d support Requires: libxfont >= 1.2.8-2mdv %define fontpath %{_sysconfdir}/X11/fontpath.d %description This is a font server for X11. You can serve fonts to other X servers remotely with this package, and the remote system will be able to use all fonts installed on the font server, even if they are not installed on the remote computer. %prep %setup -q -n %{name}-%{version} %build %configure \ --with-default-font-path=%{fontpath} \ --disable-devel-docs %make_build configdir=%{_sysconfdir}/X11/fs %install %make_install configdir=%{_sysconfdir}/X11/fs install -d 755 %{buildroot}%{fontpath} # initscript mkdir -p %{buildroot}%{_sysconfdir}/rc.d/init.d/ install -m 0755 %{SOURCE1} %{buildroot}%{_sysconfdir}/rc.d/init.d/xfs mkdir -p %{buildroot}%{_sysconfdir}/sysconfig/ install -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/xfs # config # remove the default rm -f %{buildroot}%{_sysconfdir}/X11/fs/config #install ours install -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/X11/fs/config # add backward compatibility link for /usr/lib/X11/fs (#23423) install -d -m 755 %{buildroot}%{_libdir}/X11/ ln -s ../../../%{_sysconfdir}/X11/fs %{buildroot}%{_libdir}/X11/fs %post %systemd_post xfs.service %preun %systemd_preun xfs.service %postun %systemd_postun_with_restart xfs.service %files %attr(-,xfs,xfs) %dir %{_sysconfdir}/X11/fs %{_libdir}/X11/fs %{_bindir}/xfs %{_mandir}/man1/xfs.* %attr(-,xfs,xfs) %config(noreplace) %{_sysconfdir}/X11/fs/config %dir %{_sysconfdir}/X11/fontpath.d %{_sysconfdir}/rc.d/init.d/xfs %{_sysconfdir}/sysconfig/xfs