[packages/json-c] - reverse symlink to dir to avoid rpm upgrade issues - rel 2

baggins baggins at pld-linux.org
Wed Dec 4 01:09:31 CET 2013


commit f8481a7a9b815b104356c6adaef2db4629c52b5f
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Wed Dec 4 01:08:56 2013 +0100

    - reverse symlink to dir to avoid rpm upgrade issues
    - rel 2

 json-c.spec | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/json-c.spec b/json-c.spec
index 3cee078..9ba6f05 100644
--- a/json-c.spec
+++ b/json-c.spec
@@ -2,7 +2,7 @@ Summary:	A JSON implementation in C
 Summary(pl.UTF-8):	Implementacja JSON w C
 Name:		json-c
 Version:	0.11
-Release:	1
+Release:	2
 License:	MIT
 Group:		Development/Libraries
 Source0:	https://s3.amazonaws.com/json-c_releases/releases/%{name}-%{version}.tar.gz
@@ -59,6 +59,10 @@ rm -rf $RPM_BUILD_ROOT
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
+%{__rm} $RPM_BUILD_ROOT%{_includedir}/json
+%{__mv} $RPM_BUILD_ROOT%{_includedir}/json{-c,}
+ln -s %{_includedir}/json $RPM_BUILD_ROOT%{_includedir}/json-c
+
 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
 
 %clean
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list