1 | Name: jsoncpp |
---|
2 | Version: 1.9.1 |
---|
3 | Release: 1%{?_dist_release} |
---|
4 | Summary: JSON library implemented in C++ |
---|
5 | Summary(ja): C++ で実装された JSON ライブラリ |
---|
6 | |
---|
7 | Group: System Environment/Libraries |
---|
8 | License: Public Domain or MIT |
---|
9 | |
---|
10 | Vendor: Project Vine |
---|
11 | Distribution: Vine Linux |
---|
12 | |
---|
13 | URL: https://github.com/open-source-parsers/jsoncpp |
---|
14 | Source0: https://github.com/open-source-parsers/jsoncpp/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz |
---|
15 | |
---|
16 | Patch0000: %{name}-1.9.1-fix_version.patch |
---|
17 | |
---|
18 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
19 | BuildRequires: cmake > 3.15.0 |
---|
20 | BuildRequires: python3-devel |
---|
21 | BuildRequires: python3-rpm-macros |
---|
22 | |
---|
23 | %description |
---|
24 | %{name} is an implementation of a JSON (http://json.org) reader and writer in |
---|
25 | C++. JSON (JavaScript Object Notation) is a lightweight data-interchange format. |
---|
26 | It is easy for humans to read and write. It is easy for machines to parse and |
---|
27 | generate. |
---|
28 | |
---|
29 | |
---|
30 | %package devel |
---|
31 | Summary: Development headers and library for %{name} |
---|
32 | Summary(ja): %{name} の開発用ヘッダファイルとライブラリ |
---|
33 | Group: Development/Libraries |
---|
34 | Requires: %{name} = %{version}-%{release} |
---|
35 | Obsoletes: %{name}-doc < 1.0.0 |
---|
36 | %description devel |
---|
37 | This package contains the development headers and library for %{name}. |
---|
38 | |
---|
39 | |
---|
40 | %prep |
---|
41 | %autosetup -p1 |
---|
42 | |
---|
43 | %build |
---|
44 | mkdir -p %{_target_platform} |
---|
45 | pushd %{_target_platform} |
---|
46 | |
---|
47 | %cmake -DBUILD_STATIC_LIBS=OFF \ |
---|
48 | -DJSONCPP_WITH_WARNING_AS_ERROR=OFF \ |
---|
49 | -DJSONCPP_WITH_PKGCONFIG_SUPPORT=ON \ |
---|
50 | -DJSONCPP_WITH_CMAKE_PACKAGE=ON \ |
---|
51 | -DJSONCPP_WITH_POST_BUILD_UNITTEST=OFF \ |
---|
52 | -DPYTHON_EXECUTABLE="%{__python3}" \ |
---|
53 | .. |
---|
54 | popd |
---|
55 | %make_build -C %{_target_platform} |
---|
56 | |
---|
57 | |
---|
58 | %check |
---|
59 | %make_build -C %{_target_platform} jsoncpp_check |
---|
60 | |
---|
61 | |
---|
62 | %install |
---|
63 | rm -rf $RPM_BUILD_ROOT |
---|
64 | %make_install -C %{_target_platform} |
---|
65 | |
---|
66 | |
---|
67 | %clean |
---|
68 | rm -rf $RPM_BUILD_ROOT |
---|
69 | |
---|
70 | %post -p /sbin/ldconfig |
---|
71 | %postun -p /sbin/ldconfig |
---|
72 | |
---|
73 | %files |
---|
74 | %license AUTHORS LICENSE |
---|
75 | %doc README* |
---|
76 | %{_libdir}/lib%{name}.so.* |
---|
77 | |
---|
78 | %files devel |
---|
79 | %doc doc/*.html |
---|
80 | %{_libdir}/lib%{name}.so |
---|
81 | %{_includedir}/json |
---|
82 | %{_libdir}/cmake/* |
---|
83 | %{_libdir}/pkgconfig/%{name}.pc |
---|
84 | |
---|
85 | |
---|
86 | %changelog |
---|
87 | * Sat Sep 21 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.9.1-1 |
---|
88 | - new upstream release. |
---|
89 | - dropped Source1. |
---|
90 | - dropped Patch0. |
---|
91 | - imported Patch0000 from rawhide. |
---|
92 | - dropped a sub-package "doc". |
---|
93 | |
---|
94 | * Thu Jun 30 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.7.1-2 |
---|
95 | - rebuild with gcc-5.4.0 |
---|
96 | |
---|
97 | * Tue Jan 27 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 0.7.1-1 |
---|
98 | - Initial build for Vine Linux |
---|
99 | |
---|
100 | * Sun Sep 21 2014 Sébastien Willmann <sebastien.willmann@gmail.com> - 0.6.0-0.14.rc2 |
---|
101 | - Allow int values to be converted to string (#1143774) |
---|
102 | |
---|
103 | * Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-0.13.rc2 |
---|
104 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild |
---|
105 | |
---|
106 | * Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-0.12.rc2 |
---|
107 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild |
---|
108 | |
---|
109 | * Tue Sep 10 2013 Sébastien Willmann <sebastien.willmann@gmail.com> - 0.6.0-0.11.rc2 |
---|
110 | - https://bugzilla.redhat.com/show_bug.cgi?id=998149 : applied Michael Schwendt's |
---|
111 | patch to fix duplicated documentation |
---|
112 | |
---|
113 | * Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-0.10.rc2 |
---|
114 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild |
---|
115 | |
---|
116 | * Fri Mar 15 2013 Sébastien Willmann <sebastien.willmann@gmail.com> - 0.6.0-0.9.rc2 |
---|
117 | - Changed Summary |
---|
118 | - Added %%doc files to the doc package |
---|
119 | - Added python as an explicit BuildRequires |
---|
120 | |
---|
121 | * Fri Feb 15 2013 Sebastien Willmann <sebastien.willmann@gmail.com> - 0.6.0-0.8.rc2 |
---|
122 | - Added documentation sub-package |
---|
123 | |
---|
124 | * Sun Jan 20 2013 Sebastien Willmann <sebastien.willmann@gmail.com> - 0.6.0-0.7.rc2 |
---|
125 | - Added graphviz as a BuildRequire |
---|
126 | |
---|
127 | * Sat Jan 19 2013 Sebastien Willmann <sebastien.willmann@gmail.com> - 0.6.0-0.6.rc2 |
---|
128 | - Install the corrected library |
---|
129 | |
---|
130 | * Sat Dec 22 2012 Sebastien Willmann <sebastien.willmann@gmail.com> - 0.6.0-0.5.rc2 |
---|
131 | - Added libjsoncpp.so.0 |
---|
132 | - Moved the shared lib build to the correct section |
---|
133 | |
---|
134 | * Fri Dec 21 2012 Sebastien Willmann <sebastien.willmann@gmail.com> - 0.6.0-0.4.rc2 |
---|
135 | - Removed doc subpackage |
---|
136 | - Added .pc file |
---|
137 | - Fixed shared lib |
---|
138 | |
---|
139 | * Wed Dec 12 2012 Sebastien Willmann <sebastien.willmann@gmail.com> - 0.6.0-0.3.rc2 |
---|
140 | - Removed static package |
---|
141 | - Preserving timestamp on installed files |
---|
142 | - Added guard grep to the sed expression |
---|
143 | - Removed duplicated doc files |
---|
144 | - Removed dependency on pkgconfig |
---|
145 | - Changed base package group |
---|
146 | |
---|
147 | * Sun Dec 02 2012 Sébastien Willmann <sebastien.willmann@gmail.com> - 0.6.0-0.2.rc2 |
---|
148 | - Changed license field to Public Domain or MIT |
---|
149 | |
---|
150 | * Tue Nov 27 2012 Sébastien Willmann <sebastien.willmann@gmail.com> 0.6.0-0.1.rc2 |
---|
151 | - Creation of the spec file |
---|
152 | |
---|