This is an automated email from the git hooks/post-receive script. tille pushed a commit to branch master in repository libgzstream.
commit 1956723fbf9f4132d47ac677dac8cc5c3f7e4278 Author: Andreas Tille <[email protected]> Date: Wed Mar 30 08:55:00 2016 +0200 Add initial packaging --- debian/changelog | 5 +++++ debian/clean | 4 ++++ debian/compat | 1 + debian/control | 35 ++++++++++++++++++++++++++++++ debian/copyright | 27 +++++++++++++++++++++++ debian/patches/fix_makefile.patch | 19 +++++++++++++++++ debian/patches/hardening.patch | 17 +++++++++++++++ debian/patches/series | 3 +++ debian/patches/shared_lib.patch | 45 +++++++++++++++++++++++++++++++++++++++ debian/rules | 31 +++++++++++++++++++++++++++ debian/source/format | 1 + debian/watch | 4 ++++ 12 files changed, 192 insertions(+) diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..6941245 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +libgzstream (1.5+dfsg-1) UNRELEASED; urgency=medium + + * Initial release (Closes: #<bug>) + + -- Andreas Tille <[email protected]> Tue, 29 Mar 2016 22:11:29 +0200 diff --git a/debian/clean b/debian/clean new file mode 100644 index 0000000..dc84abc --- /dev/null +++ b/debian/clean @@ -0,0 +1,4 @@ +*.a +*.so* +test_gzip +test_gunzip 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..2139606 --- /dev/null +++ b/debian/control @@ -0,0 +1,35 @@ +Source: libgzstream +Maintainer: Debian Med Packaging Team <[email protected]> +Uploaders: Andreas Tille <[email protected]> +Section: libs +Priority: optional +Build-Depends: debhelper (>= 9), + d-shlibs, + zlib1g-dev +Standards-Version: 3.9.7 +Vcs-Browser: https://anonscm.debian.org/cgit/debian-med/libgzstream.git +Vcs-Git: https://anonscm.debian.org/git/debian-med/libgzstream.git +Homepage: http://www.cs.unc.edu/Research/compgeom/gzstream/ + +Package: libgzstream0 +Section: libs +Architecture: any +Depends: ${shlibs:Depends}, + ${misc:Depends} +Description: provide functionality of zlib C-library in a C++ iostream + Gzstream is a small C++ library, basically just a wrapper, that provides + the functionality of the zlib C-library in a C++ iostream. + . + This package contains the dynamic library. + +Package: libgzstream-dev +Section: libdevel +Architecture: any +Depends: ${shlibs:Depends}, + ${misc:Depends}, + libgzstream0 (= ${binary:Version}) +Description: provide functionality of zlib C-library in a C++ iostream (development) + Gzstream is a small C++ library, basically just a wrapper, that provides + the functionality of the zlib C-library in a C++ iostream. + . + This package contains the static library and header files. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..e6e63f6 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,27 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Gzstream +Source: http://www.cs.unc.edu/Research/compgeom/gzstream/gzstream.tgz + alternatively https://github.com/kanedo/gzstream +Files-Excluded: *.o + +Files: * +Copyright: 2001-2003 Deepak Bandyopadhyay, Lutz Kettner +License: LGPL-2.1+ + +Files: debian/* +Copyright: 2016 Andreas Tille <[email protected]> +License: LGPL-2.1+ + +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 (at your option) 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. + . + On Debian systems you can find a copy of the full text of the GNU Lesser + General Public License at /usr/share/common-licenses/LGPL-2.1. diff --git a/debian/patches/fix_makefile.patch b/debian/patches/fix_makefile.patch new file mode 100644 index 0000000..44701d7 --- /dev/null +++ b/debian/patches/fix_makefile.patch @@ -0,0 +1,19 @@ +Author: Andreas Tille <[email protected]> +Last-Update: Tue, 29 Mar 2016 22:11:29 +0200 +Description: Fix clean target of Makefile + +--- a/Makefile ++++ b/Makefile +@@ -78,10 +78,10 @@ test_gunzip : test_gunzip.o libgzstream. + ${CXX} -o test_gunzip test_gunzip.o ${LDFLAGS} + + clean : +- rm *.o ++ rm -f *.o + + cleanall : +- rm *.o libgzstream.a test_gzip test_gunzip ++ rm -f *.o libgzstream.a test_gzip test_gunzip + + # ============================================================================ + # EOF diff --git a/debian/patches/hardening.patch b/debian/patches/hardening.patch new file mode 100644 index 0000000..ec86c72 --- /dev/null +++ b/debian/patches/hardening.patch @@ -0,0 +1,17 @@ +Author: Andreas Tille <[email protected]> +Last-Update: Tue, 29 Mar 2016 22:11:29 +0200 +Description: Propagate hardening options + +--- a/Makefile ++++ b/Makefile +@@ -37,8 +37,8 @@ SOVERSION=0 + # CXX = CC -n32 -LANG:std # for SGI Irix 6.5, MIPSpro CC version 7.30 + CXX = g++ # for Linux RedHat 6.1, g++ version 2.95.2 + +-CPPFLAGS = -I. -O +-LDFLAGS = -L. -lgzstream -lz ++CPPFLAGS+= -I. -O ++LDFLAGS += -L. -lgzstream -lz + AR = ar cr + + # ---------------------------------------------------------------------------- diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..7328ad1 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1,3 @@ +fix_makefile.patch +shared_lib.patch +hardening.patch diff --git a/debian/patches/shared_lib.patch b/debian/patches/shared_lib.patch new file mode 100644 index 0000000..49f155b --- /dev/null +++ b/debian/patches/shared_lib.patch @@ -0,0 +1,45 @@ +Author: Andreas Tille <[email protected]> +Last-Update: Tue, 29 Mar 2016 22:11:29 +0200 +Description: Enable building dynamic library + +--- a/Makefile ++++ b/Makefile +@@ -24,6 +24,8 @@ + # + # ============================================================================ + ++SOVERSION=0 ++ + # ---------------------------------------------------------------------------- + # adapt these settings to your need: + # add '-DGZSTREAM_NAMESPACE=name' to CPPFLAGS to place the classes +@@ -47,14 +49,14 @@ AR = ar cr + # make cleanall; removes temporary files, the library, and programs + # ---------------------------------------------------------------------------- + +-default: libgzstream.a ++default: libgzstream.a libgzstream.so + + test: test_gzip test_gunzip +- ./test_gzip COPYING.LIB gz.tmp.gz ++ LD_LIBRARY_PATH=".:$$LD_LIBRARY_PATH" ./test_gzip COPYING.LIB gz.tmp.gz + gunzip gz.tmp.gz + diff COPYING.LIB gz.tmp + gzip gz.tmp +- ./test_gunzip gz.tmp.gz gz.tmp ++ LD_LIBRARY_PATH=".:$$LD_LIBRARY_PATH" ./test_gunzip gz.tmp.gz gz.tmp + diff COPYING.LIB gz.tmp + rm gz.tmp.gz gz.tmp + # *** O.K. Test finished successfully. *** +@@ -71,6 +73,11 @@ test_gunzip.o : test_gunzip.C gzstream.h + libgzstream.a : gzstream.o + ${AR} libgzstream.a gzstream.o + ++libgzstream.so : gzstream.C gzstream.h ++ ${CXX} ${CPPFLAGS} -fPIC -c -o gzstream.o gzstream.C ++ ${CXX} ${LDFLAGS} -shared -Wl,-soname,$@.$(SOVERSION) -o $@.$(SOVERSION) gzstream.o ++ ln -s $@.$(SOVERSION) $@ ++ + test_gzip : test_gzip.o libgzstream.a + ${CXX} -o test_gzip test_gzip.o ${LDFLAGS} + diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..28d282a --- /dev/null +++ b/debian/rules @@ -0,0 +1,31 @@ +#!/usr/bin/make -f + +# DH_VERBOSE := 1 + +# export DEB_BUILD_MAINT_OPTIONS = hardening=+all +# --> g++ -o test_gzip test_gzip.o -fPIE -pie -Wl,-z,relro -Wl,-z,now -L. -lgzstream -lz +# /usr/bin/ld: test_gzip.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC + +TMPLIBS=debian/tmplibs + +%: + dh $@ + +override_dh_clean: + dh_clean + rm -rf $(TMPLIBS) + +override_dh_install: + mkdir -p $(TMPLIBS) + mv libgzstream.a $(TMPLIBS) + mv libgzstream.so* $(TMPLIBS) + d-shlibmove --commit \ + --multiarch \ + --devunversioned \ + --exclude-la \ + --movedev *.h usr/include \ + debian/tmplibs/*.so + +get-orig-source: + wget -O ../gzstream.tgz http://www.cs.unc.edu/Research/compgeom/gzstream/gzstream.tgz + mk-origtargz --repack --compress xz gzstream.tgz 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/watch b/debian/watch new file mode 100644 index 0000000..7446cd8 --- /dev/null +++ b/debian/watch @@ -0,0 +1,4 @@ +# Upstream does not provide a versioned tarball and +# the code copy at Github +# https://github.com/kanedo/gzstream +# does not set release tags -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/libgzstream.git _______________________________________________ debian-med-commit mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-med-commit
