[12284] | 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 |
---|
[4620] | 6 | |
---|
[12284] | 7 | Vendor: Project Vine |
---|
| 8 | Distribution: Vine Linux |
---|
[4620] | 9 | |
---|
[12284] | 10 | License: ISC |
---|
| 11 | URL: http://lloyd.github.com/yajl/ |
---|
| 12 | |
---|
[4620] | 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 | # |
---|
[12284] | 20 | # https://github.com/lloyd/yajl/releases/tag/2.1.0 |
---|
[4620] | 21 | # |
---|
[12284] | 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 |
---|
[4620] | 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 |
---|
[12284] | 50 | %setup -q |
---|
[7948] | 51 | %patch1 -p1 |
---|
| 52 | %patch2 -p1 |
---|
[12284] | 53 | %patch3 -p1 |
---|
| 54 | %patch4 -p1 |
---|
[4620] | 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 |
---|
[7948] | 67 | rm -rf %{buildroot} |
---|
[4620] | 68 | cd build |
---|
[7948] | 69 | make install DESTDIR=%{buildroot} |
---|
[4620] | 70 | |
---|
| 71 | |
---|
| 72 | # No static libraries |
---|
[7948] | 73 | rm -f %{buildroot}%{_libdir}/libyajl_s.a |
---|
[4620] | 74 | |
---|
| 75 | |
---|
| 76 | %check |
---|
| 77 | cd test |
---|
[12284] | 78 | (cd parsing && ./run_tests.sh) |
---|
| 79 | (cd api && ./run_tests.sh) |
---|
[4620] | 80 | |
---|
| 81 | %clean |
---|
[7948] | 82 | rm -rf %{buildroot} |
---|
[4620] | 83 | |
---|
| 84 | %post -p /sbin/ldconfig |
---|
| 85 | |
---|
| 86 | %postun -p /sbin/ldconfig |
---|
| 87 | |
---|
| 88 | %files |
---|
| 89 | %defattr(-,root,root,-) |
---|
[12284] | 90 | %license COPYING |
---|
| 91 | %doc ChangeLog README TODO |
---|
[4620] | 92 | %{_bindir}/json_reformat |
---|
| 93 | %{_bindir}/json_verify |
---|
[5162] | 94 | %{_libdir}/libyajl.so.2 |
---|
| 95 | %{_libdir}/libyajl.so.2.* |
---|
[4620] | 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 |
---|
[5162] | 103 | %{_includedir}/yajl/yajl_tree.h |
---|
[4620] | 104 | %{_includedir}/yajl/yajl_version.h |
---|
| 105 | %{_libdir}/libyajl.so |
---|
[7948] | 106 | %{_libdir}/pkgconfig/yajl.pc |
---|
[4620] | 107 | |
---|
| 108 | |
---|
| 109 | %changelog |
---|
[12284] | 110 | * Wed Oct 23 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.1.0-1 |
---|
| 111 | - new upstream release. |
---|
| 112 | |
---|
[7948] | 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 | |
---|
[6016] | 118 | * Wed Mar 28 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.0.1-2 |
---|
| 119 | - rebuild |
---|
| 120 | |
---|
[5162] | 121 | * Sun Nov 20 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 2.0.1-1 |
---|
| 122 | - updated to 2.0.1 |
---|
| 123 | |
---|
[4620] | 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 |
---|