[packages/file] Rel 2. dropped %pretrans for the 2009 datadir migration

arekm arekm at pld-linux.org
Tue Oct 13 00:56:31 CEST 2026


commit e3ad418fbc2636aedba4ed735cc7d5f7a90699f1
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Tue Oct 13 00:54:58 2026 +0200

    Rel 2. dropped %pretrans for the 2009 datadir migration
    
    A sh %pretrans needs /bin/sh in the rpmdb already, so installing into
    an empty root failed.

 file.spec | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)
---
diff --git a/file.spec b/file.spec
index a8c5d25..863b7e9 100644
--- a/file.spec
+++ b/file.spec
@@ -35,7 +35,7 @@ Summary(zh_CN.UTF-8):	判定文件类型的工具。
 Summary(zh_TW.UTF-8):	用於決定檔案類型的一個工具程式。
 Name:		file
 Version:	5.48
-Release:	1
+Release:	2
 License:	distributable
 Group:		Applications/File
 Source0:	https://astron.com/pub/file/%{name}-%{version}.tar.gz
@@ -74,7 +74,6 @@ BuildRequires:	rpm-pythonprov
 BuildRequires:	xz-devel
 BuildRequires:	zlib-devel
 BuildRequires:	zstd-devel
-Requires(pretrans):	coreutils
 Requires:	libmagic = %{version}-%{release}
 Conflicts:	rpm-build < 4.4.1-9
 Conflicts:	xdelta < 1.0.0
@@ -376,16 +375,6 @@ rm -rf $RPM_BUILD_ROOT
 %post	-n libmagic -p /sbin/ldconfig
 %postun	-n libmagic -p /sbin/ldconfig
 
-%pretrans
-# it used to be directory
-if [ -d %{_datadir}/file -a ! -L %{_datadir}/file ]; then
-	mv -b %{_datadir}/file{,.dir}
-	ln -sn misc %{_datadir}/file
-%banner -e %{name} <<EOF
-Check %{_datadir}/file.dir for your own files and remove it when done.
-EOF
-fi
-
 %files
 %defattr(644,root,root,755)
 %doc ChangeLog COPYING
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/file.git/commitdiff/e3ad418fbc2636aedba4ed735cc7d5f7a90699f1



More information about the pld-cvs-commit mailing list