diff --git a/xorg-x11-font-utils.spec b/xorg-x11-font-utils.spec index 4ceee54..849f524 100644 --- a/xorg-x11-font-utils.spec +++ b/xorg-x11-font-utils.spec @@ -6,7 +6,7 @@ Name: xorg-x11-%{pkgname} # IMPORTANT: If package ever gets renamed to something else, remove the Epoch line! Epoch: 1 Version: 7.5 -Release: 20%{?dist} +Release: 21%{?dist} License: MIT Group: User Interface/X URL: http://www.x.org @@ -18,6 +18,7 @@ Source3: ftp://ftp.x.org/pub/individual/app/mkfontscale-%{mkfontscale}.tar.bz2 Source4: ftp://ftp.x.org/pub/individual/font/font-util-1.3.0.tar.bz2 # helper script used in %post for xorg-x11-fonts Source5: xorg-x11-fonts-update-dirs +Source6: xorg-x11-fonts-update-dirs.1 Patch2: mkfontscale-examine-all-encodings.patch Patch3: mkfontscale-man-page-additions.patch @@ -88,6 +89,9 @@ ln -s ../X11/fonts $RPM_BUILD_ROOT%{_datadir}/fonts/X11 install -m 744 %{SOURCE5} ${RPM_BUILD_ROOT}%{_bindir}/xorg-x11-fonts-update-dirs sed -i "s:@DATADIR@:%{_datadir}:" ${RPM_BUILD_ROOT}%{_bindir}/xorg-x11-fonts-update-dirs +install -d ${RPM_BUILD_ROOT}%{_mandir}/man1/ +install -m 744 -p %{SOURCE6} ${RPM_BUILD_ROOT}%{_mandir}/man1/xorg-x11-fonts-update-dirs.1 + %files %doc README-* COPYING-bdftopcf COPYING-[c-z]* %{_bindir}/bdftopcf @@ -110,8 +114,12 @@ sed -i "s:@DATADIR@:%{_datadir}:" ${RPM_BUILD_ROOT}%{_bindir}/xorg-x11-fonts-upd %{_mandir}/man1/mkfontdir.1* %{_mandir}/man1/mkfontscale.1* %{_mandir}/man1/ucs2any.1* +%{_mandir}/man1/xorg-x11-fonts-update-dirs.1* %changelog +* Fri Jul 25 2014 Peter Hutterer 1:7.5-21 +- Add a man page for xorg-x11-fonts-update-dirs + * Sat Jul 19 2014 Hans de Goede - 1:7.5-20 - Add a /usr/share/fonts/X11 symlink to usr/share/X11/fonts (rhbz#1046341) diff --git a/xorg-x11-fonts-update-dirs.1 b/xorg-x11-fonts-update-dirs.1 new file mode 100644 index 0000000..847f824 --- /dev/null +++ b/xorg-x11-fonts-update-dirs.1 @@ -0,0 +1,23 @@ +.TH XORG-X11-FONTS-UPDATE-DIRS 1 "25 July 2014" +.SH NAME +xorg-x11-fonts-update-dirs \- update X11 font directories +.SH SYNOPSIS +.B xorg-x11-fonts-update-dirs [--skip-fontscale] [--need-ttmkfdir] path +.SH DESCRIPTION +.PP +The +.B xorg-x11-fonts-* +rpm packages call +.I xorg-x11-fonts-update-dirs +during %post and %postun to update the X11 font indices. +This script may change in incompatible ways without notice and +you should not run this script manually or rely on it otherwise. +To manually update the font indices invoke +.B mkfontscale +and +.B ttmkfdir +directly as required. +.PP +.SH "SEE ALSO" +mkfontscale(1) +ttmkfdir(1)