[primesieve] 02/02: Imported Debian patch 5.5.0~rc1+ds-1

Jerome Benoit calculus-guest at moszumanska.debian.org
Mon Oct 26 03:37:39 UTC 2015


This is an automated email from the git hooks/post-receive script.

calculus-guest pushed a commit to branch master
in repository primesieve.

commit 03525da3973f6591eb337e7d3af6e7b43411e4a5
Author: Jerome Benoit <calculus at rezozer.net>
Date:   Mon Oct 26 04:36:19 2015 +0100

    Imported Debian patch  5.5.0~rc1+ds-1
---
 debian/adhoc/Makefile                    |  42 +++++++++++
 debian/adhoc/examples/c/Makefile         |  40 ++++++++++
 debian/adhoc/examples/cpp/Makefile       |  40 ++++++++++
 debian/changelog                         |   5 ++
 debian/clean                             |   2 +
 debian/compat                            |   1 +
 debian/control                           | 125 +++++++++++++++++++++++++++++++
 debian/copyright                         |  62 +++++++++++++++
 debian/libprimesieve5-dev-common.docs    |   2 +
 debian/libprimesieve5-dev-common.install |   2 +
 debian/libprimesieve5-dev.install        |   3 +
 debian/libprimesieve5.docs               |   2 +
 debian/libprimesieve5.install            |   1 +
 debian/libprimesieve5.lintian-overrides  |   2 +
 debian/patches/debianization.patch       |  21 ++++++
 debian/patches/series                    |   1 +
 debian/primesieve-bin.install            |   1 +
 debian/primesieve-bin.manpages           |   1 +
 debian/primesieve-doc.doc-base           |  23 ++++++
 debian/primesieve-doc.docs               |   4 +
 debian/primesieve-doc.examples           |   2 +
 debian/rules                             |  57 ++++++++++++++
 debian/source/format                     |   1 +
 debian/source/lintian-overrides          |   3 +
 debian/tests/build-examples              |  13 ++++
 debian/tests/control                     |   5 ++
 debian/tests/make-check                  |   8 ++
 debian/watch                             |   3 +
 28 files changed, 472 insertions(+)

