1 | Name: jsoncpp |
---|
2 | Version: 0.7.1 |
---|
3 | Release: 2%{?_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 | URL: http://sourceforge.net/projects/%{name}/ |
---|
10 | Source0: https://github.com/open-source-parsers/jsoncpp/archive/0.7.1.tar.gz |
---|
11 | Source1: jsoncpp.pc |
---|
12 | |
---|
13 | Patch0: asstring.patch |
---|
14 | |
---|
15 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
16 | BuildRequires: python scons doxygen |
---|
17 | BuildRequires: graphviz |
---|
18 | |
---|
19 | %description |
---|
20 | %{name} is an implementation of a JSON (http://json.org) reader and writer in |
---|
21 | C++. JSON (JavaScript Object Notation) is a lightweight data-interchange format. |
---|
22 | It is easy for humans to read and write. It is easy for machines to parse and |
---|
23 | generate. |
---|
24 | |
---|
25 | |
---|
26 | %package devel |
---|
27 | Summary: Development headers and library for %{name} |
---|
28 | Summary(ja): %{name} の開発用ヘッダファイルとライブラリ |
---|
29 | Group: Development/Libraries |
---|
30 | Requires: %{name} = %{version}-%{release} |
---|
31 | |
---|
32 | %description devel |
---|
33 | This package contains the development headers and library for %{name}. |
---|
34 | |
---|
35 | |
---|
36 | %package doc |
---|
37 | Summary: Documentation for %{name} |
---|
38 | Summary(ja): %{name} のドキュメント |
---|
39 | Group: Documentation |
---|
40 | BuildArch: noarch |
---|
41 | |
---|
42 | %description doc |
---|
43 | This package contains the documentation for %{name} |
---|
44 | |
---|
45 | |
---|
46 | %prep |
---|
47 | %setup -q |
---|
48 | #%patch0 -dsrc/lib_json -p1 |
---|
49 | grep -e "-Wall" SConstruct |
---|
50 | sed 's/CCFLAGS = "-Wall"/CCFLAGS = "%{optflags}"/' -i SConstruct |
---|
51 | sed 's/README\.txt/README\.md/' -i SConstruct |
---|
52 | |
---|
53 | %build |
---|
54 | scons platform=linux-gcc %{?_smp_mflags} |
---|
55 | # Now, lets make a proper shared lib. :P |
---|
56 | g++ -o libjsoncpp.so.0.0.0 -shared -Wl,-soname,libjsoncpp.so.0 buildscons/linux-gcc-*/src/lib_json/*.os -lpthread |
---|
57 | # Build the doc |
---|
58 | python doxybuild.py --with-dot --doxygen %{_bindir}/doxygen |
---|
59 | |
---|
60 | %check |
---|
61 | # Fails due to patch0 |
---|
62 | # scons platform=linux-gcc check %{?_smp_mflags} |
---|
63 | |
---|
64 | %install |
---|
65 | rm -rf $RPM_BUILD_ROOT |
---|
66 | install -p -D lib%{name}.so.0.0.0 $RPM_BUILD_ROOT%{_libdir}/lib%{name}.so.0.0.0 |
---|
67 | ln -s %{_libdir}/lib%{name}.so.0.0.0 $RPM_BUILD_ROOT%{_libdir}/lib%{name}.so |
---|
68 | ln -s %{_libdir}/lib%{name}.so.0.0.0 $RPM_BUILD_ROOT%{_libdir}/lib%{name}.so.0 |
---|
69 | |
---|
70 | install -d $RPM_BUILD_ROOT%{_includedir}/%{name}/json |
---|
71 | install -p -m 0644 include/json/*.h $RPM_BUILD_ROOT%{_includedir}/%{name}/json |
---|
72 | mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}/html |
---|
73 | for f in AUTHORS LICENSE NEWS.txt README.md; do |
---|
74 | install -p -m 0644 $f $RPM_BUILD_ROOT%{_docdir}/%{name} |
---|
75 | done |
---|
76 | install -p -m 0644 dist/doxygen/*/*.{html,png} $RPM_BUILD_ROOT%{_docdir}/%{name}/html |
---|
77 | install -d $RPM_BUILD_ROOT%{_libdir}/pkgconfig |
---|
78 | install -p -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_libdir}/pkgconfig/ |
---|
79 | sed -i 's|@@LIBDIR@@|%{_libdir}|g' $RPM_BUILD_ROOT%{_libdir}/pkgconfig/jsoncpp.pc |
---|
80 | |
---|
81 | %clean |
---|
82 | rm -rf $RPM_BUILD_ROOT |
---|
83 | |
---|
84 | %post -p /sbin/ldconfig |
---|
85 | %postun -p /sbin/ldconfig |
---|
86 | |
---|
87 | %files |
---|
88 | %{_docdir}/%{name}/ |
---|
89 | %exclude %{_docdir}/%{name}/html |
---|
90 | %{_libdir}/lib%{name}.so.0 |
---|
91 | %{_libdir}/lib%{name}.so.0.0.0 |
---|
92 | |
---|
93 | %files devel |
---|
94 | %{_libdir}/lib%{name}.so |
---|
95 | %{_includedir}/%{name}/ |
---|
96 | %{_libdir}/pkgconfig/jsoncpp.pc |
---|
97 | |
---|
98 | %files doc |
---|
99 | %{_docdir}/%{name}/ |
---|
100 | |
---|
101 | %changelog |
---|
102 | * Thu Jun 30 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.7.1-2 |
---|
103 | - rebuild with gcc-5.4.0 |
---|
104 | |
---|
105 | * Tue Jan 27 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 0.7.1-1 |
---|
106 | - Initial build for Vine Linux |
---|
107 | |
---|
108 | * Sun Sep 21 2014 Sébastien Willmann <sebastien.willmann@gmail.com> - 0.6.0-0.14.rc2 |
---|
109 | - Allow int values to be converted to string (#1143774) |
---|
110 | |
---|
111 | * Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-0.13.rc2 |
---|
112 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild |
---|
113 | |
---|
114 | * Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-0.12.rc2 |
---|
115 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild |
---|
116 | |
---|
117 | * Tue Sep 10 2013 Sébastien Willmann <sebastien.willmann@gmail.com> - 0.6.0-0.11.rc2 |
---|
118 | - https://bugzilla.redhat.com/show_bug.cgi?id=998149 : applied Michael Schwendt's |
---|
119 | patch to fix duplicated documentation |
---|
120 | |
---|
121 | * Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-0.10.rc2 |
---|
122 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild |
---|
123 | |
---|
124 | * Fri Mar 15 2013 Sébastien Willmann <sebastien.willmann@gmail.com> - 0.6.0-0.9.rc2 |
---|
125 | - Changed Summary |
---|
126 | - Added %%doc files to the doc package |
---|
127 | - Added python as an explicit BuildRequires |
---|
128 | |
---|
129 | * Fri Feb 15 2013 Sebastien Willmann <sebastien.willmann@gmail.com> - 0.6.0-0.8.rc2 |
---|
130 | - Added documentation sub-package |
---|
131 | |
---|
132 | * Sun Jan 20 2013 Sebastien Willmann <sebastien.willmann@gmail.com> - 0.6.0-0.7.rc2 |
---|
133 | - Added graphviz as a BuildRequire |
---|
134 | |
---|
135 | * Sat Jan 19 2013 Sebastien Willmann <sebastien.willmann@gmail.com> - 0.6.0-0.6.rc2 |
---|
136 | - Install the corrected library |
---|
137 | |
---|
138 | * Sat Dec 22 2012 Sebastien Willmann <sebastien.willmann@gmail.com> - 0.6.0-0.5.rc2 |
---|
139 | - Added libjsoncpp.so.0 |
---|
140 | - Moved the shared lib build to the correct section |
---|
141 | |
---|
142 | * Fri Dec 21 2012 Sebastien Willmann <sebastien.willmann@gmail.com> - 0.6.0-0.4.rc2 |
---|
143 | - Removed doc subpackage |
---|
144 | - Added .pc file |
---|
145 | - Fixed shared lib |
---|
146 | |
---|
147 | * Wed Dec 12 2012 Sebastien Willmann <sebastien.willmann@gmail.com> - 0.6.0-0.3.rc2 |
---|
148 | - Removed static package |
---|
149 | - Preserving timestamp on installed files |
---|
150 | - Added guard grep to the sed expression |
---|
151 | - Removed duplicated doc files |
---|
152 | - Removed dependency on pkgconfig |
---|
153 | - Changed base package group |
---|
154 | |
---|
155 | * Sun Dec 02 2012 Sébastien Willmann <sebastien.willmann@gmail.com> - 0.6.0-0.2.rc2 |
---|
156 | - Changed license field to Public Domain or MIT |
---|
157 | |
---|
158 | * Tue Nov 27 2012 Sébastien Willmann <sebastien.willmann@gmail.com> 0.6.0-0.1.rc2 |
---|
159 | - Creation of the spec file |
---|
160 | |
---|