|
|
a26d68 |
Name: yajl
|
|
|
a26d68 |
Version: 2.0.4
|
|
|
698e3a |
Release: 4%{?dist}
|
|
|
a26d68 |
Summary: Yet Another JSON Library (YAJL)
|
|
|
a26d68 |
|
|
|
a26d68 |
Group: Development/Libraries
|
|
|
a26d68 |
License: ISC
|
|
|
a26d68 |
URL: http://lloyd.github.com/yajl/
|
|
|
a26d68 |
|
|
|
a26d68 |
#
|
|
|
a26d68 |
# NB, upstream does not provide pre-built tar.gz downloads. Instead
|
|
|
a26d68 |
# they make you use the 'on the fly' generated tar.gz from GITHub's
|
|
|
a26d68 |
# web interface
|
|
|
a26d68 |
#
|
|
|
a26d68 |
# The Source0 for any version is obtained by a URL
|
|
|
a26d68 |
#
|
|
|
a26d68 |
# http://github.com/lloyd/yajl/tarball/1.0.7
|
|
|
a26d68 |
#
|
|
|
a26d68 |
# Which causes a download of a archive named after
|
|
|
a26d68 |
# the GIT hash corresponding to the version tag
|
|
|
a26d68 |
#
|
|
|
a26d68 |
# eg lloyd-yajl-45a1bdb.tar.gz
|
|
|
a26d68 |
#
|
|
|
a26d68 |
# NB even though the tar.gz is generated on the fly by GITHub it
|
|
|
a26d68 |
# will always have identical md5sum
|
|
|
a26d68 |
#
|
|
|
a26d68 |
# So for new versions, update 'githash' to match the hash of the
|
|
|
a26d68 |
# GIT tag associated with updated 'Version:' field just above
|
|
|
a26d68 |
%global githash fee1ebe
|
|
|
a26d68 |
Source0: lloyd-%{name}-%{version}-0-g%{githash}.tar.gz
|
|
|
a26d68 |
Patch1: lloyd-%{name}-%{version}-pkgconfig-location.patch
|
|
|
a26d68 |
Patch2: lloyd-%{name}-%{version}-pkgconfig-includedir.patch
|
|
|
a26d68 |
|
|
|
a26d68 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
a26d68 |
BuildRequires: cmake
|
|
|
a26d68 |
|
|
|
a26d68 |
%package devel
|
|
|
a26d68 |
Summary: Libraries, includes, etc to develop with YAJL
|
|
|
a26d68 |
Requires: %{name} = %{version}-%{release}
|
|
|
a26d68 |
|
|
|
a26d68 |
%description
|
|
|
a26d68 |
Yet Another JSON Library. YAJL is a small event-driven
|
|
|
a26d68 |
(SAX-style) JSON parser written in ANSI C, and a small
|
|
|
a26d68 |
validating JSON generator.
|
|
|
a26d68 |
|
|
|
a26d68 |
%description devel
|
|
|
a26d68 |
Yet Another JSON Library. YAJL is a small event-driven
|
|
|
a26d68 |
(SAX-style) JSON parser written in ANSI C, and a small
|
|
|
a26d68 |
validating JSON generator.
|
|
|
a26d68 |
|
|
|
a26d68 |
This sub-package provides the libraries and includes
|
|
|
a26d68 |
necessary for developing against the YAJL library
|
|
|
a26d68 |
|
|
|
a26d68 |
%prep
|
|
|
a26d68 |
%setup -q -n lloyd-%{name}-%{githash}
|
|
|
a26d68 |
%patch1 -p1
|
|
|
a26d68 |
%patch2 -p1
|
|
|
a26d68 |
|
|
|
a26d68 |
%build
|
|
|
a26d68 |
# NB, we are not using upstream's 'configure'/'make'
|
|
|
a26d68 |
# wrapper, instead we use cmake directly to better
|
|
|
a26d68 |
# align with Fedora standards
|
|
|
a26d68 |
mkdir build
|
|
|
a26d68 |
cd build
|
|
|
a26d68 |
%cmake ..
|
|
|
a26d68 |
make VERBOSE=1 %{?_smp_mflags}
|
|
|
a26d68 |
|
|
|
a26d68 |
|
|
|
a26d68 |
%install
|
|
|
a26d68 |
rm -rf $RPM_BUILD_ROOT
|
|
|
a26d68 |
cd build
|
|
|
a26d68 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
a26d68 |
|
|
|
a26d68 |
|
|
|
a26d68 |
# No static libraries
|
|
|
a26d68 |
rm -f $RPM_BUILD_ROOT%{_libdir}/libyajl_s.a
|
|
|
a26d68 |
|
|
|
a26d68 |
|
|
|
a26d68 |
%check
|
|
|
a26d68 |
cd test
|
|
|
a26d68 |
./run_tests.sh
|
|
|
a26d68 |
|
|
|
a26d68 |
%clean
|
|
|
a26d68 |
rm -rf $RPM_BUILD_ROOT
|
|
|
a26d68 |
|
|
|
a26d68 |
%post -p /sbin/ldconfig
|
|
|
a26d68 |
|
|
|
a26d68 |
%postun -p /sbin/ldconfig
|
|
|
a26d68 |
|
|
|
a26d68 |
%files
|
|
|
a26d68 |
%defattr(-,root,root,-)
|
|
|
a26d68 |
%doc COPYING ChangeLog README TODO
|
|
|
a26d68 |
%{_bindir}/json_reformat
|
|
|
a26d68 |
%{_bindir}/json_verify
|
|
|
a26d68 |
%{_libdir}/libyajl.so.2
|
|
|
a26d68 |
%{_libdir}/libyajl.so.2.*
|
|
|
a26d68 |
|
|
|
a26d68 |
%files devel
|
|
|
a26d68 |
%defattr(-,root,root,-)
|
|
|
a26d68 |
%doc COPYING
|
|
|
a26d68 |
%dir %{_includedir}/yajl
|
|
|
a26d68 |
%{_includedir}/yajl/yajl_common.h
|
|
|
a26d68 |
%{_includedir}/yajl/yajl_gen.h
|
|
|
a26d68 |
%{_includedir}/yajl/yajl_parse.h
|
|
|
a26d68 |
%{_includedir}/yajl/yajl_tree.h
|
|
|
a26d68 |
%{_includedir}/yajl/yajl_version.h
|
|
|
a26d68 |
%{_libdir}/libyajl.so
|
|
|
a26d68 |
%{_libdir}/pkgconfig/yajl.pc
|
|
|
a26d68 |
|
|
|
a26d68 |
|
|
|
a26d68 |
%changelog
|
|
|
698e3a |
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 2.0.4-4
|
|
|
698e3a |
- Mass rebuild 2014-01-24
|
|
|
698e3a |
|
|
|
698e3a |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 2.0.4-3
|
|
|
698e3a |
- Mass rebuild 2013-12-27
|
|
|
698e3a |
|
|
|
a26d68 |
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.4-2
|
|
|
a26d68 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
a26d68 |
|
|
|
a26d68 |
* Mon Aug 6 2012 Daniel P. Berrange <berrange@redhat.com> - 2.0.4-1
|
|
|
a26d68 |
- Update to 2.0.4 release (rhbz #845777)
|
|
|
a26d68 |
- Fix License tag to reflect change in 2.0.0 series from BSD to ISC
|
|
|
a26d68 |
|
|
|
a26d68 |
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.1-3
|
|
|
a26d68 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
a26d68 |
|
|
|
a26d68 |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.1-2
|
|
|
a26d68 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
a26d68 |
|
|
|
a26d68 |
* Thu Nov 10 2011 Daniel P. Berrange <berrange@redhat.com> - 2.0.1-1
|
|
|
a26d68 |
- Update to 2.0.1 release
|
|
|
a26d68 |
|
|
|
a26d68 |
* Tue May 3 2011 Daniel P. Berrange <berrange@redhat.com> - 1.0.12-1
|
|
|
a26d68 |
- Update to 1.0.12 release
|
|
|
a26d68 |
|
|
|
a26d68 |
* Fri Dec 17 2010 Daniel P. Berrange <berrange@redhat.com> - 1.0.11-1
|
|
|
a26d68 |
- Update to 1.0.11 release
|
|
|
a26d68 |
|
|
|
a26d68 |
* Mon Jan 11 2010 Daniel P. Berrange <berrange@redhat.com> - 1.0.7-3
|
|
|
a26d68 |
- Fix ignoring of cflags (rhbz #547500)
|
|
|
a26d68 |
|
|
|
a26d68 |
* Tue Dec 8 2009 Daniel P. Berrange <berrange@redhat.com> - 1.0.7-2
|
|
|
a26d68 |
- Change use of 'define' to 'global'
|
|
|
a26d68 |
|
|
|
a26d68 |
* Mon Dec 7 2009 Daniel P. Berrange <berrange@redhat.com> - 1.0.7-1
|
|
|
a26d68 |
- Initial Fedora package
|