qjson-vl.spec 3.6 KB

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