[packages/v4l-utils] Rel 3. dropped %pretrans for the migration from libv4l 0.8
arekm
arekm at pld-linux.org
Tue Oct 13 01:00:15 CEST 2026
commit 5611aac74cad9b53b6d5898c452955bde01d6392
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Tue Oct 13 00:54:58 2026 +0200
Rel 3. dropped %pretrans for the migration from libv4l 0.8
A sh %pretrans needs /bin/sh in the rpmdb already, so installing into
an empty root failed.
v4l-utils.spec | 12 +-----------
1 file changed, 1 insertion(+), 11 deletions(-)
---
diff --git a/v4l-utils.spec b/v4l-utils.spec
index 1ee908c..fb640eb 100644
--- a/v4l-utils.spec
+++ b/v4l-utils.spec
@@ -14,7 +14,7 @@ Summary: Collection of Video4Linux utilities
Summary(pl.UTF-8): Zbiór narzędzi do urządzeń Video4Linux
Name: v4l-utils
Version: 1.32.0
-Release: 2
+Release: 3
License: GPL v2+ (utilities), LGPL v2.1+ (libraries)
Group: Applications/System
Source0: https://linuxtv.org/downloads/v4l-utils/%{name}-%{version}.tar.xz
@@ -63,8 +63,6 @@ BuildRequires: udev-devel
#BuildRequires: xmlrpc-c-devel
BuildRequires: xorg-lib-libX11-devel
BuildRequires: xz
-# for rm
-Requires(pretrans): coreutils
Requires: json-c >= 0.15
Requires: libv4l = %{version}-%{release}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -249,14 +247,6 @@ rm -rf $RPM_BUILD_ROOT
%update_desktop_database_postun
%update_icon_cache hicolor
-# 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/5611aac74cad9b53b6d5898c452955bde01d6392
More information about the pld-cvs-commit
mailing list