]> git.pld-linux.org Git - packages/xorg-lib-libXres.git/commitdiff
- unified .so man links fix wrt "x" suffix
authorJakub Bogusz <qboosh@pld-linux.org>
Wed, 5 Jun 2013 20:00:31 +0000 (22:00 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Wed, 5 Jun 2013 20:00:31 +0000 (22:00 +0200)
xorg-lib-libXres.spec

index ff5e888d2706e00c825078896435e4b9482f38b8..2f8347d1e7c9dc1b998755f716ca5a8cd6535c79 100644 (file)
@@ -12,6 +12,7 @@ BuildRequires:        autoconf >= 2.60
 BuildRequires: automake
 BuildRequires: libtool
 BuildRequires: pkgconfig >= 1:0.19
+BuildRequires: sed >= 4.0
 BuildRequires: xorg-lib-libXext-devel
 BuildRequires: xorg-proto-resourceproto-devel >= 1.0
 BuildRequires: xorg-util-util-macros >= 1.8
@@ -67,6 +68,9 @@ Pakiet zawiera statycznÄ… bibliotekÄ™ libXres.
 %prep
 %setup -q -n libXres-%{version}
 
+# support __libmansuffix__ with "x" suffix (per FHS 2.3)
+%{__sed} -i -e 's,\.so man__libmansuffix__/,.so man3/,' man/*.man
+
 %build
 %{__libtoolize}
 %{__aclocal}
@@ -85,9 +89,6 @@ rm -rf $RPM_BUILD_ROOT
 
 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libXRes.la
 
-# 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
 
This page took 0.146781 seconds and 4 git commands to generate.