1 | Name: qjson |
---|
2 | Summary: A qt-based library that maps JSON data to QVariant objects |
---|
3 | Version: 0.7.1 |
---|
4 | Release: 5%{?_dist_release} |
---|
5 | |
---|
6 | Group: System Environment/Libraries |
---|
7 | License: GPLv2+ |
---|
8 | URL: http://sourceforge.net/projects/qjson/ |
---|
9 | |
---|
10 | Source0: http://downloads.sourceforge.net/project/qjson/qjson/0.7.1/%{name}-%{version}.tar.bz2 |
---|
11 | |
---|
12 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
13 | BuildRequires: cmake >= 2.6 |
---|
14 | BuildRequires: qt4-devel |
---|
15 | BuildRequires: doxygen |
---|
16 | |
---|
17 | %description |
---|
18 | JSON is a lightweight data-interchange format. It can represents integer, real |
---|
19 | number, string, an ordered sequence of value, and a collection of |
---|
20 | name/value pairs.QJson is a qt-based library that maps JSON data to |
---|
21 | QVariant objects. |
---|
22 | |
---|
23 | %package devel |
---|
24 | Summary: Development files for qjson |
---|
25 | Summary(ja): qjson の開発用ファイル |
---|
26 | Group: Development/Libraries |
---|
27 | Requires: %{name} = %{version}-%{release} |
---|
28 | Requires: qt4-devel |
---|
29 | |
---|
30 | %description devel |
---|
31 | The %{name}-devel package contains the libraries and header files required for |
---|
32 | developing applications that use %{name}. |
---|
33 | |
---|
34 | %prep |
---|
35 | %setup -qn qjson |
---|
36 | |
---|
37 | %build |
---|
38 | mkdir -p %{_target_platform} |
---|
39 | pushd %{_target_platform} |
---|
40 | %cmake -DQJSON_BUILD_TESTS=1 \ |
---|
41 | -DCMAKE_MODULES_INSTALL_DIR=%{_datadir}/cmake/Modules/ \ |
---|
42 | .. |
---|
43 | cd %{_builddir}/%{buildsubdir}/doc |
---|
44 | doxygen |
---|
45 | popd |
---|
46 | |
---|
47 | sed -i -e 's/-fno-exceptions -fno-check-new -fno-common//' \ |
---|
48 | -e 's/-fno-threadsafe-statics -fvisibility=hidden -fvisibility-inlines-hidden//' \ |
---|
49 | -e 's/-ansi//' %{_target_platform}/src/CMakeFiles/qjson.dir/flags.make |
---|
50 | |
---|
51 | make %{?_smp_mflags} -C %{_target_platform} |
---|
52 | |
---|
53 | %install |
---|
54 | rm -rf %{buildroot} |
---|
55 | make install DESTDIR=%{buildroot} -C %{_target_platform} |
---|
56 | |
---|
57 | %check |
---|
58 | LD_PRELOAD=%{_target_platform}/%{_lib}/libqjson.so \ |
---|
59 | %{_target_platform}/tests/testparser |
---|
60 | LD_PRELOAD=%{_target_platform}/%{_lib}/libqjson.so \ |
---|
61 | %{_target_platform}/tests/testserializer |
---|
62 | |
---|
63 | %clean |
---|
64 | rm -rf %{buildroot} |
---|
65 | |
---|
66 | %post -p /sbin/ldconfig |
---|
67 | |
---|
68 | %postun -p /sbin/ldconfig |
---|
69 | |
---|
70 | %files |
---|
71 | %defattr(-,root,root,-) |
---|
72 | %doc COPYING |
---|
73 | %{_libdir}/*.so.* |
---|
74 | |
---|
75 | %files devel |
---|
76 | %defattr(-,root,root,-) |
---|
77 | %doc doc/html |
---|
78 | %{_includedir}/qjson/ |
---|
79 | %{_libdir}/pkgconfig/*.pc |
---|
80 | %{_datadir}/cmake/Modules/FindQJSON.cmake |
---|
81 | %{_libdir}/*.so |
---|
82 | |
---|
83 | %changelog |
---|
84 | * Mon Sep 20 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.7.1-5 |
---|
85 | - rebuilt with rpm-4.8.1 |
---|
86 | |
---|
87 | * Sun Aug 22 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.7.1-4 |
---|
88 | - re-fixed CMAKE_MODULES_INSTALL_DIR |
---|
89 | |
---|
90 | * Tue Aug 17 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.7.1-3 |
---|
91 | - fixed CMAKE_MODULES_INSTALL_DIR |
---|
92 | |
---|
93 | * Sun Aug 15 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.7.1-2 |
---|
94 | - initial build for Vine Linux |
---|
95 | |
---|
96 | * Sat Dec 12 2009 Eli Wapniarski <eli@orbsky.homelinux.org> 0.7.1-1 |
---|
97 | -0.7.1 |
---|
98 | - Version upgrade |
---|
99 | - Fixed doxygen documentation (Thanks again Orcan) |
---|
100 | |
---|
101 | * Tue Dec 8 2009 Eli Wapniarski <eli@orbsky.homelinux.org> 0.6.3-6 |
---|
102 | -0.6.3 |
---|
103 | - Fixed capitalization of the summary |
---|
104 | |
---|
105 | * Tue Dec 8 2009 Eli Wapniarski <eli@orbsky.homelinux.org> 0.6.3-5 |
---|
106 | -0.6.3 |
---|
107 | - Moved Doxygen docs to the development package. |
---|
108 | - Corrected placement of the cmake project file (Thanks Orcan) |
---|
109 | - Fixed the running of the build tests |
---|
110 | - Corrected column length of the descriptions |
---|
111 | - Changed description of the devlepment package |
---|
112 | |
---|
113 | * Sun Dec 6 2009 Eli Wapniarski <eli@orbsky.homelinux.org> 0.6.3-4 |
---|
114 | -0.6.3 |
---|
115 | - Additional placment of library files fix |
---|
116 | |
---|
117 | * Fri Dec 4 2009 Eli Wapniarski <eli@orbsky.homelinux.org> 0.6.3-3 |
---|
118 | -0.6.3 |
---|
119 | - Fixed placment of library files |
---|
120 | - Activated build tests |
---|
121 | - Corrected ownership of include directory |
---|
122 | - Corrected dependacies |
---|
123 | - Added doxygen documentation |
---|
124 | - Fixed reported version in the changelogs |
---|
125 | |
---|
126 | * Sun Nov 22 2009 Eli Wapniarski <eli@orbsky.homelinux.org> 0.6.3-2 |
---|
127 | -0.6.3 |
---|
128 | - Split off development libraries to its own package |
---|
129 | - Modified licensing in spec file to reflect GPL2 code though docs state that qjson |
---|
130 | - licensed under LPGL |
---|
131 | - Uncommeted and corrected sed line in this spec file |
---|
132 | |
---|
133 | * Sun Nov 22 2009 Eli Wapniarski <eli@orbsky.homelinux.org> 0.6.3-1 |
---|
134 | -0.6.3 |
---|
135 | - Initial Build |
---|