diff --git a/debian/adhoc/Makefile b/debian/adhoc/Makefile
new file mode 100644
index 0000000..e2aeb9c
--- /dev/null
+++ b/debian/adhoc/Makefile
@@ -0,0 +1,42 @@
+TOP_BUILDDIR ?= _build
+
+primesieve_DESCRIPTION = "an efficient program (and C/C++ library) for generating slices of prime numbers"
+
+DOXYGEN = doxygen
+
+HELP2MAN = help2man
+
+H2MFLAGS = \
+	--manual="primesieve" \
+	--source="primesieve (Debian $(DEB_PKG_VERSION))" \
+	--no-info
+
+default:
+
+ABS_DOCDIR=$(abspath $(TOP_BUILDDIR))/DEBIAN/doc
+doc: doxygen/Doxyfile
+	mkdir -p $(ABS_DOCDIR)
+	cp -p $< $(ABS_DOCDIR)/Doxyfile
+	echo "OUTPUT_DIRECTORY = $(ABS_DOCDIR)" >> $(ABS_DOCDIR)/Doxyfile
+	sed -i -e 's|GENERATE_LATEX\([\ ]*\)=\([\ ]*\)NO|GENERATE_LATEX = YES|' $(ABS_DOCDIR)/Doxyfile
+	cd $(<D) && $(DOXYGEN) $(ABS_DOCDIR)/Doxyfile
+	cd $(ABS_DOCDIR)/html && { \
+		rm -f *.md5 jquery.js ; \
+		rdfind -outputname /dev/null -makesymlinks true . ; \
+		symlinks -r -c -s -v . ; \
+		ln -sf /usr/share/javascript/jquery/jquery.js ; \
+		}
+	cd $(ABS_DOCDIR)/latex && { \
+		make && mv refman.pdf primesieve_refman.pdf ; \
+		}
+
+manpages: primesieve.1
+
+primesieve.1: $(TOP_BUILDDIR)/primesieve
+	$(HELP2MAN) \
+			-s 1 \
+			$(H2MFLAGS) \
+			-I debian/man/$(basename $@).h2m \
+			-n $(if $($(basename $@)_DESCRIPTION), $($(basename $@)_DESCRIPTION), "manual page for $(basename $@)") \
+			-o $@ \
+		./$<
diff --git a/debian/adhoc/examples/c/Makefile b/debian/adhoc/examples/c/Makefile
new file mode 100644
index 0000000..9dc6dba
--- /dev/null
+++ b/debian/adhoc/examples/c/Makefile
@@ -0,0 +1,40 @@
+# /usr/share/doc/primesieve-doc/examples/c/Makefile
+#
+# Ad hoc Makefile for building and playing with the sample sources
+# distributed within the debian package primesieve-doc.
+#
+# Recommended usage:
+#  create a dedicated folder somewhere in your HOME directory;
+#  link all the files in /usr/share/doc/primesieve-doc/examples/c in the dedicated folder;
+#  launch this Makefile in the dedicated folder:
+#  $ make ;
+#  for a basic cleanup, consider the clean target:
+#  $ make clean ;
+#  for an entire cleanup, the maintainer-clean target:
+#  $ make maintainer-clean ;
+#  for other targets, just read the Makefile.
+#
+# written for Debian by Jerome Benoit <calculus at rezozer.net>
+# on behalf of the Debian Science Team
+# copyright: 2015 Jerome Benoit <calculus at rezozer.net>
+# distributed under the terms and conditions of GPL version 3 or later
+#
+
+PROGRAMS = $(patsubst %.c,%,$(wildcard *.c))
+
+default: all
+
+CFLAGS = $(shell pkg-config primesieve --cflags)
+LDLIBS = $(shell pkg-config primesieve --libs)
+
+all: build
+
+build: $(PROGRAMS)
+
+check: build
+	$(foreach eg, $(PROGRAMS), echo "*** $(eg) ***" ; ./$(eg) ; )
+
+clean:
+	$(RM) $(PROGRAMS)
+
+maintainer-clean: clean
diff --git a/debian/adhoc/examples/cpp/Makefile b/debian/adhoc/examples/cpp/Makefile
new file mode 100644
index 0000000..6ae79c0
--- /dev/null
+++ b/debian/adhoc/examples/cpp/Makefile
@@ -0,0 +1,40 @@
+# /usr/share/doc/primesieve-doc/examples/cpp/Makefile
+#
+# Ad hoc Makefile for building and playing with the sample sources
+# distributed within the debian package primesieve-doc.
+#
+# Recommended usage:
+#  create a dedicated folder somewhere in your HOME directory;
+#  link all the files in /usr/share/doc/primesieve-doc/examples/cpp in the dedicated folder;
+#  launch this Makefile in the dedicated folder:
+#  $ make ;
+#  for a basic cleanup, consider the clean target:
+#  $ make clean ;
+#  for an entire cleanup, the maintainer-clean target:
+#  $ make maintainer-clean ;
+#  for other targets, just read the Makefile.
+#
+# written for Debian by Jerome Benoit <calculus at rezozer.net>
+# on behalf of the Debian Science Team
+# copyright: 2015 Jerome Benoit <calculus at rezozer.net>
+# distributed under the terms and conditions of GPL version 3 or later
+#
+
+PROGRAMS = $(patsubst %.cpp,%,$(wildcard *.cpp))
+
+default: all
+
+CFLAGS = $(shell pkg-config primesieve --cflags)
+LDLIBS = $(shell pkg-config primesieve --libs)
+
+all: build
+
+build: $(PROGRAMS)
+
+check: build
+	$(foreach eg, $(PROGRAMS), echo "*** $(eg) ***" ; ./$(eg) ; )
+
+clean:
+	$(RM) $(PROGRAMS)
+
+maintainer-clean: clean
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..0d9cb7a
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+primesieve (5.5.0~rc1+ds-1) unstable; urgency=medium
+
+  * Initial release. (Closes: #802513)
+
+ -- Jerome Benoit <calculus at rezozer.net>  Mon, 26 Oct 2015 03:35:24 +0000
diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..d3f9689
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1,2 @@
+README.implementation
+primesieve.1
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..27f1643
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,125 @@
+Source: primesieve
+Section: math
+Priority: optional
+Maintainer: Debian Science Maintainers <debian-science-maintainers at lists.alioth.debian.org>
+Uploaders: Jerome Benoit <calculus at rezozer.net>
+Build-Depends: debhelper (>= 9), autotools-dev, dh-autoreconf, libtool, help2man
+Build-Depends-Indep:
+ doxygen, graphviz,
+ texlive-latex-recommended, texlive-latex-extra, texlive-fonts-recommended,
+ rdfind, symlinks
+Standards-Version: 3.9.6
+Homepage: http://primesieve.org/
+Vcs-Git: git://anonscm.debian.org/debian-science/packages/primesieve.git
+Vcs-Browser: http://anonscm.debian.org/gitweb/?p=debian-science/packages/primesieve.git
+
+Package: primesieve
+Architecture: any
+Depends: primesieve-bin, ${misc:Depends}
+Description: fast prime number generator C/C++ library
+ primesieve is a free software program and C/C++ library that generates
+ primes using a highly optimized sieve of Eratosthenes implementation.
+ primesieve can generate primes and prime k-tuplets up to nearly 2^64.
+ .
+ See http://primesieve.org/ for more information.
+ .
+ This dummy package provides the standard installation.
+
+Package: libprimesieve5
+Provides: libprimesieve
+Section: libs
+Architecture: any
+Conflicts: libprimesieve
+Pre-Depends: ${misc:Pre-Depends}
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Recommends: primesieve-bin (=${binary:Version})
+Multi-Arch: same
+Description: fast prime number generator C/C++ library -- lib
+ primesieve is a free software program and C/C++ library that generates
+ primes using a highly optimized sieve of Eratosthenes implementation.
+ primesieve can generate primes and prime k-tuplets up to nearly 2^64.
+ .
+ See http://primesieve.org/ for more information.
+ .
+ This package provides the shared library.
+
+Package: libprimesieve5-dev
+Provides: libprimesieve-dev
+Section: libdevel
+Architecture: any
+Conflicts: libprimesieve-dev
+Depends:
+ libprimesieve5 (= ${binary:Version}), libprimesieve5-dev-common (= ${source:Version}),
+ ${misc:Depends}
+Suggests: pkg-config
+Multi-Arch: same
+Description: fast prime number generator C/C++ library -- libdev
+ primesieve is a free software program and C/C++ library that generates
+ primes using a highly optimized sieve of Eratosthenes implementation.
+ primesieve can generate primes and prime k-tuplets up to nearly 2^64.
+ .
+ See http://primesieve.org/ for more information.
+ .
+ This package provides the static library and symbolic links needed
+ for development.
+
+Package: libprimesieve5-dev-common
+Provides: libprimesieve-dev-common
+Section: libdevel
+Architecture: all
+Depends: ${misc:Depends}
+Recommends: libprimesieve5-dev (=${binary:Version})
+Multi-Arch: foreign
+Description: fast prime number generator C/C++ library -- headers
+ primesieve is a free software program and C/C++ library that generates
+ primes using a highly optimized sieve of Eratosthenes implementation.
+ primesieve can generate primes and prime k-tuplets up to nearly 2^64.
+ .
+ See http://primesieve.org/ for more information.
+ .
+ This package provides the headers needed by developers.
+
+Package: primesieve-bin
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Multi-Arch: foreign
+Description: fast prime number generator C/C++ library -- bin
+ primesieve is a free software program and C/C++ library that generates
+ primes using a highly optimized sieve of Eratosthenes implementation.
+ primesieve can generate primes and prime k-tuplets up to nearly 2^64.
+ .
+ See http://primesieve.org/ for more information.
+ .
+ This package provides the command line utility primesieve.
+
+Package: libprimesieve5-dbg
+Provides: libprimesieve-dbg
+Section: debug
+Priority: extra
+Architecture: any
+Conflicts: libprimesieve-dbg
+Depends: libprimesieve5 (= ${binary:Version}), ${misc:Depends}
+Multi-Arch: same
+Description: fast prime number generator C/C++ library -- debug
+ primesieve is a free software program and C/C++ library that generates
+ primes using a highly optimized sieve of Eratosthenes implementation.
+ primesieve can generate primes and prime k-tuplets up to nearly 2^64.
+ .
+ See http://primesieve.org/ for more information.
+ .
+ This package provides the debugging symbols.
+
+Package: primesieve-doc
+Section: doc
+Architecture: all
+Depends: libjs-jquery, ${misc:Depends}
+Suggests: primesieve (=${binary:Version}), pdf-viewer, www-browser
+Multi-Arch: foreign
+Description: fast prime number generator C/C++ library -- doc
+ primesieve is a free software program and C/C++ library that generates
+ primes using a highly optimized sieve of Eratosthenes implementation.
+ primesieve can generate primes and prime k-tuplets up to nearly 2^64.
+ .
+ See http://primesieve.org/ for more information.
+ .
+ This package provides the API documentation with its concomitant examples.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..ea02948
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,62 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0
+Upstream-Name: primesieve
+Upstream-Contact: Kim Walisch <kim.walisch at gmail.com>
+Source: http://primesieve.org/downloads/
+X-Upstream-Vcs: git clone git at github.com:kimwalisch/primesieve.git
+Files-Excluded:
+ .gitignore
+ .travis.yml
+
+Files: *
+Copyright:
+ 2010-2015 Kim Walisch <kim.walisch at gmail.com>
+License: BSD-2-clause
+
+Files: src/apps/gui/*
+Copyright:
+ 2012-2015 Kim Walisch <kim.walisch at gmail.com>
+License: GPL-3+
+
+Files: debian/*
+Copyright:
+ 2015 Jerome Benoit <calculus at rezozer.net>
+License: GPL-3+
+
+License: BSD-2-clause
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+ 1. Redistributions of source code must retain the above copyright
+    notice, this list of conditions and the following disclaimer.
+ 2. Redistributions in binary form must reproduce the above copyright
+    notice, this list of conditions and the following disclaimer in the
+    documentation and/or other materials provided with the distribution.
+ .
+ THIS SOFTWARE IS PROVIDED BY AUTHORS AND CONTRIBUTORS ``AS IS'' AND
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ SUCH DAMAGE.
+
+License: GPL-3+
+ 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 3 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 program. If not, see <http://www.gnu.org/licenses/>.
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License version 3 can be found in `/usr/share/common-licenses/GPL-3'.
diff --git a/debian/libprimesieve5-dev-common.docs b/debian/libprimesieve5-dev-common.docs
new file mode 100644
index 0000000..748745d
--- /dev/null
+++ b/debian/libprimesieve5-dev-common.docs
@@ -0,0 +1,2 @@
+README.md
+README.implementation
diff --git a/debian/libprimesieve5-dev-common.install b/debian/libprimesieve5-dev-common.install
new file mode 100644
index 0000000..b407a3f
--- /dev/null
+++ b/debian/libprimesieve5-dev-common.install
@@ -0,0 +1,2 @@
+usr/include/primesieve.*
+usr/include/primesieve/*
diff --git a/debian/libprimesieve5-dev.install b/debian/libprimesieve5-dev.install
new file mode 100644
index 0000000..e04a1f5
--- /dev/null
+++ b/debian/libprimesieve5-dev.install
@@ -0,0 +1,3 @@
+usr/lib/*/libprimesieve.so
+usr/lib/*/libprimesieve.a
+usr/lib/*/pkgconfig/*
diff --git a/debian/libprimesieve5.docs b/debian/libprimesieve5.docs
new file mode 100644
index 0000000..748745d
--- /dev/null
+++ b/debian/libprimesieve5.docs
@@ -0,0 +1,2 @@
+README.md
+README.implementation
diff --git a/debian/libprimesieve5.install b/debian/libprimesieve5.install
new file mode 100644
index 0000000..47464a9
--- /dev/null
+++ b/debian/libprimesieve5.install
@@ -0,0 +1 @@
+usr/lib/*/libprimesieve.so.*
diff --git a/debian/libprimesieve5.lintian-overrides b/debian/libprimesieve5.lintian-overrides
new file mode 100644
index 0000000..d8f4437
--- /dev/null
+++ b/debian/libprimesieve5.lintian-overrides
@@ -0,0 +1,2 @@
+# the upstream source contains C++ code with an intricate (and non-human) ABI
+libprimesieve5: no-symbols-control-file
diff --git a/debian/patches/debianization.patch b/debian/patches/debianization.patch
new file mode 100644
index 0000000..4dd88eb
--- /dev/null
+++ b/debian/patches/debianization.patch
@@ -0,0 +1,21 @@
+Description: debianization
+ Meant to maintain a minimal debian/rules, to fix warnings,
+ to address Debian specific stuff in general.
+Origin: debian
+Author: Jerome Benoit <calculus at rezozer.net>
+Last-Update: 2015-10-26
+
+--- a/configure.ac
++++ b/configure.ac
+@@ -4,8 +4,10 @@
+ AC_PREREQ([2.62])
+ AC_LANG([C++])
+ AC_CONFIG_MACRO_DIR([m4])
++AC_CONFIG_AUX_DIR([build-aux])
+ AM_INIT_AUTOMAKE([subdir-objects foreign -Wall -Werror])
+-m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
++m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([no])])
++AM_MAINTAINER_MODE([enable])
+ AC_PROG_CC
+ AC_PROG_CXX
+ AC_OPENMP
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..bda6985
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+debianization.patch
diff --git a/debian/primesieve-bin.install b/debian/primesieve-bin.install
new file mode 100644
index 0000000..4418774
--- /dev/null
+++ b/debian/primesieve-bin.install
@@ -0,0 +1 @@
+usr/bin/primesieve
diff --git a/debian/primesieve-bin.manpages b/debian/primesieve-bin.manpages
new file mode 100644
index 0000000..a6f17b6
--- /dev/null
+++ b/debian/primesieve-bin.manpages
@@ -0,0 +1 @@
+primesieve.1
diff --git a/debian/primesieve-doc.doc-base b/debian/primesieve-doc.doc-base
new file mode 100644
index 0000000..3b3ff4d
--- /dev/null
+++ b/debian/primesieve-doc.doc-base
@@ -0,0 +1,23 @@
+Document: primesieve
+Title: primesieve: API documentation
+Author: Kim Walisch
+Abstract:
+ primesieve is a C/C++ library for fast prime number generation. primesieve
+ generates primes using a highly optimized implementation of the segmented
+ sieve of Eratosthenes.
+ primesieve generates primes about 50 times faster (single-threaded) than an
+ ordinary C/C++ sieve of Eratosthenes implementation and about 10,000 times
+ faster than trial-division. primesieve outperforms the author's older ecprime
+ (fastest open source prime number generator from 2002 to 2010) by about 30
+ percent and also substantially outperforms primegen the fastest sieve of Atkin
+ implementation on the web.
+ This document describes the API of the primesieve C/C++ library.
+ The source code is distributed under the BSD 2 clause License.
+Section: Science/Mathematics
+
+Format: HTML
+Index: /usr/share/doc/primesieve-doc/html/index.html
+Files: /usr/share/doc/primesieve-doc/html/*.html
+
+Format: PDF
+Files: /usr/share/doc/primesieve-doc/primesieve_refman.pdf
diff --git a/debian/primesieve-doc.docs b/debian/primesieve-doc.docs
new file mode 100644
index 0000000..0e658b7
--- /dev/null
+++ b/debian/primesieve-doc.docs
@@ -0,0 +1,4 @@
+README.md
+README.implementation
+_build/DEBIAN/doc/latex/primesieve_refman.pdf
+_build/DEBIAN/doc/html
diff --git a/debian/primesieve-doc.examples b/debian/primesieve-doc.examples
new file mode 100644
index 0000000..85e3443
--- /dev/null
+++ b/debian/primesieve-doc.examples
@@ -0,0 +1,2 @@
+examples/*
+debian/adhoc/examples/*
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..149bfd3
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,57 @@
+#!/usr/bin/make -f
+
+export DEB_PKG_VERSION = $(shell dpkg-parsechangelog | sed -n -e '/^Version:/s/Version: //p')
+
+## inspired from mpfr material
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+	CFLAGS    += -O0
+	CXXCFLAGS += -O0
+else ifeq ($(DEB_HOST_ARCH),alpha)
+	CFLAGS   += -mieee
+	CXXFLAGS += -mieee
+else ifeq ($(DEB_HOST_ARCH),sha4)
+	CFLAGS   += -mieee
+	CXXFLAGS += -mieee
+else
+	CFLAGS   := $(subst -O2,-O3,$(CFLAGS))
+	CXXFLAGS := $(subst -O2,-O3,$(CXXFLAGS))
+endif
+
+default:
+	@uscan --no-conf --dehs --report || true
+
+%:
+	dh $@ --with autoreconf --builddirectory=_build --parallel
+
+override_dh_auto_configure:
+	dh_auto_configure -- --enable-maintainer-mode
+
+override_dh_auto_build-indep: README.implementation
+	$(MAKE) -f debian/adhoc/Makefile doc
+
+override_dh_auto_test-indep:
+	true
+
+override_dh_prep-arch: README.implementation
+	$(MAKE) -f debian/adhoc/Makefile manpages
+
+override_dh_auto_install-indep:
+	$(MAKE) -C _build install-data-am DESTDIR=$(CURDIR)/debian/tmp
+
+override_dh_installdocs:
+	dh_installdocs -pprimesieve-bin     --link-doc=libprimesieve5
+	dh_installdocs -plibprimesieve5-dbg --link-doc=libprimesieve5
+	dh_installdocs -plibprimesieve5-dev --link-doc=libprimesieve5-dev-common
+	dh_installdocs --remaining-packages
+
+override_dh_compress-indep:
+	dh_compress -X.pdf -Xexamples
+
+override_dh_strip:
+	dh_strip --dbg-package=libprimesieve5-dbg
+
+get-orig-source:
+	uscan --no-conf --download-current-version --compression xz --verbose
+
+README.implementation:
+	cp -p src/primesieve/README README.implementation
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/source/lintian-overrides b/debian/source/lintian-overrides
new file mode 100644
index 0000000..6e8bbf8
--- /dev/null
+++ b/debian/source/lintian-overrides
@@ -0,0 +1,3 @@
+# the upstream source tarball is not (yet) signed: request to the upstream author
+# was sent -- Jerome Benoit <calculus at rrezozer.net>
+debian-watch-may-check-gpg-signature
diff --git a/debian/tests/build-examples b/debian/tests/build-examples
new file mode 100755
index 0000000..c15776e
--- /dev/null
+++ b/debian/tests/build-examples
@@ -0,0 +1,13 @@
+#!/bin/sh
+# autopkgtest check: build and launch program examples
+set -ue
+cd $ADTTMP
+
+cp -prd /usr/share/doc/primesieve-doc/examples .
+cd examples
+
+make -C c check
+
+make -C cpp check
+
+exit 0
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..2a0b35d
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,5 @@
+Tests: make-check
+Depends: primesieve-bin
+
+Tests: build-examples
+Depends: primesieve-doc, libprimesieve-dev, build-essential, pkg-config
diff --git a/debian/tests/make-check b/debian/tests/make-check
new file mode 100755
index 0000000..a893cd8
--- /dev/null
+++ b/debian/tests/make-check
@@ -0,0 +1,8 @@
+#!/bin/sh
+# autopkgtest check based on upstream check ($ make check)
+set -ue
+cd $ADTTMP
+
+primesieve --test
+
+exit 0
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..bc98748
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+opts=dversionmangle=s/\+ds//,uversionmangle=s/-rc/~rc/,repacksuffix=+ds,filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/primesieve-$1\.tar\.gz/ \
+https://github.com/kimwalisch/primesieve/releases .*/v?(\d\S*)\.tar\.gz

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/primesieve.git



More information about the debian-science-commits mailing list