source: projects/specs/trunk/q/qjson/qjson-vl.spec @ 1640

Revision 1640, 3.7 KB checked in by inagaki, 14 years ago (diff)

update: cmake, qjson

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