Change package name ( libjosn -> libjson4 ) 40/176140/1 accepted/tizen_5.0_unified accepted/tizen_5.5_unified accepted/tizen_5.5_unified_mobile_hotfix accepted/tizen_5.5_unified_wearable_hotfix accepted/tizen_6.0_unified_hotfix sandbox/backup/json-c_0.13.1_20201109 tizen_5.0 tizen_5.5 tizen_5.5_mobile_hotfix tizen_5.5_tv tizen_5.5_wearable_hotfix tizen_6.0_hotfix accepted/tizen/5.0/unified/20181102.025241 accepted/tizen/5.5/unified/20191031.012040 accepted/tizen/5.5/unified/mobile/hotfix/20201027.074401 accepted/tizen/5.5/unified/wearable/hotfix/20201027.100727 accepted/tizen/6.0/unified/20201030.110624 accepted/tizen/6.0/unified/hotfix/20201102.234145 accepted/tizen/6.0/unified/hotfix/20201103.051351 accepted/tizen/unified/20180423.062848 accepted/tizen/unified/20180424.082651 accepted/tizen/unified/20201113.022401 submit/tizen/20180417.055303 submit/tizen/20180418.235849 submit/tizen/20180423.013343 submit/tizen/20180424.034521 submit/tizen/20201113.015638 submit/tizen/20201113.015703 submit/tizen_5.0/20181101.000006 submit/tizen_5.5/20191031.000007 submit/tizen_5.5_mobile_hotfix/20201026.185107 submit/tizen_5.5_wearable_hotfix/20201026.184307 submit/tizen_6.0/20201029.205502 submit/tizen_6.0_hotfix/20201102.192902 submit/tizen_6.0_hotfix/20201103.115102 tizen_5.5.m2_release tizen_6.0.m2_release
authorDongHun Kwak <dh0128.kwak@samsung.com>
Tue, 17 Apr 2018 05:27:15 +0000 (14:27 +0900)
committerDongHun Kwak <dh0128.kwak@samsung.com>
Tue, 17 Apr 2018 05:27:15 +0000 (14:27 +0900)
At json-c 0.13.1, soname is changed
libjson-c.so.2 -> libjson-c.so.4
Maybe, it's occured mic build error.

see the below log
repo problem: murphy-0.0.74-20180406.011749.armv7l requires
libjson-c.so.4, but this requirement cannot be provided, uninstallable
providers: libjson-0.13.1-20180406.011749.armv7l[prerelease]

[Model] All
[BinType] AP
[Customer] OPEN

[Issue#] N/A
[Request] N/A
[Occurrence Version] N/A

[Problem] mic image creating  error
[Cause & Measure] looking error for libjson-c so file at mic building
[Checking Method] mic build test

[Team] Open Source Management and Setting Part
[Developer] dh0128.kwak
[Solution company] Samsung
[Change Type] N/A

Change-Id: I59fbd9ad20132372e7c1626c55bdd42e6df62640
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
json-c.pc.in
packaging/json-c.spec

index 074378b..e5d9070 100644 (file)
@@ -7,6 +7,5 @@ Name: json-c
 Description: A JSON implementation in C
 Version: @VERSION@
 Requires:
-Libs.private: @LIBS@
 Libs: -L${libdir} -ljson-c
 Cflags: -I${includedir}/json-c
index 6ba4dfc..aa14f17 100644 (file)
@@ -1,15 +1,18 @@
+%define libname libjson
+%define libsoname %{libname}4
 Name:           json-c
 Version:        0.13.1
 Release:        0
-License:        MIT
 Summary:        JSON implementation in C
-Url:            http://oss.metaparadigm.com/%{name}
-Group:          System/Libraries
-Source0:        http://oss.metaparadigm.com/json-c/json-c-%{version}.tar.gz
+License:        MIT
+Group:          Development/Libraries/C and C++
+Url:            https://github.com/json-c/json-c/wiki
+#Git-Clone     git://github.com/json-c/json-c
+Source0:        https://s3.amazonaws.com/json-c_releases/releases/%{name}-%{version}.tar.gz
 Source1:        baselibs.conf
 Source1001:     json-c.manifest
 BuildRequires:  libtool
-BuildRequires:  pkg-config
+BuildRequires:  pkgconfig
 
 %description
 JSON-C implements a reference counting object model that allows you to
@@ -17,19 +20,29 @@ easily construct JSON objects in C, output them as JSON formatted
 strings and parse JSON formatted strings back into the C
 representation of JSON objects.
 
-%package -n libjson
-Summary:        JSON shared lib
+%package -n %{libsoname}
+Summary:        JSON-C shared library
 Group:          System/Libraries
 
-%description -n libjson
+%description -n %{libsoname}
+JSON-C implements a reference counting object model that allows you to
+easily construct JSON objects in C, output them as JSON formatted
+strings and parse JSON formatted strings back into the C
+representation of JSON objects.
+
 This package includes the JSON library.
 
-%package -n libjson-devel
+%package -n %{libname}-devel
 Summary:        Development headers and libraries for json-c
-Group:          Development/Libraries
-Requires:       libjson = %{version}
+Group:          Development/Libraries/C and C++
+Requires:       %{libsoname} = %{version}
+
+%description -n %{libname}-devel
+JSON-C implements a reference counting object model that allows you to
+easily construct JSON objects in C, output them as JSON formatted
+strings and parse JSON formatted strings back into the C
+representation of JSON objects.
 
-%description -n libjson-devel
 This package includes header files and scripts needed for developers
 using the json-c library
 
@@ -38,31 +51,34 @@ using the json-c library
 cp %{SOURCE1001} .
 
 %build
-%reconfigure --disable-static --with-pic
-# Build with "-j1" to prevent an existing race condition
-%__make -j1
+%reconfigure --disable-static --with-pic --disable-oldname-compat
+make %{?_smp_mflags}
 
 %check
-%__make check || exit 0
+make %{?_smp_mflags} check
 
 %install
 %make_install
+find %{buildroot} -type f -name "*.la" -delete -print
+# create a compatibilty pkg-config file for software needing it
+(cd %{buildroot}%{_libdir}/pkgconfig && ln -s json-c.pc json.pc)
 
+%remove_docs
 
-%post -n libjson -p /sbin/ldconfig
-
-%postun -n libjson -p /sbin/ldconfig
+%post -n %{libsoname} -p /sbin/ldconfig
+%postun -n %{libsoname} -p /sbin/ldconfig
 
-%files -n libjson
+%files -n %{libsoname}
 %manifest %{name}.manifest
 %defattr(-,root,root)
-%license COPYING
 %{_libdir}/libjson-c.so.*
+%license COPYING
 
-%files -n libjson-devel
+%files -n %{libname}-devel
 %manifest %{name}.manifest
 %defattr(-,root,root)
-%license COPYING
 %{_libdir}/libjson-c.so
 %{_includedir}/json-c
 %{_libdir}/pkgconfig/*.pc
+
+%changelog