[med-svn] [Git][med-team/libgzstream][master] 12 commits: Watchfile using mode=git
Andreas Tille (@tille)
gitlab at salsa.debian.org
Fri Sep 10 08:27:44 BST 2021
Andreas Tille pushed to branch master at Debian Med / libgzstream
Commits:
8ec05117 by Andreas Tille at 2021-09-10T08:11:43+02:00
Watchfile using mode=git
- - - - -
99fde5ae by Andreas Tille at 2021-09-10T08:11:57+02:00
routine-update: Standards-Version: 4.6.0
- - - - -
54621fab by Andreas Tille at 2021-09-10T08:12:00+02:00
Remove Section on libgzstream0 that duplicates source.
Changes-By: lintian-brush
Fixes: lintian: binary-control-field-duplicates-source
See-also: https://lintian.debian.org/tags/binary-control-field-duplicates-source.html
- - - - -
f5215a15 by Andreas Tille at 2021-09-10T08:12:03+02:00
Apply multi-arch hints.
+ libgzstream-dev, libgzstream0: Add Multi-Arch: same.
Changes-By: apply-multiarch-hints
- - - - -
ce91e19c by Andreas Tille at 2021-09-10T08:13:44+02:00
New upstream version 1.5+git20171107.9a20658
- - - - -
24252284 by Andreas Tille at 2021-09-10T08:13:44+02:00
Update upstream source from tag 'upstream/1.5+git20171107.9a20658'
Update to upstream version '1.5+git20171107.9a20658'
with Debian dir 968ec3523a4aa9b40b53ebac06c3b2c338dcb443
- - - - -
9d80b37c by Andreas Tille at 2021-09-10T08:15:33+02:00
Refresh patches
- - - - -
f434fbf1 by Andreas Tille at 2021-09-10T08:17:42+02:00
Make sure clean target will not fail
- - - - -
b4bf0792 by Andreas Tille at 2021-09-10T09:08:09+02:00
Re-add "Section: libs"
- - - - -
956a6a38 by Andreas Tille at 2021-09-10T09:08:48+02:00
Ignore upstream Makefile install since it does not respect $(PREFIX)
- - - - -
3f1f2633 by Andreas Tille at 2021-09-10T09:23:10+02:00
No need to exclude any files any more
- - - - -
33f34591 by Andreas Tille at 2021-09-10T09:24:03+02:00
Upload to unstable
- - - - -
11 changed files:
- + .gitignore
- Makefile
- + README.md
- debian/changelog
- debian/control
- debian/copyright
- debian/patches/fix_makefile.patch
- debian/patches/hardening.patch
- debian/patches/shared_lib.patch
- debian/rules
- debian/watch
Changes:
=====================================
.gitignore
=====================================
@@ -0,0 +1 @@
+*.o
=====================================
Makefile
=====================================
@@ -59,6 +59,12 @@ test: test_gzip test_gunzip
rm gz.tmp.gz gz.tmp
# *** O.K. Test finished successfully. ***
+install: libgzstream.a test
+ cp libgzstream.a /usr/lib
+ cp gzstream.h /usr/include
+ chmod o+r /usr/include/gzstream.h
+ # *** O.K. Installation finished successfully. ***
+
gzstream.o : gzstream.C gzstream.h
${CXX} ${CPPFLAGS} -c -o gzstream.o gzstream.C
@@ -83,6 +89,9 @@ clean :
cleanall :
rm *.o libgzstream.a test_gzip test_gunzip
+uninstall:
+ rm /usr/include/gzstream.h /usr/lib/libgzstream.a
+
# ============================================================================
# EOF
=====================================
README.md
=====================================
@@ -0,0 +1,45 @@
+gzstream
+========
+
+This is only a mirror of the original gzstream-library developed by The Computational Geometry Group at UNC Chapel Hill. For more information about this lib, see the [cs.unc.ed homepage](http://www.cs.unc.edu/Research/compgeom/gzstream/)
+
+installation
+------------
+
+to install please make sure you have zlib installed. In ubuntu its included in package `zlib1g-dev`.
+Download the project or clone it with
+```
+git clone https://github.com/kanedo/gzstream.git
+```
+
+change into the dir
+```
+cd gzstream
+```
+now type
+```
+sudo make install
+```
+to install gzstream.
+
+This will will compile the gzstream library, test it and install it to the folllowing locations:
+`/usr/include/gzstream.h`
+`/usr/lib/libgzstream.a`
+
+remove library
+--------------
+
+To remove the library just use the make file and type
+```
+sudo make uninstall
+```
+
+usage
+-----
+
+To use the library with `Make` make sure you add `-lgzstream` and `-lz` to your `LDFLAGS`.
+
+FAQ
+---
+I get `undefined reference to gzstream` error:
+make sure you add the LDFlags at the end
=====================================
debian/changelog
=====================================
@@ -1,9 +1,14 @@
-libgzstream (1.5+dfsg-5.1) UNRELEASED; urgency=medium
+libgzstream (1.5+git20171107.9a20658-1) unstable; urgency=medium
- * Non-maintainer upload.
- * Fix watchfile to detect new versions on github (routine-update)
+ * Watchfile using mode=git
+ * Standards-Version: 4.6.0 (routine-update)
+ * Remove Section on libgzstream0 that duplicates source.
+ * Apply multi-arch hints.
+ + libgzstream-dev, libgzstream0: Add Multi-Arch: same.
+ * Make sure clean target will not fail
+ * Ignore upstream Makefile install since it does not respect $(PREFIX)
- -- Steffen Moeller <moeller at debian.org> Thu, 02 Sep 2021 14:54:38 +0200
+ -- Andreas Tille <tille at debian.org> Fri, 10 Sep 2021 09:23:29 +0200
libgzstream (1.5+dfsg-5) unstable; urgency=medium
=====================================
debian/control
=====================================
@@ -6,7 +6,7 @@ Priority: optional
Build-Depends: debhelper-compat (= 13),
d-shlibs,
zlib1g-dev
-Standards-Version: 4.5.0
+Standards-Version: 4.6.0
Vcs-Browser: https://salsa.debian.org/med-team/libgzstream
Vcs-Git: https://salsa.debian.org/med-team/libgzstream.git
Homepage: https://www.cs.unc.edu/Research/compgeom/gzstream/
@@ -17,6 +17,7 @@ Architecture: any
Section: libs
Depends: ${shlibs:Depends},
${misc:Depends}
+Multi-Arch: same
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.
@@ -31,6 +32,7 @@ Depends: ${shlibs:Depends},
libgzstream0 (= ${binary:Version})
Breaks: libxdmf-dev (<< 2.1.dfsg.1-14)
Replaces: libxdmf-dev (<< 2.1.dfsg.1-14)
+Multi-Arch: same
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.
=====================================
debian/copyright
=====================================
@@ -2,7 +2,6 @@ Format: https://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
=====================================
debian/patches/fix_makefile.patch
=====================================
@@ -4,7 +4,7 @@ Description: Fix clean target of Makefile
--- a/Makefile
+++ b/Makefile
-@@ -78,10 +78,10 @@ test_gunzip : test_gunzip.o libgzstream.
+@@ -84,10 +84,10 @@ test_gunzip : test_gunzip.o libgzstream.
${CXX} -o test_gunzip test_gunzip.o ${LDFLAGS}
clean :
@@ -15,5 +15,5 @@ Description: Fix clean target of Makefile
- rm *.o libgzstream.a test_gzip test_gunzip
+ rm -f *.o libgzstream.a test_gzip test_gunzip
- # ============================================================================
- # EOF
+ uninstall:
+ rm /usr/include/gzstream.h /usr/lib/libgzstream.a
=====================================
debian/patches/hardening.patch
=====================================
@@ -15,8 +15,8 @@ Description: Propagate hardening options
AR = ar cr
# ----------------------------------------------------------------------------
-@@ -62,13 +62,13 @@ test: test_gzip test_gunzip
- # *** O.K. Test finished successfully. ***
+@@ -68,13 +68,13 @@ install: libgzstream.a test
+ # *** O.K. Installation finished successfully. ***
gzstream.o : gzstream.C gzstream.h
- ${CXX} ${CPPFLAGS} -c -o gzstream.o gzstream.C
=====================================
debian/patches/shared_lib.patch
=====================================
@@ -31,7 +31,7 @@ Description: Enable building dynamic library
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
+@@ -77,6 +79,11 @@ test_gunzip.o : test_gunzip.C gzstream.h
libgzstream.a : gzstream.o
${AR} libgzstream.a gzstream.o
=====================================
debian/rules
=====================================
@@ -17,6 +17,12 @@ override_dh_clean:
dh_clean
rm -rf $(TMPLIBS)
+override_dh_auto_clean:
+ dh_auto_clean || true # In clean stage the Makefile is not patched yet and thus might stumble upon removal of not existing files
+
+override_dh_auto_install:
+ echo 'Ignore upstream Makefile install since it does not respect $$(PREFIX)'
+
override_dh_install:
mkdir -p $(TMPLIBS)
mv libgzstream.a $(TMPLIBS)
=====================================
debian/watch
=====================================
@@ -1,7 +1,10 @@
version=4
-opts="repacksuffix=+dfsg,dversionmangle=auto,repack,compression=xz" \
- https://github.com/kanedo/gzstream/releases .*/v?@ANY_VERSION@@ARCHIVE_EXT@
+opts="mode=git,pretty=1.5+git%cd.%h" \
+ https://github.com/kanedo/gzstream.git HEAD
+
+#opts="repacksuffix=+dfsg,dversionmangle=auto,repack,compression=xz" \
+# https://github.com/kanedo/gzstream/tags (?:.*?/)?v at ANY_VERSION@@ARCHIVE_EXT@
# Asked for release tags
# https://github.com/kanedo/gzstream/issues/2
View it on GitLab: https://salsa.debian.org/med-team/libgzstream/-/compare/99c6f097213bab3356e445d669c1beda12f063e8...33f34591577ff2472960138f874620dce7422390
--
View it on GitLab: https://salsa.debian.org/med-team/libgzstream/-/compare/99c6f097213bab3356e445d669c1beda12f063e8...33f34591577ff2472960138f874620dce7422390
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20210910/15b4042d/attachment-0001.htm>
More information about the debian-med-commit
mailing list