[packages/xorg-lib-libXt] fix man links pointing to inexistent section

glen glen at pld-linux.org
Mon Mar 4 23:51:57 CET 2013


commit 56aa5d5d5b17dd3b891ef00678eff52c9490ec1d
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Tue Mar 5 00:51:08 2013 +0200

    fix man links pointing to inexistent section
    
    $ man XtCreateManagedWidget
    man: can't open /usr/share/man/man3x/XtCreateWidget.3x: No such file or directory
    man: can't open /usr/share/man/man3x/XtCreateWidget.3x: No such file or directory
    No manual entry for XtCreateManagedWidget

 xorg-lib-libXt.spec | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/xorg-lib-libXt.spec b/xorg-lib-libXt.spec
index 2fd361b..83fe952 100644
--- a/xorg-lib-libXt.spec
+++ b/xorg-lib-libXt.spec
@@ -1,8 +1,11 @@
+# TODO:
+# - package (or clean) xml/html docs to -apidocs
+#   /usr/share/doc/libXt/*
 Summary:	X Toolkit Intrinsics library
 Summary(pl.UTF-8):	Biblioteka X Toolkit Intrinsics
 Name:		xorg-lib-libXt
 Version:	1.1.3
-Release:	1
+Release:	2
 License:	MIT
 Group:		X11/Libraries
 Source0:	http://xorg.freedesktop.org/releases/individual/lib/libXt-%{version}.tar.bz2
@@ -11,6 +14,7 @@ URL:		http://xorg.freedesktop.org/
 BuildRequires:	autoconf >= 2.60
 BuildRequires:	automake
 BuildRequires:	cpp
+BuildRequires:	sed >= 4.0
 BuildRequires:	libtool
 BuildRequires:	pkgconfig >= 1:0.19
 BuildRequires:	xmlto >= 0.0.20
@@ -81,13 +85,15 @@ Pakiet zawiera statyczną bibliotekę libXt.
 
 %install
 rm -rf $RPM_BUILD_ROOT
-
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
 install -d $RPM_BUILD_ROOT%{_datadir}/X11/app-defaults
 install -d $RPM_BUILD_ROOT%{_datadir}/X11/{cs,da,de,es,es_AR,eu,fr,hu,it,ja,ko,mg,nb,nl,oc,pl,pt,pt_BR,ru,sk,sv,zh_CN,zh_TW}/app-defaults
 
+# there's no man3x in pld
+grep -rl man3x $RPM_BUILD_ROOT%{_mandir}/man3/* | xargs %{__sed} -i -e 's,man3x,man3,'
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/xorg-lib-libXt.git/commitdiff/56aa5d5d5b17dd3b891ef00678eff52c9490ec1d



More information about the pld-cvs-commit mailing list