1 | Name: yajl |
---|
2 | Summary: Yet Another JSON Library (YAJL) |
---|
3 | Version: 2.1.0 |
---|
4 | Release: 1%{?_dist_release} |
---|
5 | Group: System Environment/Libraries |
---|
6 | |
---|
7 | Vendor: Project Vine |
---|
8 | Distribution: Vine Linux |
---|
9 | |
---|
10 | License: ISC |
---|
11 | URL: http://lloyd.github.com/yajl/ |
---|
12 | |
---|
13 | # |
---|
14 | # NB, upstream does not provide pre-built tar.gz downloads. Instead |
---|
15 | # they make you use the 'on the fly' generated tar.gz from GITHub's |
---|
16 | # web interface |
---|
17 | # |
---|
18 | # The Source0 for any version is obtained by a URL |
---|
19 | # |
---|
20 | # https://github.com/lloyd/yajl/releases/tag/2.1.0 |
---|
21 | # |
---|
22 | Source0: %{name}-%{version}.tar.gz |
---|
23 | Patch1: %{name}-%{version}-pkgconfig-location.patch |
---|
24 | Patch2: %{name}-%{version}-pkgconfig-includedir.patch |
---|
25 | Patch3: %{name}-%{version}-test-location.patch |
---|
26 | Patch4: %{name}-%{version}-dynlink-binaries.patch |
---|
27 | |
---|
28 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
29 | BuildRequires: cmake |
---|
30 | |
---|
31 | %description |
---|
32 | Yet Another JSON Library. YAJL is a small event-driven |
---|
33 | (SAX-style) JSON parser written in ANSI C, and a small |
---|
34 | validating JSON generator. |
---|
35 | |
---|
36 | %package devel |
---|
37 | Summary: Libraries, includes, etc to develop with YAJL |
---|
38 | Group: Development/Libraries |
---|
39 | Requires: %{name} = %{version}-%{release} |
---|
40 | |
---|
41 | %description devel |
---|
42 | Yet Another JSON Library. YAJL is a small event-driven |
---|
43 | (SAX-style) JSON parser written in ANSI C, and a small |
---|
44 | validating JSON generator. |
---|
45 | |
---|
46 | This sub-package provides the libraries and includes |
---|
47 | necessary for developing against the YAJL library |
---|
48 | |
---|
49 | %prep |
---|
50 | %setup -q |
---|
51 | %patch1 -p1 |
---|
52 | %patch2 -p1 |
---|
53 | %patch3 -p1 |
---|
54 | %patch4 -p1 |
---|
55 | |
---|
56 | %build |
---|
57 | # NB, we are not using upstream's 'configure'/'make' |
---|
58 | # wrapper, instead we use cmake directly to better |
---|
59 | # align with Fedora standards |
---|
60 | mkdir build |
---|
61 | cd build |
---|
62 | %cmake .. |
---|
63 | make VERBOSE=1 %{?_smp_mflags} |
---|
64 | |
---|
65 | |
---|
66 | %install |
---|
67 | rm -rf %{buildroot} |
---|
68 | cd build |
---|
69 | make install DESTDIR=%{buildroot} |
---|
70 | |
---|
71 | |
---|
72 | # No static libraries |
---|
73 | rm -f %{buildroot}%{_libdir}/libyajl_s.a |
---|
74 | |
---|
75 | |
---|
76 | %check |
---|
77 | cd test |
---|
78 | (cd parsing && ./run_tests.sh) |
---|
79 | (cd api && ./run_tests.sh) |
---|
80 | |
---|
81 | %clean |
---|
82 | rm -rf %{buildroot} |
---|
83 | |
---|
84 | %post -p /sbin/ldconfig |
---|
85 | |
---|
86 | %postun -p /sbin/ldconfig |
---|
87 | |
---|
88 | %files |
---|
89 | %defattr(-,root,root,-) |
---|
90 | %license COPYING |
---|
91 | %doc ChangeLog README TODO |
---|
92 | %{_bindir}/json_reformat |
---|
93 | %{_bindir}/json_verify |
---|
94 | %{_libdir}/libyajl.so.2 |
---|
95 | %{_libdir}/libyajl.so.2.* |
---|
96 | |
---|
97 | %files devel |
---|
98 | %defattr(-,root,root,-) |
---|
99 | %dir %{_includedir}/yajl |
---|
100 | %{_includedir}/yajl/yajl_common.h |
---|
101 | %{_includedir}/yajl/yajl_gen.h |
---|
102 | %{_includedir}/yajl/yajl_parse.h |
---|
103 | %{_includedir}/yajl/yajl_tree.h |
---|
104 | %{_includedir}/yajl/yajl_version.h |
---|
105 | %{_libdir}/libyajl.so |
---|
106 | %{_libdir}/pkgconfig/yajl.pc |
---|
107 | |
---|
108 | |
---|
109 | %changelog |
---|
110 | * Wed Oct 23 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.1.0-1 |
---|
111 | - new upstream release. |
---|
112 | |
---|
113 | * Tue Oct 29 2013 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.0.4-1 |
---|
114 | - updated to 2.0.4 release |
---|
115 | - Patch1 and Patch2 imported from Fedora |
---|
116 | - fix License tag: s/BSD/ISC/ |
---|
117 | |
---|
118 | * Wed Mar 28 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.0.1-2 |
---|
119 | - rebuild |
---|
120 | |
---|
121 | * Sun Nov 20 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 2.0.1-1 |
---|
122 | - updated to 2.0.1 |
---|
123 | |
---|
124 | * Thu Aug 18 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.0.12-2 |
---|
125 | - Initial build for Vine Linux |
---|
126 | |
---|
127 | * Tue May 3 2011 Daniel P. Berrange <berrange@redhat.com> - 1.0.12-1 |
---|
128 | - Update to 1.0.12 release |
---|
129 | |
---|
130 | * Fri Dec 17 2010 Daniel P. Berrange <berrange@redhat.com> - 1.0.11-1 |
---|
131 | - Update to 1.0.11 release |
---|
132 | |
---|
133 | * Mon Jan 11 2010 Daniel P. Berrange <berrange@redhat.com> - 1.0.7-3 |
---|
134 | - Fix ignoring of cflags (rhbz #547500) |
---|
135 | |
---|
136 | * Tue Dec 8 2009 Daniel P. Berrange <berrange@redhat.com> - 1.0.7-2 |
---|
137 | - Change use of 'define' to 'global' |
---|
138 | |
---|
139 | * Mon Dec 7 2009 Daniel P. Berrange <berrange@redhat.com> - 1.0.7-1 |
---|
140 | - Initial Fedora package |
---|