--- libuninum-2.7.orig/debian/changelog +++ libuninum-2.7/debian/changelog @@ -0,0 +1,37 @@ +libuninum (2.7-1.1ubuntu1) trusty; urgency=medium + + * Use dh-autoreconf instead of autotools-dev to also fix FTBFS on ppc64el by + getting new libtool macros (still updates config.{sub,guess}). + + -- Logan Rosen Sat, 04 Jan 2014 22:58:10 -0500 + +libuninum (2.7-1.1) unstable; urgency=low + + * Non-maintainer upload. + * Don't ship .la files (Closes: #622442). + * Make 64-bit ready (Closes: #607737). + + -- Luk Claes Sat, 25 Jun 2011 16:14:09 +0200 + +libuninum (2.7-1) unstable; urgency=low + + * New upstream version. + * Bumped Standards-Version to 3.7.3 (no changes needed) + * Move URL to homepage to new header. + + -- Bartosz Fenski Wed, 23 Apr 2008 12:37:23 +0200 + +libuninum (2.6-2) unstable; urgency=low + + * The 'upload correct version of the package' release. + - includes manpage for numconv + - clarifies licensing for the library + + -- Bartosz Fenski Thu, 11 Oct 2007 11:51:01 +0200 + +libuninum (2.6-1) unstable; urgency=low + + * Initial release. (Closes: #439222) + + -- Bartosz Fenski Fri, 24 Aug 2007 14:17:55 +0200 + --- libuninum-2.7.orig/debian/compat +++ libuninum-2.7/debian/compat @@ -0,0 +1 @@ +5 --- libuninum-2.7.orig/debian/control +++ libuninum-2.7/debian/control @@ -0,0 +1,45 @@ +Source: libuninum +Priority: extra +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Bartosz Fenski +Build-Depends: debhelper (>= 5), dh-autoreconf, libgmp3-dev +Standards-Version: 3.7.3 +Section: libs +Homepage: http://billposer.org/Software/libuninum.html + +Package: libuninum-dev +Section: libdevel +Architecture: any +Depends: libuninum5 (>= ${binary:Version}) +Description: development files for Libuninum library + Libuninum is a library for converting Unicode strings to numbers and numbers to + Unicode strings. Standard functions like strtoul, strtod, and sprintf do + this for numbers written in the usual Western number system using the + Indo-Arabic numerals, but they do not handle other number systems. + . + Libuninum can handle them properly. + . + This package contains files needed if you wish to use the libstatgrab + library in your own programs. + +Package: libuninum5 +Section: libs +Architecture: any +Depends: ${shlibs:Depends} +Description: library for handling numbers as Unicode strings + Libuninum is a library for converting Unicode strings to numbers and numbers to + Unicode strings. Standard functions like strtoul, strtod, and sprintf do + this for numbers written in the usual Western number system using the + Indo-Arabic numerals, but they do not handle other number systems. + . + Libuninum can handle them properly. + +Package: numconv +Section: utils +Architecture: any +Depends: ${shlibs:Depends} +Description: utility for conversion numbers as Unicode strings + numconv is an utility handling number system conversions and provides + a convenient way to delimit numbers generated by other programs without + delimitation or with delimitation inappropriate for the locale. + --- libuninum-2.7.orig/debian/copyright +++ libuninum-2.7/debian/copyright @@ -0,0 +1,37 @@ +This package was debianized by Bartosz Fenski on +Fri, 24 Aug 2007 14:17:55 +0200. + +It was downloaded from http://billposer.org/Software/libuninum.html + +Upstream Author: + + Bill Poser + +Copyright: + + Copyright (C) 2007 Bill Poser + +License: + + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU General Public License as published by the + Free Software Foundation; either version 2, or (at your option) any + later version. + + On Debian systems, the complete text of the GNU General Public License + can be found in the file `/usr/share/common-licenses/GPL'. + +License of library: + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU Library General Public License as published + by the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + On Debian systems, the complete text of the GNU Library (now Lesser) public + license can be found in the file /usr/share/common-licenses/LGPL + +The Debian packaging is (C) 2007, Bartosz Fenski and +is licensed under the GPL, see `/usr/share/common-licenses/GPL'. + + --- libuninum-2.7.orig/debian/dirs +++ libuninum-2.7/debian/dirs @@ -0,0 +1,2 @@ +usr/bin +usr/sbin --- libuninum-2.7.orig/debian/docs +++ libuninum-2.7/debian/docs @@ -0,0 +1,4 @@ +NEWS +README +README_TCL +TODO --- libuninum-2.7.orig/debian/libuninum-dev.dirs +++ libuninum-2.7/debian/libuninum-dev.dirs @@ -0,0 +1,2 @@ +usr/lib +usr/include/uninum --- libuninum-2.7.orig/debian/libuninum-dev.install +++ libuninum-2.7/debian/libuninum-dev.install @@ -0,0 +1,3 @@ +usr/include/uninum/* +usr/lib/lib*.a +usr/lib/lib*.so --- libuninum-2.7.orig/debian/libuninum5.dirs +++ libuninum-2.7/debian/libuninum5.dirs @@ -0,0 +1 @@ +usr/lib --- libuninum-2.7.orig/debian/libuninum5.install +++ libuninum-2.7/debian/libuninum5.install @@ -0,0 +1 @@ +usr/lib/lib*.so.* --- libuninum-2.7.orig/debian/numconv.install +++ libuninum-2.7/debian/numconv.install @@ -0,0 +1 @@ +usr/bin/numconv --- libuninum-2.7.orig/debian/numconv.manpages +++ libuninum-2.7/debian/numconv.manpages @@ -0,0 +1 @@ +numconv.1 \ No newline at end of file --- libuninum-2.7.orig/debian/rules +++ libuninum-2.7/debian/rules @@ -0,0 +1,85 @@ +#!/usr/bin/make -f + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + + +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) + + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +# shared library versions, option 1 +version=2.0.5 +major=2 +# option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so +#version=`ls src/.libs/lib*.so.* | \ +# awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'` +#major=`ls src/.libs/lib*.so.* | \ +# awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'` + +config.status: configure + dh_testdir + dh_autoreconf + # Add here commands to configure the package. + ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs" + + +build: build-stamp +build-stamp: config.status + dh_testdir + + $(MAKE) + + touch $@ + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + [ ! -f Makefile ] || $(MAKE) distclean + dh_autoreconf_clean + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install + + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs ChangeLog + dh_installdocs + dh_installexamples + dh_install --sourcedir=debian/tmp + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms + dh_makeshlibs + dh_installdeb + dh_shlibdeps -l debian/libuninum5/usr/lib + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- libuninum-2.7.orig/unicode.h +++ libuninum-2.7/unicode.h @@ -1,8 +1,10 @@ -typedef unsigned long UTF32; /* at least 32 bits */ -typedef unsigned short UTF16; /* at least 16 bits */ -typedef unsigned short UCS2; /* at least 16 bits */ -typedef unsigned char UTF8; /* 8 bits */ -typedef unsigned char Boolean; /* 0 or 1 */ +#include + +typedef uint32_t UTF32; /* 32 bits */ +typedef uint16_t UTF16; /* 16 bits */ +typedef uint16_t UCS2; /* 16 bits */ +typedef uint8_t UTF8; /* 8 bits */ +typedef uint8_t Boolean; /* 0 or 1 */ #define UNI_MAX_ASCII (UTF32)0x0000007F #define UNI_MAX_BMP (UTF32)0x0000FFFF --- libuninum-2.7.orig/uninum.c +++ libuninum-2.7/uninum.c @@ -35,11 +35,11 @@ */ -#define ucslen(x) wcslen((signed long *) x) -#define ucscpy(x,y) (UTF32 *)wcscpy((signed long *)x,(signed long *)y) -#define ucscat(x,y) (UTF32 *)wcscat((signed long *)x,(signed long *)y) -#define ucschr(x,y) (UTF32 *)wcschr((signed long *)x,(signed long)y) -#define ucsrchr(x,y) (UTF32 *)wcsrchr((signed long *)x,(signed long)y) +#define ucslen(x) wcslen((wchar_t *) x) +#define ucscpy(x,y) (UTF32 *)wcscpy((wchar_t *)x,(wchar_t *)y) +#define ucscat(x,y) (UTF32 *)wcscat((wchar_t *)x,(wchar_t *)y) +#define ucschr(x,y) (UTF32 *)wcschr((wchar_t *)x,(wchar_t)y) +#define ucsrchr(x,y) (UTF32 *)wcsrchr((wchar_t *)x,(wchar_t)y) #define UNINUM