debian/0000755000000000000000000000000012156161227007171 5ustar debian/changelog0000644000000000000000000000556012156161227011051 0ustar yajl (2.0.4-4) unstable; urgency=low * Fix cmake configuration to install the lib in the right path (Closes: #712082) * Update debian/watch file. Thanks to Bart Martens. -- John Stamp Wed, 12 Jun 2013 14:05:18 -0700 yajl (2.0.4-3) unstable; urgency=low * Add missing Multi-Arch field for libyajl2 and libyajl2-dbg (Closes: #697380) * Use versioned copyright format uri in debian/copyright * Bump debhelper compat to version 9 * Rewrite debian/rules using tiny dh style. * Bump Standards-Version to 3.9.4. No further changes needed. * Support for cross-compilation (Closes: #702357) - Adapt Ian Campbell's patch to use CMakeCross toolchain file when cross compiling. -- John Stamp Tue, 04 Jun 2013 09:51:24 -0700 yajl (2.0.4-2) unstable; urgency=low * Upload to unstable. -- John Stamp Thu, 26 Jan 2012 17:47:08 -0800 yajl (2.0.4-1) experimental; urgency=low * New upstream (Closes: #634176) - Relicenced under ISC license terms * Bump package name with soname change * Update symbols file * Update man page for json_reformat -- John Stamp Wed, 21 Dec 2011 17:07:23 -0800 yajl (1.0.12-2) unstable; urgency=low * Fix missing backslash that prevented verbose makefiles (Closes: #647445) * Use the default build flags from dpkg-buildflags * Revert debian/compat to 7 * Update upstream's copyright date in debian/copyright -- John Stamp Thu, 03 Nov 2011 19:22:20 -0700 yajl (1.0.12-1) unstable; urgency=low * New upstream * Remove non-pic-static-lib.patch. Applied upstream. * Add misc:Depends to dev and doc packages * Use source format 3.0 (quilt) * Bump Standards-Version to 3.9.2. No changes needed. * Add libyajl1.symbols file * Transition to multiarch -- John Stamp Tue, 19 Jul 2011 10:55:54 -0700 yajl (1.0.8-1) unstable; urgency=low * New upstream * Bump shlibs -- John Stamp Sat, 26 Dec 2009 16:40:49 -0800 yajl (1.0.6+git20090925-1) unstable; urgency=low * New upstream * Drop README.Debian: upstream removed non-free files * Drop relaxed-integer-tests.patch (merged upstream) * Update manpages -- John Stamp Tue, 06 Oct 2009 11:11:58 -0700 yajl (1.0.5.dfsg-2) unstable; urgency=low * Bump Standards-Version to 3.8.3. No changes needed. * Add README.source * Dynamically link the tools to the lib (Closes: #544721) * Make extended description more detailed and remove unnecessary Section field. -- John Stamp Tue, 08 Sep 2009 11:59:46 -0700 yajl (1.0.5.dfsg-1) unstable; urgency=low * Initial release (Closes: #537199) -- John Stamp Wed, 05 Aug 2009 15:12:56 -0700 debian/json_reformat.10000644000000000000000000000156312102366230012120 0ustar .TH JSON_REFORMAT 1 "Dec 2011" "json_reformat" .SH NAME json_reformat \- A simple json reformatting tool .SH SYNOPSIS .B json_reformat [\fIoptions\fP] < \fIinput-file\fP [> \fIoutput-file\fP] .SH DESCRIPTION json_reformat reads json data from standard input and sends formatted data to standard output. It attempts to format for readability by default and returns success (zero result) if the input file is valid, and failure (nonzero result) otherwise. .SH OPTIONS .TP \fB\-m\fR minimize json rather than beautify .TP \fB\-u\fR allow invalid UTF8 inside strings during parsing \fB\-e\fR escape any forward slashes (for embedding in HTML) .SH AUTHORS Lloyd Hilaiel .PP This manual page was written by John Stamp . Permission is granted to redistribute, use, and/or modify this document under the same terms as json_reformat itself. debian/rules0000755000000000000000000000255712156156316010265 0ustar #!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 yajl_major = $(shell grep -E 'SET.*YAJL_MAJOR[[:space:]]+[0-9]+' CMakeLists.txt | sed 's/.*YAJL_MAJOR\s\+\([0-9]\+\).*/\1/' ) yajl_minor = $(shell grep -E 'SET.*YAJL_MINOR[[:space:]]+[0-9]+' CMakeLists.txt | sed 's/.*YAJL_MINOR\s\+\([0-9]\+\).*/\1/' ) yajl_micro = $(shell grep -E 'SET.*YAJL_MICRO[[:space:]]+[0-9]+' CMakeLists.txt | sed 's/.*YAJL_MICRO\s\+\([0-9]\+\).*/\1/' ) yajl_dir = yajl-$(yajl_major).$(yajl_minor).$(yajl_micro) host_gnu_type = $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE)) CROSS_CONFIG := -DCMAKE_TOOLCHAIN_FILE="/etc/dpkg-cross/cmake/CMakeCross.txt" endif %: dh $@ --parallel override_dh_auto_configure: dh_auto_configure -v -Scmake -- -DMULTIARCH_TUPLE=$(DEB_HOST_MULTIARCH) $(DEB_CMAKE_CUSTOM_FLAGS) $(CROSS_CONFIG) override_dh_auto_build-indep: $(MAKE) -C obj-$(host_gnu_type) doc # We don't want to test the lib if we're just building docs override_dh_auto_test-indep: ; override_dh_auto_install-indep: cp -pR obj-$(host_gnu_type)/$(yajl_dir)/share/doc/$(yajl_dir)/* debian/libyajl-doc/usr/share/doc/libyajl-doc/html override_dh_installdocs: dh_installdocs -A README TODO override_dh_compress: dh_compress -Xexamples override_dh_strip: dh_strip --dbg-package=libyajl2-dbg -Nyajl-tools dh_strip -pyajl-tools debian/yajl-tools.install0000644000000000000000000000001212102366230012637 0ustar usr/bin/* debian/watch0000644000000000000000000000043712156160630010223 0ustar version=3 opts=uversionmangle=s/(\d)[_\.\-\+]?((RC|rc|pre|dev|beta|alpha|b|a)\d*)$/$1~$2/,dversionmangle=s/\+(debian|dfsg|ds|deb)\d*$// \ https://github.com/lloyd/yajl/tags .*/(\d.*)\.(?:tgz|tbz2|txz|tar\.(?:gz|bz2|xz)) # Bart Martens Sat, 22 Dec 2012 15:51:04 +0000 debian/libyajl2.symbols0000644000000000000000000000145612102366230012311 0ustar libyajl.so.2 libyajl2 #MINVER# yajl_alloc@Base 2.0.4 yajl_complete_parse@Base 2.0.4 yajl_config@Base 2.0.4 yajl_free@Base 2.0.4 yajl_free_error@Base 2.0.4 yajl_gen_alloc@Base 2.0.4 yajl_gen_array_close@Base 2.0.4 yajl_gen_array_open@Base 2.0.4 yajl_gen_bool@Base 2.0.4 yajl_gen_clear@Base 2.0.4 yajl_gen_config@Base 2.0.4 yajl_gen_double@Base 2.0.4 yajl_gen_free@Base 2.0.4 yajl_gen_get_buf@Base 2.0.4 yajl_gen_integer@Base 2.0.4 yajl_gen_map_close@Base 2.0.4 yajl_gen_map_open@Base 2.0.4 yajl_gen_null@Base 2.0.4 yajl_gen_number@Base 2.0.4 yajl_gen_string@Base 2.0.4 yajl_get_bytes_consumed@Base 2.0.4 yajl_get_error@Base 2.0.4 yajl_parse@Base 2.0.4 yajl_status_to_string@Base 2.0.4 yajl_tree_free@Base 2.0.4 yajl_tree_get@Base 2.0.4 yajl_tree_parse@Base 2.0.4 yajl_version@Base 2.0.4 debian/json_verify.10000644000000000000000000000125412102366230011602 0ustar .TH JSON_VERIFY 1 "Dec 2011" "json_verify" .SH NAME json_verify \- A simple json verification tool. .SH SYNOPSIS .B json_verify [\fIoptions\fP] < \fIinput-file\fP .SH DESCRIPTION json_verify reads json data from standard input. It returns success (zero result) if the input file is valid, and failure (nonzero result) otherwise. .SH OPTIONS .TP \fB\-q\fR quiet mode .TP \fB\-c\fR allow comments .TP \fB\-u\fR allow invalid utf8 inside strings .SH AUTHORS Lloyd Hilaiel .PP This manual page was written by John Stamp . Permission is granted to redistribute, use, and/or modify this document under the same terms as json_verify itself. debian/libyajl-doc.install0000644000000000000000000000016712102366230012746 0ustar reformatter/json_reformat.c usr/share/doc/libyajl-doc/examples verify/json_verify.c usr/share/doc/libyajl-doc/examples debian/yajl-tools.manpages0000644000000000000000000000005412102366230012772 0ustar debian/json_reformat.1 debian/json_verify.1 debian/patches/0000755000000000000000000000000012153253677010630 5ustar debian/patches/series0000644000000000000000000000005512153143342012030 0ustar dynamically-link-tools.patch multiarch.patch debian/patches/dynamically-link-tools.patch0000644000000000000000000000132212102366230016226 0ustar Upstream statically links json_verify and json_reformat to libyajl. This lets us link the tools to the shared lib. (Closes #544721) --- a/reformatter/CMakeLists.txt +++ b/reformatter/CMakeLists.txt @@ -26,7 +26,7 @@ ADD_EXECUTABLE(json_reformat ${SRCS}) -TARGET_LINK_LIBRARIES(json_reformat yajl_s) +TARGET_LINK_LIBRARIES(json_reformat yajl) # copy the binary into the output directory GET_TARGET_PROPERTY(binPath json_reformat LOCATION) --- a/verify/CMakeLists.txt +++ b/verify/CMakeLists.txt @@ -26,7 +26,7 @@ ADD_EXECUTABLE(json_verify ${SRCS}) -TARGET_LINK_LIBRARIES(json_verify yajl_s) +TARGET_LINK_LIBRARIES(json_verify yajl) # copy in the binary GET_TARGET_PROPERTY(binPath json_verify LOCATION) debian/patches/multiarch.patch0000644000000000000000000000210112102366230013613 0ustar Support installation of multiarch binaries. Define MULTIARCH_TUPLE at config time. --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -78,9 +78,9 @@ IF(NOT WIN32) # at build time you may specify the cmake variable LIB_SUFFIX to handle # 64-bit systems which use 'lib64' - INSTALL(TARGETS yajl LIBRARY DESTINATION lib${LIB_SUFFIX}) - INSTALL(TARGETS yajl_s ARCHIVE DESTINATION lib${LIB_SUFFIX}) + INSTALL(TARGETS yajl LIBRARY DESTINATION lib/${MULTIARCH_TUPLE}) + INSTALL(TARGETS yajl_s ARCHIVE DESTINATION lib/${MULTIARCH_TUPLE}) INSTALL(FILES ${PUB_HDRS} DESTINATION include/yajl) INSTALL(FILES ${incDir}/yajl_version.h DESTINATION include/yajl) - INSTALL(FILES ${shareDir}/yajl.pc DESTINATION share/pkgconfig) + INSTALL(FILES ${shareDir}/yajl.pc DESTINATION lib/${MULTIARCH_TUPLE}/pkgconfig) ENDIF() --- a/src/yajl.pc.cmake +++ b/src/yajl.pc.cmake @@ -1,5 +1,5 @@ prefix=${CMAKE_INSTALL_PREFIX} -libdir=${dollar}{prefix}/lib${LIB_SUFFIX} +libdir=${dollar}{prefix}/lib/${MULTIARCH_TUPLE} includedir=${dollar}{prefix}/include/yajl Name: Yet Another JSON Library debian/control0000644000000000000000000000426312156152572010604 0ustar Source: yajl Section: libs Priority: extra Maintainer: John Stamp Build-Depends: debhelper (>= 9), cmake, doxygen Standards-Version: 3.9.4 Homepage: http://lloyd.github.com/yajl/ Vcs-Browser: http://github.com/jstamp/yajl Vcs-Git: git://github.com/jstamp/yajl.git Package: libyajl2 Architecture: any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${shlibs:Depends}, ${misc:Depends} Description: Yet Another JSON Library A small, fast library for parsing JavaScript Object Notation (JSON). It supports incremental parsing from a stream and leaves data representation to higher level code. Package: libyajl-dev Section: libdevel Architecture: any Depends: libyajl2 (= ${binary:Version}), ${misc:Depends} Description: Yet Another JSON Library - development files A small, fast library for parsing JavaScript Object Notation (JSON). It supports incremental parsing from a stream and leaves data representation to higher level code. . This package contains the header files and static libraries needed for compiling software that uses the yajl library. Package: libyajl-doc Architecture: all Section: doc Depends: ${misc:Depends} Description: Yet Another JSON Library - library documentation A small, fast library for parsing JavaScript Object Notation (JSON). It supports incremental parsing from a stream and leaves data representation to higher level code. . This package contains the API documentation. Package: libyajl2-dbg Architecture: any Multi-Arch: same Section: debug Depends: libyajl2 (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends} Description: Yet Another JSON Library - debugging symbols A small, fast library for parsing JavaScript Object Notation (JSON). It supports incremental parsing from a stream and leaves data representation to higher level code. . This package contains the debugging symbols for libyajl2. Package: yajl-tools Architecture: any Section: utils Depends: ${shlibs:Depends}, ${misc:Depends} Description: Yet Another JSON Library - tools A small collection of tools that use the yajl library. . Current tools are: json_reformat - beautifies or minimizes format of JSON data json_verify - validates JSON data debian/libyajl-dev.install0000644000000000000000000000011512102366230012750 0ustar usr/include/* usr/lib/*/lib*.so usr/lib/*/lib*.a usr/lib/*/pkgconfig/yajl.pc debian/libyajl2.install0000644000000000000000000000002412102366230012255 0ustar usr/lib/*/lib*.so.* debian/libyajl-doc.doc-base0000644000000000000000000000044712102366230012756 0ustar Document: libyajl-doc Title: YAJL Library Reference Manual Author: Lloyd Hilaiel Abstract: This manual describes the API for Yet Another JSON Library (libyajl2). Section: Programming/C Format: HTML Index: /usr/share/doc/libyajl-doc/html/index.html Files: /usr/share/doc/libyajl-doc/html/*.html debian/README.source0000644000000000000000000000047312102366230011344 0ustar This package uses quilt to manage all modifications to the upstream source. Changes are stored in the source package as diffs in debian/patches and applied during the build. Please see: /usr/share/doc/quilt/README.source for more information on how to apply the patches, modify patches, or remove a patch. debian/libyajl-doc.dirs0000644000000000000000000000010212102366230012226 0ustar usr/share/doc/libyajl-doc/html usr/share/doc/libyajl-doc/examples debian/source/0000755000000000000000000000000012102656400010462 5ustar debian/source/format0000644000000000000000000000001412102366230011667 0ustar 3.0 (quilt) debian/compat0000644000000000000000000000000212153151561010364 0ustar 9 debian/copyright0000644000000000000000000000242612153150637011130 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: YAJL (Yet Another JSON Library) Upstream-Contact: Lloyd Hilaiel Source: http://lloyd.github.com/yajl/ Files: * Copyright: 2007-2011 Lloyd Hilaiel License: ISC Files: example/parse_config.c Copyright: 2011 Lloyd Hilaiel License: ISC Files: src/yajl_tree.c src/api/yajl_tree.h Copyright: 2010-2011 Florian Forster License: ISC Files: debian/* Copyright: 2011 John Stamp License: ISC License: ISC Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. . THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.