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