libdmtx-0.7.7
This commit is contained in:
@@ -1,15 +1,15 @@
|
|||||||
|
#!/usr/bin/python
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
#
|
#
|
||||||
# Licensed under the GNU General Public License, version 3.
|
# Licensed under the GNU General Public License, version 3.
|
||||||
# See the file http://www.gnu.org/licenses/gpl.txt
|
# See the file https://www.gnu.org/licenses/gpl-3.0.txt
|
||||||
|
|
||||||
from pisi.actionsapi import autotools
|
from pisi.actionsapi import autotools
|
||||||
from pisi.actionsapi import pisitools
|
from pisi.actionsapi import pisitools
|
||||||
from pisi.actionsapi import shelltools
|
|
||||||
from pisi.actionsapi import get
|
from pisi.actionsapi import get
|
||||||
|
|
||||||
def setup():
|
def setup():
|
||||||
shelltools.system("sh ./autogen.sh")
|
autotools.autoreconf("-fiv")
|
||||||
autotools.configure("--disable-static")
|
autotools.configure("--disable-static")
|
||||||
|
|
||||||
def build():
|
def build():
|
||||||
@@ -21,4 +21,4 @@ def check():
|
|||||||
def install():
|
def install():
|
||||||
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
|
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
|
||||||
|
|
||||||
pisitools.dodoc("AUTHORS", "NEWS", "README", "README.linux")
|
pisitools.dodoc("AUTHORS", "LICENSE")
|
||||||
|
|||||||
@@ -1,36 +0,0 @@
|
|||||||
diff -up libdmtx-0.7.5/test/multi_test/Makefile.am.std libdmtx-0.7.5/test/multi_test/Makefile.am
|
|
||||||
--- libdmtx-0.7.5/test/multi_test/Makefile.am.std 2018-04-06 13:14:23.000000000 +0200
|
|
||||||
+++ libdmtx-0.7.5/test/multi_test/Makefile.am 2018-04-06 13:14:27.000000000 +0200
|
|
||||||
@@ -1,4 +1,4 @@
|
|
||||||
-AM_CPPFLAGS = -Wshadow -Wall -pedantic -ansi
|
|
||||||
+AM_CPPFLAGS = -Wshadow -Wall -pedantic -std=c99
|
|
||||||
|
|
||||||
check_PROGRAMS = multi_test
|
|
||||||
|
|
||||||
diff -up libdmtx-0.7.5/test/rotate_test/Makefile.am.std libdmtx-0.7.5/test/rotate_test/Makefile.am
|
|
||||||
--- libdmtx-0.7.5/test/rotate_test/Makefile.am.std 2018-04-06 13:14:13.000000000 +0200
|
|
||||||
+++ libdmtx-0.7.5/test/rotate_test/Makefile.am 2018-04-06 13:14:18.000000000 +0200
|
|
||||||
@@ -1,4 +1,4 @@
|
|
||||||
-AM_CPPFLAGS = -Wshadow -Wall -pedantic -ansi
|
|
||||||
+AM_CPPFLAGS = -Wshadow -Wall -pedantic -std=c99
|
|
||||||
|
|
||||||
check_PROGRAMS = rotate_test
|
|
||||||
|
|
||||||
diff -up libdmtx-0.7.5/test/simple_test/Makefile.am.std libdmtx-0.7.5/test/simple_test/Makefile.am
|
|
||||||
--- libdmtx-0.7.5/test/simple_test/Makefile.am.std 2018-04-06 13:13:59.000000000 +0200
|
|
||||||
+++ libdmtx-0.7.5/test/simple_test/Makefile.am 2018-04-06 13:14:04.000000000 +0200
|
|
||||||
@@ -1,4 +1,4 @@
|
|
||||||
-AM_CPPFLAGS = -Wshadow -Wall -pedantic -ansi
|
|
||||||
+AM_CPPFLAGS = -Wshadow -Wall -pedantic -std=c99
|
|
||||||
|
|
||||||
check_PROGRAMS = simple_test
|
|
||||||
|
|
||||||
diff -up libdmtx-0.7.5/test/unit_test/Makefile.am.std libdmtx-0.7.5/test/unit_test/Makefile.am
|
|
||||||
--- libdmtx-0.7.5/test/unit_test/Makefile.am.std 2018-04-06 13:13:41.000000000 +0200
|
|
||||||
+++ libdmtx-0.7.5/test/unit_test/Makefile.am 2018-04-06 13:13:53.000000000 +0200
|
|
||||||
@@ -1,4 +1,4 @@
|
|
||||||
-AM_CPPFLAGS = -Wshadow -Wall -pedantic -ansi
|
|
||||||
+AM_CPPFLAGS = -Wshadow -Wall -pedantic -std=c99
|
|
||||||
|
|
||||||
check_PROGRAMS = unit_test
|
|
||||||
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
diff -up libdmtx-0.7.5/test/simple_test/simple_test.c.math libdmtx-0.7.5/test/simple_test/simple_test.c
|
|
||||||
--- libdmtx-0.7.5/test/simple_test/simple_test.c.math 2018-04-06 13:19:44.000000000 +0200
|
|
||||||
+++ libdmtx-0.7.5/test/simple_test/simple_test.c 2018-04-06 13:19:52.000000000 +0200
|
|
||||||
@@ -18,6 +18,7 @@
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <string.h>
|
|
||||||
#include <assert.h>
|
|
||||||
+#include <math.h>
|
|
||||||
#include <dmtx.h>
|
|
||||||
|
|
||||||
int
|
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
diff -up libdmtx-0.7.5/test/simple_test/simple_test.c.size_t libdmtx-0.7.5/test/simple_test/simple_test.c
|
|
||||||
--- libdmtx-0.7.5/test/simple_test/simple_test.c.size_t 2018-04-06 13:16:35.000000000 +0200
|
|
||||||
+++ libdmtx-0.7.5/test/simple_test/simple_test.c 2018-04-06 13:17:14.000000000 +0200
|
|
||||||
@@ -58,9 +58,9 @@ main(int argc, char *argv[])
|
|
||||||
|
|
||||||
dmtxEncodeDestroy(&enc);
|
|
||||||
|
|
||||||
- fprintf(stdout, "width: \"%d\"\n", width);
|
|
||||||
- fprintf(stdout, "height: \"%d\"\n", height);
|
|
||||||
- fprintf(stdout, "bpp: \"%d\"\n", bytesPerPixel);
|
|
||||||
+ fprintf(stdout, "width: \"%zd\"\n", width);
|
|
||||||
+ fprintf(stdout, "height: \"%zd\"\n", height);
|
|
||||||
+ fprintf(stdout, "bpp: \"%zd\"\n", bytesPerPixel);
|
|
||||||
|
|
||||||
for (int i=0; i<width*height; i++){
|
|
||||||
fprintf(stdout, "%d", (pxl[i*3])==0);
|
|
||||||
@@ -81,9 +81,9 @@ main(int argc, char *argv[])
|
|
||||||
if(reg != NULL) {
|
|
||||||
msg = dmtxDecodeMatrixRegion(dec, reg, DmtxUndefined);
|
|
||||||
|
|
||||||
- fprintf(stdout, "msg->arraySize : \"%d\"\n", msg->arraySize );
|
|
||||||
- fprintf(stdout, "msg->codeSize : \"%d\"\n", msg->codeSize );
|
|
||||||
- fprintf(stdout, "msg->outputSize: \"%d\"\n", msg->outputSize);
|
|
||||||
+ fprintf(stdout, "msg->arraySize : \"%zd\"\n", msg->arraySize );
|
|
||||||
+ fprintf(stdout, "msg->codeSize : \"%zd\"\n", msg->codeSize );
|
|
||||||
+ fprintf(stdout, "msg->outputSize: \"%zd\"\n", msg->outputSize);
|
|
||||||
int oned = sqrt(msg->arraySize);
|
|
||||||
for (int i=0; i<msg->arraySize; i++){
|
|
||||||
fprintf(stdout, " %c.", msg->array[i]);
|
|
||||||
@@ -1,22 +1,20 @@
|
|||||||
<?xml version="1.0" ?>
|
<?xml version="1.0" ?>
|
||||||
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
<!DOCTYPE PISI SYSTEM "https://pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||||
<PISI>
|
<PISI>
|
||||||
<Source>
|
<Source>
|
||||||
<Name>libdmtx</Name>
|
<Name>libdmtx</Name>
|
||||||
<Homepage>http://www.libdmtx.org</Homepage>
|
<Homepage>https://github.com/dmtx/libdmtx</Homepage>
|
||||||
<Packager>
|
<Packager>
|
||||||
<Name>PisiLinux Community</Name>
|
<Name>PisiLinux Community</Name>
|
||||||
<Email>admins@pisilinux.org</Email>
|
<Email>admins@pisilinux.org</Email>
|
||||||
</Packager>
|
</Packager>
|
||||||
<License>LGPLv2+</License>
|
<License>BSDv2</License>
|
||||||
<IsA>library</IsA>
|
<IsA>library</IsA>
|
||||||
<Summary>A Library for working with Data Matrix 2D bar-codes</Summary>
|
<Summary>A Library for working with Data Matrix 2D bar-codes.</Summary>
|
||||||
<Description>libdmtx is an open source software for reading and writing Data Matrix 2D bar-codes on Linux, Unix, OS X, Windows and mobile devices.</Description>
|
<Description>libdmtx is an open source software for reading and writing Data Matrix 2D bar-codes on Linux, Unix, OS X, Windows and mobile devices.</Description>
|
||||||
<Archive sha1sum="5a9742e7f74e8d1c154a212b3b0f37a740b6f0f2" type="targz">https://github.com/dmtx/libdmtx/archive/v0.7.5.tar.gz</Archive>
|
<Archive sha1sum="eb908c75d4652e0ba80c2dfeffea21933e23517a" type="targz">https://github.com/dmtx/libdmtx/archive/v0.7.7/libdmtx-0.7.7.tar.gz</Archive>
|
||||||
<Patches>
|
<Patches>
|
||||||
<Patch level="1">fedora/libdmtx-0.7.5-c99.patch</Patch>
|
<!-- <Patch level="1"></Patch> -->
|
||||||
<Patch level="1">fedora/libdmtx-0.7.5-math.patch</Patch>
|
|
||||||
<Patch level="1">fedora/libdmtx-0.7.5-size_t.patch</Patch>
|
|
||||||
</Patches>
|
</Patches>
|
||||||
</Source>
|
</Source>
|
||||||
|
|
||||||
@@ -24,7 +22,7 @@
|
|||||||
<Name>libdmtx</Name>
|
<Name>libdmtx</Name>
|
||||||
<Files>
|
<Files>
|
||||||
<Path fileType="library">/usr/lib</Path>
|
<Path fileType="library">/usr/lib</Path>
|
||||||
<Path fileType="doc">/usr/share/doc</Path>
|
<Path fileType="doc">/usr/share</Path>
|
||||||
</Files>
|
</Files>
|
||||||
</Package>
|
</Package>
|
||||||
|
|
||||||
@@ -37,11 +35,17 @@
|
|||||||
<Files>
|
<Files>
|
||||||
<Path fileType="header">/usr/include</Path>
|
<Path fileType="header">/usr/include</Path>
|
||||||
<Path fileType="data">/usr/lib/pkgconfig</Path>
|
<Path fileType="data">/usr/lib/pkgconfig</Path>
|
||||||
<Path fileType="man">/usr/share/man/man3</Path>
|
|
||||||
</Files>
|
</Files>
|
||||||
</Package>
|
</Package>
|
||||||
|
|
||||||
<History>
|
<History>
|
||||||
|
<Update release="6">
|
||||||
|
<Date>2025-02-10</Date>
|
||||||
|
<Version>0.7.7</Version>
|
||||||
|
<Comment>Version bump.</Comment>
|
||||||
|
<Name>Ayhan Yalçınsoy</Name>
|
||||||
|
<Email>ayhanyalcinsoy@pisilinux.org</Email>
|
||||||
|
</Update>
|
||||||
<Update release="5">
|
<Update release="5">
|
||||||
<Date>2020-03-06</Date>
|
<Date>2020-03-06</Date>
|
||||||
<Version>0.7.5</Version>
|
<Version>0.7.5</Version>
|
||||||
|
|||||||
Reference in New Issue
Block a user