debian/0000755000000000000000000000000012166735061007175 5ustar debian/rules0000755000000000000000000000067512054057302010254 0ustar #!/usr/bin/make -f # -*- gmakefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 export DH_OPTIONS %: dh $@ --with autoreconf override_dh_auto_configure: dh_auto_configure -- --with-tests override_dh_autoreconf: mkdir m4 dh_autoreconf override_dh_autoreconf_clean: dh_autoreconf_clean rm -rf m4 override_dh_auto_test: dh_auto_test ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) cd tests && ./test_all.sh endif debian/compat0000644000000000000000000000000211734772152010375 0ustar 9 debian/libqrencode-dev.install0000644000000000000000000000007011735003673013623 0ustar usr/include/*.h usr/lib/*/lib*.so usr/lib/*/pkgconfig/* debian/qrencode.install0000644000000000000000000000003211734774366012373 0ustar usr/bin/* usr/share/man/* debian/copyright0000644000000000000000000000435712054057363011137 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: qrencode Upstream-Contact: Kentaro Fukuchi Source: http://megaui.net/fukuchi/works/qrencode/index.en.html Files: * Copyright: (C) 2006-2011 Kentaro Fukuchi License: LGPL-2.1+ This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or any later version. . This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. . You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA . On Debian systems, the complete text of the GNU Lesser General Public License 2.1 can be found in `/usr/share/common-licenses/LGPL-2.1'. Files: rscode.[ch] Copyright: (C) 2002, 2003, 2004, 2006 Phil Karn, KA9Q (C) 2006-2011 Kentaro Fukuchi License: LGPL-2.1+ This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or any later version. . This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. . You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA . On Debian systems, the complete text of the GNU Lesser General Public License 2.1 can be found in `/usr/share/common-licenses/LGPL-2.1'. Files: debian/* Copyright: none License: public-domain The Debian packaging is done by NIIBE Yutaka and he put the work under public domain. debian/docs0000644000000000000000000000002111734772131010040 0ustar NEWS README TODO debian/libqrencode3.symbols0000644000000000000000000000673211736210760013165 0ustar libqrencode.so.3 libqrencode3 #MINVER# BitStream_append@Base 3.2.0 BitStream_appendBytes@Base 3.2.0 BitStream_appendNum@Base 3.2.0 BitStream_free@Base 3.2.0 BitStream_new@Base 3.2.0 BitStream_toByte@Base 3.2.0 FrameFiller_test@Base 3.2.0 FrameFiller_testMQR@Base 3.2.0 MMask_evaluateSymbol@Base 3.2.0 MMask_makeMask@Base 3.2.0 MMask_makeMaskedFrame@Base 3.2.0 MMask_mask@Base 3.2.0 MMask_writeFormatInformation@Base 3.2.0 QRcode_APIVersion@Base 3.3.0 QRcode_APIVersionString@Base 3.3.0 MQRraw_free@Base 3.2.0 MQRraw_getCode@Base 3.2.0 MQRraw_new@Base 3.2.0 MQRspec_clearCache@Base 3.2.0 MQRspec_getDataLength@Base 3.2.0 MQRspec_getDataLengthBit@Base 3.2.0 MQRspec_getECCLength@Base 3.2.0 MQRspec_getFormatInfo@Base 3.2.0 MQRspec_getWidth@Base 3.2.0 MQRspec_lengthIndicator@Base 3.2.0 MQRspec_maximumWords@Base 3.2.0 MQRspec_newFrame@Base 3.2.0 Mask_calcN1N3@Base 3.2.0 Mask_calcN2@Base 3.2.0 Mask_calcRunLength@Base 3.2.0 Mask_evaluateSymbol@Base 3.2.0 Mask_makeMask@Base 3.2.0 Mask_makeMaskedFrame@Base 3.2.0 Mask_mask@Base 3.2.0 Mask_writeFormatInformation@Base 3.2.0 QRcode_List_free@Base 3.2.0 QRcode_List_size@Base 3.2.0 QRcode_clearCache@Base 3.2.0 QRcode_encodeData@Base 3.2.0 QRcode_encodeDataMQR@Base 3.2.0 QRcode_encodeDataStructured@Base 3.2.0 QRcode_encodeInput@Base 3.2.0 QRcode_encodeInputStructured@Base 3.2.0 QRcode_encodeMask@Base 3.2.0 QRcode_encodeMaskMQR@Base 3.2.0 QRcode_encodeString8bit@Base 3.2.0 QRcode_encodeString8bitMQR@Base 3.2.0 QRcode_encodeString8bitStructured@Base 3.2.0 QRcode_encodeString@Base 3.2.0 QRcode_encodeStringMQR@Base 3.2.0 QRcode_encodeStringStructured@Base 3.2.0 QRcode_free@Base 3.2.0 QRcode_new@Base 3.2.0 QRinput_Struct_appendInput@Base 3.2.0 QRinput_Struct_free@Base 3.2.0 QRinput_Struct_insertStructuredAppendHeaders@Base 3.2.0 QRinput_Struct_new@Base 3.2.0 QRinput_Struct_setParity@Base 3.2.0 QRinput_anTable@Base 3.2.0 QRinput_append@Base 3.2.0 QRinput_appendECIheader@Base 3.2.0 QRinput_check@Base 3.2.0 QRinput_dup@Base 3.2.0 QRinput_estimateBitStreamSize@Base 3.2.0 QRinput_estimateBitsMode8@Base 3.2.0 QRinput_estimateBitsModeAn@Base 3.2.0 QRinput_estimateBitsModeECI@Base 3.2.0 QRinput_estimateBitsModeKanji@Base 3.2.0 QRinput_estimateBitsModeNum@Base 3.2.0 QRinput_free@Base 3.2.0 QRinput_getBitStream@Base 3.2.0 QRinput_getByteStream@Base 3.2.0 QRinput_getErrorCorrectionLevel@Base 3.2.0 QRinput_getVersion@Base 3.2.0 QRinput_insertStructuredAppendHeader@Base 3.2.0 QRinput_isSplittableMode@Base 3.2.0 QRinput_lengthOfCode@Base 3.2.0 QRinput_mergeBitStream@Base 3.2.0 QRinput_new2@Base 3.2.0 QRinput_new@Base 3.2.0 QRinput_newMQR@Base 3.2.0 QRinput_setErrorCorrectionLevel@Base 3.2.0 QRinput_setFNC1First@Base 3.2.0 QRinput_setFNC1Second@Base 3.2.0 QRinput_setVersion@Base 3.2.0 QRinput_setVersionAndErrorCorrectionLevel@Base 3.2.0 QRinput_splitEntry@Base 3.2.0 QRinput_splitQRinputToStruct@Base 3.2.0 QRraw_free@Base 3.2.0 QRraw_getCode@Base 3.2.0 QRraw_new@Base 3.2.0 QRspec_clearCache@Base 3.2.0 QRspec_getDataLength@Base 3.2.0 QRspec_getECCLength@Base 3.2.0 QRspec_getEccSpec@Base 3.2.0 QRspec_getFormatInfo@Base 3.2.0 QRspec_getMinimumVersion@Base 3.2.0 QRspec_getRemainder@Base 3.2.0 QRspec_getVersionPattern@Base 3.2.0 QRspec_getWidth@Base 3.2.0 QRspec_lengthIndicator@Base 3.2.0 QRspec_maximumWords@Base 3.2.0 QRspec_newFrame@Base 3.2.0 Split_splitStringToQRinput@Base 3.2.0 encode_rs_char@Base 3.2.0 free_rs_cache@Base 3.2.0 free_rs_char@Base 3.2.0 init_rs@Base 3.2.0 debian/source/0000755000000000000000000000000011735211564010473 5ustar debian/source/format0000644000000000000000000000001411735211564011701 0ustar 3.0 (quilt) debian/control0000644000000000000000000000336712166734540010612 0ustar Source: qrencode Priority: optional Maintainer: NIIBE Yutaka Build-Depends: debhelper (>= 9), pkg-config, autotools-dev, libpng-dev, libsdl-dev, dh-autoreconf Standards-Version: 3.9.4 Section: libs Homepage: http://megaui.net/fukuchi/works/qrencode/index.en.html Package: qrencode Section: utils Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: QR Code encoder into PNG image Qrencode is a utility software using libqrencode to encode string data in a QR Code and save as a PNG or an EPS image. Package: libqrencode3 Multi-Arch: same Architecture: any Pre-Depends: ${misc:Pre-Depends} Depends: ${shlibs:Depends}, ${misc:Depends} Description: QR Code encoding library Libqrencode is a library for encoding data in a QR Code symbol, a kind of 2D symbology that can be scanned by handy terminals such as a mobile phone with CCD. The capacity of QR Code is up to 7000 digits or 4000 characters, and has high robustness. . Libqrencode supports QR Code model 2, described in JIS (Japanese Industrial Standards) X0510:2004 or ISO/IEC 18004. . This package contains runtime libraries of libqrencode. Package: libqrencode-dev Section: libdevel Architecture: any Depends: libqrencode3 (= ${binary:Version}), ${misc:Depends} Description: QR Code encoding library -- development Libqrencode is a library for encoding data in a QR Code symbol, a kind of 2D symbology that can be scanned by handy terminals such as a mobile phone with CCD. The capacity of QR Code is up to 7000 digits or 4000 characters, and has high robustness. . Libqrencode supports QR Code model 2, described in JIS (Japanese Industrial Standards) X0510:2004 or ISO/IEC 18004. . This package contains development files (a header, pkg-config settings, etc.) debian/patches/0000755000000000000000000000000012054057143010616 5ustar debian/patches/03_libpthread_handling_fix0000644000000000000000000000324411736214725015705 0ustar Description: Fix handling of libpthread Author: NIIBE Yutaka Index: qrencode-3.3.0/configure.ac =================================================================== --- qrencode-3.3.0.orig/configure.ac 2012-04-02 02:36:10.318718543 +0000 +++ qrencode-3.3.0/configure.ac 2012-04-02 02:37:07.822718976 +0000 @@ -42,7 +42,7 @@ [], [enable_thread_safety=yes]) if test x$enable_thread_safety = xyes; then - AC_CHECK_LIB([pthread], [pthread_mutex_init]) + AC_CHECK_LIB([pthread], [pthread_mutex_init], [AC_SUBST([LIBPTHREAD], [-lpthread])]) fi AM_CONDITIONAL([HAVE_LIBPTHREAD], [test "x$ac_cv_lib_pthread_pthread_mutex_init" = "xyes" ]) Index: qrencode-3.3.0/libqrencode.pc.in =================================================================== --- qrencode-3.3.0.orig/libqrencode.pc.in 2012-04-02 02:36:10.318718543 +0000 +++ qrencode-3.3.0/libqrencode.pc.in 2012-04-02 02:37:07.822718976 +0000 @@ -6,5 +6,6 @@ Name: libqrencode Description: A QR Code encoding library Version: @VERSION@ -Libs: -L${libdir} -lqrencode @LIBS@ +Libs: -L${libdir} -lqrencode +Libs.private: @LIBPTHREAD@ Cflags: -I${includedir} Index: qrencode-3.3.0/tests/Makefile.am =================================================================== --- qrencode-3.3.0.orig/tests/Makefile.am 2012-01-23 06:18:00.000000000 +0000 +++ qrencode-3.3.0/tests/Makefile.am 2012-04-02 02:37:07.822718976 +0000 @@ -55,7 +55,7 @@ prof_qrencode_LDADD = ../libqrencode.la pthread_qrencode_SOURCES = pthread_qrencode.c -pthread_qrencode_LDADD = ../libqrencode.la +pthread_qrencode_LDADD = ../libqrencode.la -lpthread create_frame_pattern_SOURCES = create_frame_pattern.c create_frame_pattern_CFLAGS = $(png_CFLAGS) debian/patches/01_pkg_config_fix0000644000000000000000000000110011735220123014000 0ustar Description: Fix generated libqrencode.pc include correct LIBS (-lpthread). Author: NIIBE Yutaka Index: qrencode-3.2.0/libqrencode.pc.in =================================================================== --- qrencode-3.2.0.orig/libqrencode.pc.in 2011-10-23 20:21:17.000000000 +0000 +++ qrencode-3.2.0/libqrencode.pc.in 2012-03-30 02:54:06.130468748 +0000 @@ -6,5 +6,5 @@ Name: libqrencode Description: A QR Code encoding library Version: @VERSION@ -Libs: -L${libdir} -lqrencode @LIBPTHREAD@ +Libs: -L${libdir} -lqrencode @LIBS@ Cflags: -I${includedir} debian/patches/series0000644000000000000000000000001412054057140012023 0ustar # Empty now debian/patches/02_manual_fix0000644000000000000000000000566411736210246013201 0ustar Description: Fix configure.ac to enable HAVE_LIBPTHREAD (shell) variable. Author: NIIBE Yutaka Index: qrencode-3.3.0/qrencode.1.in =================================================================== --- qrencode-3.3.0.orig/qrencode.1.in 2012-04-02 02:32:40.042968129 +0000 +++ qrencode-3.3.0/qrencode.1.in 2012-04-02 02:32:40.000000000 +0000 @@ -17,49 +17,49 @@ .SH OPTIONS .TP -.B \-h, --help +.B \-h, \-\-help display help message. .TP -.B \-o FILENAME, --output=FILENAME -write image to FILENAME. If '-' is specified, the result will be output to standard output. If -S is given, structured symbols are written to FILENAME-01.png, FILENAME-02.png, ... (suffix is removed from FILENAME, if specified) +.B \-o FILENAME, \-\-output=FILENAME +write image to FILENAME. If '\-' is specified, the result will be output to standard output. If \-S is given, structured symbols are written to FILENAME-01.png, FILENAME-02.png, ... (suffix is removed from FILENAME, if specified) .TP -.B \-s NUMBER, --size=NUMBER +.B \-s NUMBER, \-\-size=NUMBER specify the size of dot (pixel). (default=3) .TP -.B \-l {LMQH}, --level={LMQH} +.B \-l {LMQH}, \-\-level={LMQH} specify error collectin level from L (lowest) to H (highest). (default=L) .TP -.B \-v NUMBER, --symversion=NUMBER +.B \-v NUMBER, \-\-symversion=NUMBER specify the version of the symbol. (default=auto) .TP -.B \-m NUMBER, --margin=NUMBER +.B \-m NUMBER, \-\-margin=NUMBER specify the width of margin. (default=4) .TP -.B \-d NUMBER, --dpi=NUMBER +.B \-d NUMBER, \-\-dpi=NUMBER specify the DPI of the generated PNG. (default=72) .TP -.B \-t {PNG,EPS,ANSI,ANSI256}, --type={PNG,EPS,ANSI,ANSI256} +.B \-t {PNG,EPS,ANSI,ANSI256}, \-\-type={PNG,EPS,ANSI,ANSI256} specify the type of the generated image. (default=PNG) .TP -.B \-S, --structured +.B \-S, \-\-structured make structured symbols. Version must be specified. .TP -.B \-k, --kanji +.B \-k, \-\-kanji assume that the input text contains kanji (shift-jis). .TP -.B \-c, --casesensitive +.B \-c, \-\-casesensitive encode lower-case alphabet characters in 8-bit mode. (default) .TP -.B \-i, --ignorecase +.B \-i, \-\-ignorecase ignore case distinctions and use only upper-case characters. .TP -.B \-8, --8bit -encode entire data in 8-bit mode. -k, -c and -i will be ignored. +.B \-8, \-\-8bit +encode entire data in 8-bit mode. \-k, \-c and \-i will be ignored. .TP -.B \-M, --micro +.B \-M, \-\-micro encode in a Micro QR Code. (experimental) .TP -.B \-V, --version +.B \-V, \-\-version display the version number and copyrights of the qrencode. .TP .B [STRING] @@ -67,10 +67,10 @@ .SH EXAMPLES .TP -.B qrencode -l L -v 1 -o output.png 'Hello, world!' +.B qrencode \-l L \-v 1 \-o output.png 'Hello, world!' encode into a symbol version 1, level L. .TP -.B qrencode -iSv 1 --output=output.png +.B qrencode \-iSv 1 \-\-output=output.png read standard input and encode it into a structured-appended symbols in case-insensitive mode. debian/patches/00_configure_fix0000644000000000000000000000122611735217443013676 0ustar Description: Fix configure.ac to enable HAVE_LIBPTHREAD (shell) variable. Author: NIIBE Yutaka Index: qrencode-3.2.0/configure.ac =================================================================== --- qrencode-3.2.0.orig/configure.ac 2011-10-23 20:21:17.000000000 +0000 +++ qrencode-3.2.0/configure.ac 2012-03-30 02:39:37.000000000 +0000 @@ -41,7 +41,7 @@ if test x$enable_thread_safety = xyes; then AC_CHECK_LIB([pthread], [pthread_mutex_init]) fi -AM_CONDITIONAL([HAVE_LIBPTHREAD], [test "x$HAVE_LIBPTHREAD" = "xyes" ]) +AM_CONDITIONAL([HAVE_LIBPTHREAD], [test "x$ac_cv_lib_pthread_pthread_mutex_init" = "xyes" ]) dnl --with-tools debian/libqrencode3.install0000644000000000000000000000002411735000665013127 0ustar usr/lib/*/lib*.so.* debian/watch0000644000000000000000000000013611734772131010225 0ustar version=3 http://megaui.net/fukuchi/works/qrencode/index.en.html qrencode-([.0-9]*)\.tar\.bz2 debian/changelog0000644000000000000000000000713612166734450011057 0ustar qrencode (3.4.2-1) unstable; urgency=low * New upstream release. -- NIIBE Yutaka Tue, 09 Jul 2013 07:16:53 +0000 qrencode (3.4.1-1) unstable; urgency=low * New upstream release. * debian/rules (DH_OPTIONS): Add. -- NIIBE Yutaka Sat, 24 Nov 2012 14:41:04 +0900 qrencode (3.3.0-2) unstable; urgency=low * debian/rules: Remove --with quilt. * debian/control - (Build-Depends): Remove quilt. * debian/patches/03_libpthread_handling_fix: Fix to AC_SUBST (was: AC_DEFINE). -- NIIBE Yutaka Mon, 02 Apr 2012 11:58:38 +0900 qrencode (3.3.0-1) unstable; urgency=low * New upstream release. - debian/patches/series: Disable 00_config_fix and 01_pkg_config_fix. * debian/libqrencode3.symbols: Add a symbols file to catch ABI change (Closes: #637347). Thanks to Felix Geyer. * debian/control - (Build-Depends): Add quilt. - qrencode (Description): Add a description for EPS support. - libqrencode3 (Section): Remove. - libqrencode3 (Description): Add a line to explain this runtime package. - libqrencode-dev (Description): Add a line to explain this dev package. * debian/rules: Add --with quilt. * debian/patches/02_manual_fix: New. Distinguish hyphen and minus for roff. * debian/patches/03_libpthread_handling_fix: New. Handle -lpthread. -- NIIBE Yutaka Mon, 02 Apr 2012 10:25:18 +0900 qrencode (3.2.0-2) unstable; urgency=low * debian/rules: Add --with autoreconf. * debian/source/format: New. * debian/patches/00_configure_fix: New. Fix for configure variable HAVE_LIBPTHREAD which affects tests/Makefile. * debian/patches/01_pkg_config_fix: New. Fix pkg-config file generation (Closes: #666247). Thanks to Jakob Haufe. * debian/control (libqrencode3 Multi-Arch): Add. -- NIIBE Yutaka Fri, 30 Mar 2012 11:58:08 +0900 qrencode (3.2.0-1) unstable; urgency=low * New upstream release. - Linking libpng has been changed (Closes: #641893). - '\0' is supported (Closes: #604882). * debian/control (Build-Depends): Change libpng-dev (was: libpng12-dev). (Closes: #650601). Thanks to Nobuhiro Iwamatsu. * debian/control (Build-Depends): Require debhelper >= 9. * debian/compat: Require 9. * debian/dirs, debian/libqrencode3.dirs, debian/libqrencode-dev.dirs: Remove. * debian/copyright: Write in the format of copyright-format 1.0. * debian/rules: as simple as possible. (override_dh_auto_configure): Support --with-tests. (override_dh_auto_test): Run tests. Thanks to Felix Geyer (Closes: #637344). * debian/libqrencode3.install, libqrencode-dev.install: Support Multiarch. * debian/control (libqrencode3 Pre-Depends): Add multiarch-support. -- NIIBE Yutaka Thu, 29 Mar 2012 14:34:17 +0900 qrencode (3.1.1-1) unstable; urgency=low * New upstream release. -- NIIBE Yutaka Wed, 03 Feb 2010 15:12:18 +0900 qrencode (3.0.3-1) unstable; urgency=low * New upstream release. * debian/control (Standards-Version): Conform to 3.8.0. (Package): New package, libqrencode3. * debian/libqrencode3.{dirs,install}: New files. * debian/libqrencode2.{dirs,install}: Removed. * debian/{postinst,postrm}: Removed as not used. -- NIIBE Yutaka Tue, 01 Jul 2008 11:53:54 +0900 qrencode (2.0.0-2) unstable; urgency=low * debian/control (Build-Depends): Added pkg-config. -- NIIBE Yutaka Mon, 25 Feb 2008 23:22:10 +0900 qrencode (2.0.0-1) unstable; urgency=low * Initial release (Closes: #411710). -- NIIBE Yutaka Mon, 18 Feb 2008 17:21:04 +0900