[packages/json-c] Rel 3. dropped %pretrans for the migration from json-c 0.11

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


commit 3e767a9d2fcad367fb4fb4541c4fd9e7a5b80087
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 json-c 0.11
    
    A sh %pretrans needs /bin/sh in the rpmdb already, so installing into
    an empty root failed.

 json-c.spec | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)
---
diff --git a/json-c.spec b/json-c.spec
index 0cf7b07..1eddae8 100644
--- a/json-c.spec
+++ b/json-c.spec
@@ -6,7 +6,7 @@ Summary:	A JSON implementation in C
 Summary(pl.UTF-8):	Implementacja JSON w C
 Name:		json-c
 Version:	0.19
-Release:	2
+Release:	3
 License:	MIT
 Group:		Libraries
 #Source0Download: https://s3.amazonaws.com/json-c_releases/releases/index.html # with AJAX (requires JavaScript)
@@ -79,15 +79,6 @@ rm -rf $RPM_BUILD_ROOT
 %post	-p /sbin/ldconfig
 %postun	-p /sbin/ldconfig
 
-%pretrans devel
-# transition from 0.11-2
-[ ! -L %{_includedir}/json-c ] || rm -f %{_includedir}/json-c
-# transition from <= 0.10 and 0.11-2
-if [ -d %{_includedir}/json -a ! -d %{_includedir}/json-c ]; then
-	mv -f %{_includedir}/json %{_includedir}/json-c
-	ln -sf json-c %{_includedir}/json
-fi
-
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS COPYING ChangeLog README README.html
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/json-c.git/commitdiff/3e767a9d2fcad367fb4fb4541c4fd9e7a5b80087



More information about the pld-cvs-commit mailing list