Name: qjson Summary: A qt-based library that maps JSON data to QVariant objects Version: 0.7.1 Release: 3%{?_dist_release} Group: System Environment/Libraries License: GPLv2+ URL: http://sourceforge.net/projects/qjson/ Source0: http://downloads.sourceforge.net/project/qjson/qjson/0.7.1/%{name}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildRequires: qt4-devel BuildRequires: cmake >= 2.6 BuildRequires: doxygen %description JSON is a lightweight data-interchange format. It can represents integer, real number, string, an ordered sequence of value, and a collection of name/value pairs.QJson is a qt-based library that maps JSON data to QVariant objects. %package devel Summary: Development files for qjson Group: Development/Libraries Requires: %{name} = %{version}-%{release} Requires: qt4-devel Requires: pkgconfig Requires: cmake %description devel The %{name}-devel package contains the libraries and header files required for developing applications that use %{name}. %prep %setup -qn qjson %build mkdir -p %{_target_platform} pushd %{_target_platform} %cmake -DQJSON_BUILD_TESTS=1 \ -DCMAKE_MODULES_INSTALL_DIR=%{_datadir}/CMake/Modules/ \ .. cd %{_builddir}/%{buildsubdir}/doc doxygen popd sed -i -e 's/-fno-exceptions -fno-check-new -fno-common//' \ -e 's/-fno-threadsafe-statics -fvisibility=hidden -fvisibility-inlines-hidden//' \ -e 's/-ansi//' %{_target_platform}/src/CMakeFiles/qjson.dir/flags.make make %{?_smp_mflags} -C %{_target_platform} %install rm -rf %{buildroot} make install DESTDIR=%{buildroot} -C %{_target_platform} %check LD_PRELOAD=%{_target_platform}/%{_lib}/libqjson.so \ %{_target_platform}/tests/testparser LD_PRELOAD=%{_target_platform}/%{_lib}/libqjson.so \ %{_target_platform}/tests/testserializer %clean rm -rf %{buildroot} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root,-) %doc COPYING %{_libdir}/*.so.* %files devel %defattr(-,root,root,-) %doc doc/html %{_includedir}/qjson/ %{_libdir}/pkgconfig/*.pc %{_datadir}/CMake/Modules/FindQJSON.cmake %{_libdir}/*.so %changelog * Tue Aug 17 2010 Ryoichi INAGAKI 0.7.1-3 - fixed CMAKE_MODULES_INSTALL_DIR * Sun Aug 15 2010 Ryoichi INAGAKI 0.7.1-2 - initial build for Vine Linux * Sat Dec 12 2009 Eli Wapniarski 0.7.1-1 -0.7.1 - Version upgrade - Fixed doxygen documentation (Thanks again Orcan) * Tue Dec 8 2009 Eli Wapniarski 0.6.3-6 -0.6.3 - Fixed capitalization of the summary * Tue Dec 8 2009 Eli Wapniarski 0.6.3-5 -0.6.3 - Moved Doxygen docs to the development package. - Corrected placement of the cmake project file (Thanks Orcan) - Fixed the running of the build tests - Corrected column length of the descriptions - Changed description of the devlepment package * Sun Dec 6 2009 Eli Wapniarski 0.6.3-4 -0.6.3 - Additional placment of library files fix * Fri Dec 4 2009 Eli Wapniarski 0.6.3-3 -0.6.3 - Fixed placment of library files - Activated build tests - Corrected ownership of include directory - Corrected dependacies - Added doxygen documentation - Fixed reported version in the changelogs * Sun Nov 22 2009 Eli Wapniarski 0.6.3-2 -0.6.3 - Split off development libraries to its own package - Modified licensing in spec file to reflect GPL2 code though docs state that qjson - licensed under LPGL - Uncommeted and corrected sed line in this spec file * Sun Nov 22 2009 Eli Wapniarski 0.6.3-1 -0.6.3 - Initial Build