[10025] | 1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
| 2 | |
---|
[10716] | 3 | %define glib_ver 2.48.0 |
---|
[2041] | 4 | |
---|
| 5 | Name: json-glib |
---|
[12396] | 6 | Summary: Library for JavaScript Object Notation format |
---|
[12005] | 7 | Version: 1.4.4 |
---|
[12396] | 8 | Release: 2%{?_dist_release} |
---|
| 9 | Group: System Environment/Libraries |
---|
| 10 | Vendor: Project Vine |
---|
| 11 | Distribution: Vine Linux |
---|
[2041] | 12 | |
---|
| 13 | License: LGPLv2+ |
---|
| 14 | URL: http://live.gnome.org/JsonGlib |
---|
| 15 | #VCS: git:git://git.gnome.org/json-glib |
---|
[12396] | 16 | %global shortver %(echo %{version} | cut -d . -f 1,2) |
---|
| 17 | Source0: https://download.gnome.org/sources/%{name}/%{shortver}/%{name}-%{version}.tar.xz |
---|
| 18 | |
---|
[2041] | 19 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
---|
| 20 | |
---|
[12005] | 21 | BuildRequires: meson |
---|
[2041] | 22 | BuildRequires: glib2-devel >= %{glib_ver} |
---|
| 23 | BuildRequires: gobject-introspection-devel |
---|
| 24 | |
---|
| 25 | %description |
---|
| 26 | %{name} is a library providing serialization and deserialization support |
---|
| 27 | for the JavaScript Object Notation (JSON) format. |
---|
| 28 | |
---|
| 29 | |
---|
[10025] | 30 | %package devel |
---|
[2041] | 31 | Summary: Development files for %{name} |
---|
| 32 | Group: Development/Libraries |
---|
| 33 | Requires: %{name} = %{version}-%{release} |
---|
| 34 | Requires: glib2-devel >= %{glib_ver} |
---|
| 35 | Requires: gtk-doc |
---|
| 36 | Requires: pkgconfig |
---|
| 37 | |
---|
| 38 | |
---|
| 39 | %description devel |
---|
| 40 | The %{name}-devel package contains libraries and header files for |
---|
| 41 | developing applications that use %{name}. |
---|
| 42 | |
---|
[10025] | 43 | # compat32 |
---|
| 44 | %package -n compat32-%{name} |
---|
| 45 | Summary: Library for JavaScript Object Notation format |
---|
| 46 | Group: System Environment/Libraries |
---|
[2041] | 47 | |
---|
[10025] | 48 | %description -n compat32-%{name} |
---|
| 49 | %{name} is a library providing serialization and deserialization support |
---|
| 50 | for the JavaScript Object Notation (JSON) format. |
---|
| 51 | |
---|
| 52 | |
---|
[2041] | 53 | %prep |
---|
| 54 | %setup -q |
---|
| 55 | |
---|
| 56 | |
---|
| 57 | %build |
---|
[12005] | 58 | %meson |
---|
| 59 | %meson_build |
---|
[2041] | 60 | |
---|
| 61 | |
---|
| 62 | %install |
---|
[12005] | 63 | rm -rf %{buildroot} |
---|
| 64 | %meson_install |
---|
[2041] | 65 | |
---|
[12005] | 66 | rm -rf %{buildroot}%{_libexecdir}/installed-tests |
---|
| 67 | rm -rf %{buildroot}%{_datadir}/installed-tests |
---|
[2041] | 68 | |
---|
[4812] | 69 | %find_lang %{name}-1.0 |
---|
[2041] | 70 | |
---|
| 71 | %check |
---|
| 72 | # make check |
---|
| 73 | |
---|
| 74 | |
---|
| 75 | %clean |
---|
[12005] | 76 | rm -rf %{buildroot} |
---|
[2041] | 77 | |
---|
| 78 | |
---|
| 79 | %post -p /sbin/ldconfig |
---|
| 80 | |
---|
| 81 | %postun -p /sbin/ldconfig |
---|
| 82 | |
---|
[10025] | 83 | %post -n compat32-%{name} -p /sbin/ldconfig |
---|
[2041] | 84 | |
---|
[10025] | 85 | %postun -n compat32-%{name} -p /sbin/ldconfig |
---|
| 86 | |
---|
[4812] | 87 | %files -f %{name}-1.0.lang |
---|
[2041] | 88 | %defattr(-,root,root,-) |
---|
[12005] | 89 | %license COPYING |
---|
| 90 | %doc NEWS |
---|
[8353] | 91 | %{_bindir}/json-glib-format |
---|
| 92 | %{_bindir}/json-glib-validate |
---|
[2041] | 93 | %{_libdir}/lib%{name}*.so.* |
---|
| 94 | %{_libdir}/girepository-1.0/Json-1.0.typelib |
---|
| 95 | |
---|
| 96 | %files devel |
---|
| 97 | %defattr(-,root,root,-) |
---|
| 98 | %{_libdir}/lib%{name}*.so |
---|
| 99 | %{_libdir}/pkgconfig/%{name}-1.0.pc |
---|
| 100 | %{_includedir}/%{name}-1.0/ |
---|
[12005] | 101 | #%{_datadir}/gtk-doc/html/%{name}/ |
---|
[2041] | 102 | %{_datadir}/gir-1.0/Json-1.0.gir |
---|
| 103 | |
---|
[10025] | 104 | %if %{build_compat32} |
---|
| 105 | %files -n compat32-%{name} |
---|
| 106 | %defattr(-,root,root,-) |
---|
| 107 | %{_libdir}/lib%{name}*.so.* |
---|
| 108 | %endif |
---|
[2041] | 109 | |
---|
[10025] | 110 | |
---|
[2041] | 111 | %changelog |
---|
[12396] | 112 | * Tue May 05 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.4.4-2 |
---|
| 113 | - rebuilt with current envirpnment. |
---|
| 114 | |
---|
[12005] | 115 | * Thu Jan 03 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.4.4-1 |
---|
| 116 | - new upstream release. |
---|
| 117 | |
---|
[10716] | 118 | * Thu Jul 14 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.2.0-1 |
---|
| 119 | - new upstream release |
---|
| 120 | |
---|
[10025] | 121 | * Sat Feb 13 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.0.4-2 |
---|
| 122 | - create compat32-json-glib subpackage |
---|
| 123 | |
---|
[9475] | 124 | * Sat Mar 28 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.0.4-1 |
---|
| 125 | - new upstream release |
---|
| 126 | |
---|
[9073] | 127 | * Sun Oct 26 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.0.2-1 |
---|
| 128 | - new upstream release |
---|
| 129 | |
---|
[8353] | 130 | * Sat Mar 29 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.0.0-1 |
---|
| 131 | - new upstream release |
---|
| 132 | |
---|
[8085] | 133 | * Tue Dec 31 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.16.2-2 |
---|
| 134 | - rebuild with VineSeed environment |
---|
| 135 | |
---|
[7938] | 136 | * Sat Oct 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.16.2-1 |
---|
| 137 | - new upstream release |
---|
| 138 | |
---|
[7633] | 139 | * Wed Apr 17 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.16.0-1 |
---|
| 140 | - new upstream release |
---|
| 141 | |
---|
[6890] | 142 | * Fri Sep 28 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.15.2-1 |
---|
| 143 | - new upstream release |
---|
| 144 | |
---|
[6011] | 145 | * Sun Apr 01 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.14.2-1 |
---|
| 146 | - update to 0.14.2 |
---|
| 147 | |
---|
[4812] | 148 | * Fri Sep 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.14.0-1 |
---|
| 149 | - new upstream release |
---|
| 150 | |
---|
[4616] | 151 | * Sun Aug 14 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.13.4-1 |
---|
| 152 | - new upstream release |
---|
| 153 | |
---|
[3801] | 154 | * Thu May 05 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.12.4-1 |
---|
| 155 | - new upstream release |
---|
| 156 | |
---|
[2566] | 157 | * Sun Jan 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.12.2-1 |
---|
| 158 | - new upstream release |
---|
| 159 | |
---|
[2041] | 160 | * Sun Oct 03 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.12.0-1 |
---|
| 161 | - initial build for Vine Linux |
---|
| 162 | |
---|
| 163 | |
---|
| 164 | * Thu Jul 15 2010 Colin Walters <walters@verbum.org> - 0.10.4-3 |
---|
| 165 | - Rebuild with new gobject-introspection |
---|
| 166 | |
---|
| 167 | * Thu Jul 1 2010 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.10.4-2 |
---|
| 168 | - Rebuild for "Incompatible version 1.0 (supported: 1.1)" |
---|
| 169 | for introspection file |
---|
| 170 | |
---|
| 171 | * Fri Mar 19 2010 Brian Pepple <bpepple@fedoraproject.org> - 0.10.4-1 |
---|
| 172 | - Update to 0.10.4. |
---|
| 173 | |
---|
| 174 | * Wed Jan 27 2010 Peter Robinson <pbrobinson@gmail.com> - 0.10.0-3 |
---|
| 175 | - Require the gobject-introspection-devel package, not the library |
---|
| 176 | |
---|
| 177 | * Wed Jan 27 2010 Peter Robinson <pbrobinson@gmail.com> - 0.10.0-2 |
---|
| 178 | - Enable gobject-introspection support |
---|
| 179 | |
---|
| 180 | * Tue Dec 29 2009 Brian Pepple <bpepple@fedoraproject.org> - 0.10.0-1 |
---|
| 181 | - Update to 0.10.0. |
---|
| 182 | |
---|
| 183 | * Mon Nov 16 2009 Brian Pepple <bpepple@fedoraproject.org> - 0.8.2-1 |
---|
| 184 | - Update to 0.8.2. |
---|
| 185 | |
---|
| 186 | * Tue Sep 29 2009 Brian Pepple <bpepple@fedoraproject.org> - 0.8.0-1 |
---|
| 187 | - Update to 0.8.0. |
---|
| 188 | - Update source url. |
---|
| 189 | |
---|
| 190 | * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.2-4 |
---|
| 191 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
| 192 | |
---|
| 193 | * Thu Feb 26 2009 Brian Pepple <bpepple@fedoraproject.org> - 0.6.2-3 |
---|
| 194 | - Disable tests for now. |
---|
| 195 | |
---|
| 196 | * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.2-2 |
---|
| 197 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
| 198 | |
---|
| 199 | * Sat May 31 2008 Brian Pepple <bpepple@fedoraproject.org> - 0.6.2-1 |
---|
| 200 | - Update to 0.6.2. |
---|
| 201 | - Enable tests. |
---|
| 202 | |
---|
| 203 | * Mon May 19 2008 Brian Pepple <bpepple@fedoraproject.org> - 0.6.0-1 |
---|
| 204 | - Update 0.6.0. |
---|
| 205 | - Disable tests for now. |
---|
| 206 | - Add requires on gtk-doc. |
---|
| 207 | |
---|
| 208 | * Sun Apr 20 2008 Brian Pepple <bpepple@fedoraproject.org> - 0.4.0-1 |
---|
| 209 | - Initial Fedora spec. |
---|
| 210 | |
---|