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