--- boolstuff-0.1.12.orig/debian/libboolstuff-0.1-0.install
+++ boolstuff-0.1.12/debian/libboolstuff-0.1-0.install
@@ -0,0 +1 @@
+usr/lib/lib*.so.*
--- boolstuff-0.1.12.orig/debian/boolstuff-dev.install
+++ boolstuff-0.1.12/debian/boolstuff-dev.install
@@ -0,0 +1,6 @@
+usr/include/*
+usr/lib/lib*.a
+usr/lib/lib*.so
+usr/lib/pkgconfig/*
+usr/lib/*.la
+#usr/share/pkgconfig/*
--- boolstuff-0.1.12.orig/debian/copyright
+++ boolstuff-0.1.12/debian/copyright
@@ -0,0 +1,35 @@
+This package was debianized by Miriam Ruiz <little_miry@yahoo.es> on
+Tue, 19 Feb 2008 18:51:05 +0000.
+
+It was downloaded from http://perso.b2b2c.ca/sarrazip/dev/boolstuff.html
+
+Upstream Author: 
+
+    Pierre Sarrazin <sarrazip@sarrazip.com>
+
+Copyright: 
+
+    Copyright (C) 2002 Pierre Sarrazin <http://sarrazip.com/>
+
+License:
+
+    This package 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 of the License, or
+    (at your option) any later version.
+ 
+    This package 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 General Public License for more details.
+ 
+    You should have received a copy of the GNU General Public License
+    along with this package; 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 version 2 of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL-2', and the
+latest version of the license in `/usr/share/common-licenses/GPL'.
+
+The Debian packaging is (C) 2008, Miriam Ruiz <little_miry@yahoo.es> and
+is licensed under the GPL, see above.
--- boolstuff-0.1.12.orig/debian/changelog
+++ boolstuff-0.1.12/debian/changelog
@@ -0,0 +1,42 @@
+boolstuff (0.1.12-3.4.201403150752) ucs4-0-0-0; urgency=low
+
+  * UCS auto build. No patches were applied to the original source package
+
+ -- Univention builddaemon <buildd@univention.de>  Sat, 15 Mar 2014 07:52:52 +0100
+
+boolstuff (0.1.12-3) unstable; urgency=low
+
+  * Really apply patches when building this time. Closes: #467382
+
+ -- Miriam Ruiz <little_miry@yahoo.es>  Sun, 27 Sep 2009 15:26:16 +0200
+
+boolstuff (0.1.12-2) unstable; urgency=low
+
+  * Upgraded Standards-Version from 3.8.0 to 3.8.3
+  * Fixed package descriptions. Close: #467382
+  * Added build dependency: quilt
+  * Added patch so that it compiles in GCC 4.4. Closes: #504848
+  * Added new binary package with the debugging symbols
+  * Changed priority to optional
+
+ -- Miriam Ruiz <little_miry@yahoo.es>  Thu, 24 Sep 2009 13:06:50 +0200
+
+boolstuff (0.1.12-1) unstable; urgency=low
+
+  * New Upstream Release (Closes: #509112)
+  * Upgraded Standards-Version from 3.7.3 to 3.8.0
+  * Added -Wl,-as-needed -Wl,--no-undefined to LDFLAGS
+  * Added dependency from chrpath
+  * Run chrpath --delete on usr/bin/*
+  * Removed DM-Upload-Allowed: yes from debian/control
+
+ -- Miriam Ruiz <little_miry@yahoo.es>  Thu, 18 Dec 2008 23:04:53 +0100
+
+boolstuff (0.1.11-1) unstable; urgency=low
+
+  * Initial release (Closes: #466664)
+  * Note that DM-Upload-Allowed: yes has been added to debian/control to
+    allow Debian Maintainers' uploads.
+
+ -- Miriam Ruiz <little_miry@yahoo.es>  Tue, 19 Feb 2008 18:51:05 +0000
+
--- boolstuff-0.1.12.orig/debian/compat
+++ boolstuff-0.1.12/debian/compat
@@ -0,0 +1 @@
+5
--- boolstuff-0.1.12.orig/debian/boolstuff.manpages
+++ boolstuff-0.1.12/debian/boolstuff.manpages
@@ -0,0 +1 @@
+doc/booldnf.1
--- boolstuff-0.1.12.orig/debian/boolstuff-dev.manpages
+++ boolstuff-0.1.12/debian/boolstuff-dev.manpages
@@ -0,0 +1 @@
+doc/boolstuff.3
--- boolstuff-0.1.12.orig/debian/rules
+++ boolstuff-0.1.12/debian/rules
@@ -0,0 +1,101 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# These are used for cross-compiling and for saving the configure script
+# from having to guess our platform (since we know it already)
+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)}'`
+
+patch:
+	$(MAKE) -f /usr/share/quilt/quilt.make patch
+
+config.status: configure
+	dh_testdir
+	$(MAKE) -f /usr/share/quilt/quilt.make patch
+ifneq "$(wildcard /usr/share/misc/config.sub)" ""
+	cp -f /usr/share/misc/config.sub config.sub
+endif
+ifneq "$(wildcard /usr/share/misc/config.guess)" ""
+	cp -f /usr/share/misc/config.guess config.guess
+endif
+	./configure \
+		CFLAGS="$(CFLAGS)" \
+		LDFLAGS="-Wl,-z,defs  -Wl,-as-needed -Wl,--no-undefined" \
+		--host=$(DEB_HOST_GNU_TYPE) \
+		--build=$(DEB_BUILD_GNU_TYPE) \
+		--prefix=/usr \
+		--mandir=\$${prefix}/share/man \
+		--infodir=\$${prefix}/share/info \
+		--enable-static \
+		--enable-shared
+
+build: build-stamp
+build-stamp:  config.status
+	dh_testdir
+	$(MAKE)
+	touch $@
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp 
+	[ ! -f Makefile ] || $(MAKE) distclean
+	rm -f config.sub config.guess config.log config.status
+	$(MAKE) -f /usr/share/quilt/quilt.make unpatch
+	dh_clean 
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k 
+	dh_installdirs
+	$(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
+	chrpath --delete $(CURDIR)/debian/tmp/usr/bin/*
+
+# Build architecture-independent files here.
+binary-indep: build install
+
+# Build architecture-dependent files here.
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs
+	dh_installdocs
+	dh_installexamples examples/* src/boolstuff/*test*
+	dh_install --sourcedir=debian/tmp/
+#	dh_installmenu
+#	dh_installdebconf
+	dh_installman
+	dh_link
+	dh_strip --dbg-package=libboolstuff-0.1-0-dbg
+	dh_compress
+	dh_fixperms
+	test -e /usr/bin/dh_buildinfo && dh_buildinfo || true
+	dh_makeshlibs
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install 
--- boolstuff-0.1.12.orig/debian/README.source
+++ boolstuff-0.1.12/debian/README.source
@@ -0,0 +1 @@
+See: /usr/share/doc/quilt/README.source
--- boolstuff-0.1.12.orig/debian/control
+++ boolstuff-0.1.12/debian/control
@@ -0,0 +1,56 @@
+Source: boolstuff
+Priority: optional
+Maintainer: Miriam Ruiz <little_miry@yahoo.es>
+Build-Depends: debhelper (>= 5), autotools-dev, quilt, perl, chrpath
+Standards-Version: 3.8.3
+Section: libs
+Homepage: http://sarrazip.com/dev/boolstuff.html
+
+Package: boolstuff-dev
+Section: libdevel
+Architecture: any
+Depends: libboolstuff-0.1-0 (= ${binary:Version})
+Description: library for operating on boolean expression binary trees
+ BoolStuff is a C++ library that supports a few operations on boolean
+ expression binary trees. The main features are:
+  * a simple boolean expression parser (supports operators AND, OR and
+    NOT, as well as parentheses)
+  * an algorithm to convert a boolean expression binary tree into its
+    Disjunctive Normal Form (this algorithm supports the NOT operator)
+  * a function that determines if an expression tree is in DNF. 
+ .
+ This package includes the development files for using the library from
+ inside your programs.
+
+Package: boolstuff
+Section: libs
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: library for operating on boolean expression binary trees
+ BoolStuff is a C++ library that supports a few operations on boolean
+ expression binary trees.
+ .
+ This package includes extra programs that allow the usage of the library
+ from the shell. A command named booldnf can be used to convert an
+ expression to the Disjunctive Normal Form (DNF).
+
+Package: libboolstuff-0.1-0
+Section: utils
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: library for operating on boolean expression binary trees
+ BoolStuff is a C++ library that supports a few operations on boolean
+ expression binary trees.
+ .
+ This package includes the runtime libraries.
+
+Package: libboolstuff-0.1-0-dbg
+Section: debug
+Priority: extra
+Architecture: any
+Depends: libboolstuff-0.1-0 (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}
+Description: library for operating on boolean expression binary trees
+ BoolStuff is a C++ library that supports a few operations on boolean
+ expression binary trees.
+ .
+ This package includes the debugging symbols.
--- boolstuff-0.1.12.orig/debian/boolstuff.install
+++ boolstuff-0.1.12/debian/boolstuff.install
@@ -0,0 +1 @@
+usr/bin/*
--- boolstuff-0.1.12.orig/debian/docs
+++ boolstuff-0.1.12/debian/docs
@@ -0,0 +1,2 @@
+NEWS
+README
--- boolstuff-0.1.12.orig/debian/patches/gcc-4.4.patch
+++ boolstuff-0.1.12/debian/patches/gcc-4.4.patch
@@ -0,0 +1,15 @@
+# Fixes #504848 - FTBFS with GCC 4.4: missing #include
+# Thanks to Martin Michlmayr <tbm@cyrius.com>
+
+Index: boolstuff-0.1.12/src/commands/booldnf.cpp
+===================================================================
+--- boolstuff-0.1.12.orig/src/commands/booldnf.cpp	2009-09-24 13:11:28.000000000 +0200
++++ boolstuff-0.1.12/src/commands/booldnf.cpp	2009-09-24 13:11:45.000000000 +0200
+@@ -32,6 +32,7 @@
+ #include <getopt.h>
+ #endif
+ 
++#include <cstdio>
+ #include <iostream>
+ 
+ using namespace std;
--- boolstuff-0.1.12.orig/debian/patches/series
+++ boolstuff-0.1.12/debian/patches/series
@@ -0,0 +1 @@
+gcc-4.4.patch
