1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
2 | |
---|
3 | %define glib_ver 2.48.0 |
---|
4 | |
---|
5 | Name: json-glib |
---|
6 | Summary: Library for JavaScript Object Notation format |
---|
7 | Version: 1.4.4 |
---|
8 | Release: 2%{?_dist_release} |
---|
9 | Group: System Environment/Libraries |
---|
10 | Vendor: Project Vine |
---|
11 | Distribution: Vine Linux |
---|
12 | |
---|
13 | License: LGPLv2+ |
---|
14 | URL: http://live.gnome.org/JsonGlib |
---|
15 | #VCS: git:git://git.gnome.org/json-glib |
---|
16 | %global shortver %(echo %{version} | cut -d . -f 1,2) |
---|
17 | Source0: https://download.gnome.org/sources/%{name}/%{shortver}/%{name}-%{version}.tar.xz |
---|
18 | |
---|
19 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
---|
20 | |
---|
21 | BuildRequires: meson |
---|
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 | |
---|
30 | %package devel |
---|
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 | |
---|
43 | # compat32 |
---|
44 | %package -n compat32-%{name} |
---|
45 | Summary: Library for JavaScript Object Notation format |
---|
46 | Group: System Environment/Libraries |
---|
47 | |
---|
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 | |
---|
53 | %prep |
---|
54 | %setup -q |
---|
55 | |
---|
56 | |
---|
57 | %build |
---|
58 | %meson |
---|
59 | %meson_build |
---|
60 | |
---|
61 | |
---|
62 | %install |
---|
63 | rm -rf %{buildroot} |
---|
64 | %meson_install |
---|
65 | |
---|
66 | rm -rf %{buildroot}%{_libexecdir}/installed-tests |
---|
67 | rm -rf %{buildroot}%{_datadir}/installed-tests |
---|
68 | |
---|
69 | %find_lang %{name}-1.0 |
---|
70 | |
---|
71 | %check |
---|
72 | # make check |
---|
73 | |
---|
74 | |
---|
75 | %clean |
---|
76 | rm -rf %{buildroot} |
---|
77 | |
---|
78 | |
---|
79 | %post -p /sbin/ldconfig |
---|
80 | |
---|
81 | %postun -p /sbin/ldconfig |
---|
82 | |
---|
83 | %post -n compat32-%{name} -p /sbin/ldconfig |
---|
84 | |
---|
85 | %postun -n compat32-%{name} -p /sbin/ldconfig |
---|
86 | |
---|
87 | %files -f %{name}-1.0.lang |
---|
88 | %defattr(-,root,root,-) |
---|
89 | %license COPYING |
---|
90 | %doc NEWS |
---|
91 | %{_bindir}/json-glib-format |
---|
92 | %{_bindir}/json-glib-validate |
---|
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/ |
---|
101 | #%{_datadir}/gtk-doc/html/%{name}/ |
---|
102 | %{_datadir}/gir-1.0/Json-1.0.gir |
---|
103 | |
---|
104 | %if %{build_compat32} |
---|
105 | %files -n compat32-%{name} |
---|
106 | %defattr(-,root,root,-) |
---|
107 | %{_libdir}/lib%{name}*.so.* |
---|
108 | %endif |
---|
109 | |
---|
110 | |
---|
111 | %changelog |
---|
112 | * Tue May 05 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.4.4-2 |
---|
113 | - rebuilt with current envirpnment. |
---|
114 | |
---|
115 | * Thu Jan 03 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.4.4-1 |
---|
116 | - new upstream release. |
---|
117 | |
---|
118 | * Thu Jul 14 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.2.0-1 |
---|
119 | - new upstream release |
---|
120 | |
---|
121 | * Sat Feb 13 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.0.4-2 |
---|
122 | - create compat32-json-glib subpackage |
---|
123 | |
---|
124 | * Sat Mar 28 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.0.4-1 |
---|
125 | - new upstream release |
---|
126 | |
---|
127 | * Sun Oct 26 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.0.2-1 |
---|
128 | - new upstream release |
---|
129 | |
---|
130 | * Sat Mar 29 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.0.0-1 |
---|
131 | - new upstream release |
---|
132 | |
---|
133 | * Tue Dec 31 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.16.2-2 |
---|
134 | - rebuild with VineSeed environment |
---|
135 | |
---|
136 | * Sat Oct 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.16.2-1 |
---|
137 | - new upstream release |
---|
138 | |
---|
139 | * Wed Apr 17 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.16.0-1 |
---|
140 | - new upstream release |
---|
141 | |
---|
142 | * Fri Sep 28 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.15.2-1 |
---|
143 | - new upstream release |
---|
144 | |
---|
145 | * Sun Apr 01 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.14.2-1 |
---|
146 | - update to 0.14.2 |
---|
147 | |
---|
148 | * Fri Sep 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.14.0-1 |
---|
149 | - new upstream release |
---|
150 | |
---|
151 | * Sun Aug 14 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.13.4-1 |
---|
152 | - new upstream release |
---|
153 | |
---|
154 | * Thu May 05 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.12.4-1 |
---|
155 | - new upstream release |
---|
156 | |
---|
157 | * Sun Jan 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.12.2-1 |
---|
158 | - new upstream release |
---|
159 | |
---|
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 | |
---|