[packages/v4l-utils] - handle lib*.so.0 library -> symlink transition

qboosh qboosh at pld-linux.org
Sat Oct 13 07:43:30 CEST 2012


commit 311fd35807ac6cc351a03ec442966436a0be7b87
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Oct 13 07:43:38 2012 +0200

    - handle lib*.so.0 library -> symlink transition

 v4l-utils.spec | 8 ++++++++
 1 file changed, 8 insertions(+)
---
diff --git a/v4l-utils.spec b/v4l-utils.spec
index 1f7b12a..d29c754 100644
--- a/v4l-utils.spec
+++ b/v4l-utils.spec
@@ -138,6 +138,14 @@ install utils/xc3028-firmware/firmware-tool $RPM_BUILD_ROOT%{_bindir}/xc3028-fir
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+# handle transition from libv4l 0.8.x (.so.0 used to be libraries, not symlinks)
+%pretrans -n libv4l
+for f in libv4l1 libv4l2 libv4lconvert ; do
+	if [ ! -h %{_libdir}/${f}.so.0 ]; then
+		rm -f %{_libdir}/${f}.so.0
+	fi
+done
+
 %post   -n libv4l -p /sbin/ldconfig
 %postun -n libv4l -p /sbin/ldconfig
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/v4l-utils.git/commitdiff/311fd35807ac6cc351a03ec442966436a0be7b87



More information about the pld-cvs-commit mailing list