Bumpt to jsoncpp 1.8.4 80/194180/1 accepted/tizen_5.5_unified accepted/tizen_5.5_unified_mobile_hotfix accepted/tizen_5.5_unified_wearable_hotfix tizen_5.5 tizen_5.5_mobile_hotfix tizen_5.5_tv tizen_5.5_wearable_hotfix accepted/tizen/5.5/unified/20191031.012157 accepted/tizen/5.5/unified/mobile/hotfix/20201027.074452 accepted/tizen/5.5/unified/wearable/hotfix/20201027.100818 accepted/tizen/unified/20181130.065035 submit/tizen/20181130.012606 submit/tizen_5.5/20191031.000007 submit/tizen_5.5_mobile_hotfix/20201026.185107 submit/tizen_5.5_wearable_hotfix/20201026.184307 tizen_5.5.m2_release
authorDongHun Kwak <dh0128.kwak@samsung.com>
Fri, 30 Nov 2018 01:19:53 +0000 (10:19 +0900)
committerDongHun Kwak <dh0128.kwak@samsung.com>
Fri, 30 Nov 2018 01:24:56 +0000 (10:24 +0900)
[Model] All
[BinType] AP
[Customer] OPEN

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

[Problem] version upgrade
[Cause & Measure]
[Checking Method]

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

Change-Id: I417c438d84e78ebeacf85abe75c94b6895324172
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
packaging/baselibs.conf [new file with mode: 0644]
packaging/jsoncpp.manifest [new file with mode: 0644]
packaging/jsoncpp.spec [new file with mode: 0644]

diff --git a/packaging/baselibs.conf b/packaging/baselibs.conf
new file mode 100644 (file)
index 0000000..97bf453
--- /dev/null
@@ -0,0 +1 @@
+libjsoncpp
diff --git a/packaging/jsoncpp.manifest b/packaging/jsoncpp.manifest
new file mode 100644 (file)
index 0000000..017d22d
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+    <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/jsoncpp.spec b/packaging/jsoncpp.spec
new file mode 100644 (file)
index 0000000..ce779a9
--- /dev/null
@@ -0,0 +1,76 @@
+%global jsondir json
+
+Name:       jsoncpp
+Version:    1.8.4
+Release:    0
+Summary:    JSON library implemented in C++
+Group:      System Environment/Libraries
+License:    Public-domain or MIT
+URL:        https://github.com/open-source-parsers/jsoncpp
+Source0:    https://github.com/open-source-parsers/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
+Source1:    baselibs.conf
+Source1001: jsoncpp.manifest
+
+BuildRequires:  doxygen cmake
+BuildRequires:  python
+#BuildRequires:  graphviz
+
+%description
+%{name} is an implementation of a JSON (http://json.org) reader and writer in
+C++. JSON (JavaScript Object Notation) is a lightweight data-interchange format.
+It is easy for humans to read and write. It is easy for machines to parse and
+generate.
+
+
+%package devel
+Summary:    Development headers and library for %{name}
+Group:      Development/Libraries
+Requires:   %{name}%{?_isa} = %{version}-%{release}
+
+%description devel
+This package contains the development headers and library for %{name}.
+
+%prep
+%setup -q -n %{name}-%{version}
+cp %{SOURCE1001} .
+
+%build
+%cmake -DJSONCPP_WITH_TESTS=OFF -DJSONCPP_WITH_POST_BUILD_UNITTEST=OFF -DBUILD_SHARED_LIBS=ON -DBUILD_STATIC_LIBS=OFF .
+make %{?_smp_mflags}
+# Build the doc
+python doxybuild.py --doxygen %{_bindir}/doxygen
+
+#%check
+# Tests are run automatically in the build section
+# ctest -V %{?_smp_mflags}
+
+%install
+make install DESTDIR=%{buildroot}
+
+#mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}/html
+#for f in AUTHORS LICENSE NEWS.txt README.md ; do
+#    install -p -m 0644 $f $RPM_BUILD_ROOT%{_docdir}/%{name}
+#done
+#install -p -m 0644 dist/doxygen/*/*.{html,png} $RPM_BUILD_ROOT%{_docdir}/%{name}/html
+
+mkdir -p $RPM_BUILD_ROOT%{_includedir}/%{name}/
+ln -sf ../json $RPM_BUILD_ROOT%{_includedir}/%{name}/json
+
+%remove_docs
+
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%license LICENSE
+%exclude %{_docdir}/%{name}/html
+%{_libdir}/lib%{name}.so.*
+
+%files devel
+%license LICENSE
+%{_libdir}/lib%{name}.so
+%{_includedir}/%{jsondir}/
+%{_includedir}/%{name}/%{jsondir}/
+%{_libdir}/pkgconfig/jsoncpp.pc
+