[SCM] Implementation of the FITS WCS standard branch, debian, updated. upstream/4.8.2-6-gd520ef3
Ole Streicher
debian at liska.ath.cx
Tue Nov 29 15:46:31 UTC 2011
The following commit has been merged in the debian branch:
commit fed87e680f6eeaca24ac6eb9ff2c24c3006e964c
Author: Ole Streicher <debian at liska.ath.cx>
Date: Fri Nov 11 19:39:43 2011 +0100
Initial debian packaging files
diff --git a/debian/changelog b/debian/changelog
new file mode 120000
index 0000000..0fad5c2
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1 @@
+changelog.ubuntu
\ No newline at end of file
diff --git a/debian/changelog.debian b/debian/changelog.debian
new file mode 100644
index 0000000..51be4e3
--- /dev/null
+++ b/debian/changelog.debian
@@ -0,0 +1,13 @@
+wcslib (4.8.2-2) unstable; urgency=low
+
+ * Fix "suggest" dependency for wcslib-doc
+ * Remove "help2man" build dependency
+ * Add format version information to copyright file
+
+ -- Ole Streicher <debian at liska.ath.cx> Tue, 09 Oct 2011 18:10:00 +0200
+
+wcslib (4.8.2-1) unstable; urgency=low
+
+ * New package. Closes: #641624
+
+ -- Ole Streicher <debian at liska.ath.cx> Tue, 04 Oct 2011 11:15:00 +0200
diff --git a/debian/changelog.ubuntu b/debian/changelog.ubuntu
new file mode 100644
index 0000000..0cf24a3
--- /dev/null
+++ b/debian/changelog.ubuntu
@@ -0,0 +1,13 @@
+wcslib (4.8.2-2) sid; urgency=low
+
+ * Fix "suggest" dependency for wcslib-doc
+ * Remove "help2man" build dependency
+ * Add format version information to copyright file
+
+ -- Ole Streicher <debian at liska.ath.cx> Tue, 09 Oct 2011 18:10:00 +0200
+
+wcslib (4.8.2-1) sid; urgency=low
+
+ * New package. Closes: #641624
+
+ -- Ole Streicher <debian at liska.ath.cx> Tue, 04 Oct 2011 11:15:00 +0200
diff --git a/debian/changelog~ b/debian/changelog~
new file mode 100644
index 0000000..bd04cd2
--- /dev/null
+++ b/debian/changelog~
@@ -0,0 +1,5 @@
+wcslib (4.8.2-1) unstable; urgency=low
+
+ * New package. Closes: #641624
+
+ -- Ole Streicher <debian at liska.ath.cx> Tue, 04 Oct 2011 11:15:00 +0200
diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..bbff885
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1,3 @@
+config.status
+config.log
+configure
diff --git a/debian/clean~ b/debian/clean~
new file mode 100644
index 0000000..bbff885
--- /dev/null
+++ b/debian/clean~
@@ -0,0 +1,3 @@
+config.status
+config.log
+configure
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..7f8f011
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+7
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..84e7dbf
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,59 @@
+Source: wcslib
+Priority: optional
+Maintainer: Ole Streicher <debian at liska.ath.cx>
+Build-Depends: debhelper (>= 7.0.50), autotools-dev, dh-autoreconf, gfortran, libcfitsio3-dev
+Standards-Version: 3.9.2
+Section: science
+Homepage: http://www.atnf.csiro.au/people/mcalabre/WCS/
+
+Package: libwcs4
+Section: libs
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Implementation of the FITS WCS standard
+ WCSLIB is a C library, supplied with a full set of Fortran wrappers, that
+ implements the "World Coordinate System" (WCS) standard in FITS (Flexible
+ Image Transport System).
+ .
+ The FITS data format is widely used within the international astronomical
+ community, from the radio to gamma-ray regimes, for data interchange and
+ archive, and also increasingly as an online format.
+ .
+ This package contains what you need to run programs that use this
+ library.
+
+Package: wcslib-dev
+Section: libdevel
+Architecture: any
+Depends: ${misc:Depends}, libwcs4 (= ${binary:Version})
+Suggests: wcslib-doc
+Description: Header files and static library for libwcs
+ WCSLIB is a C library, supplied with a full set of Fortran wrappers, that
+ implements the "World Coordinate System" (WCS) standard in FITS (Flexible
+ Image Transport System).
+ .
+ This package contains the static library and the C header files.
+
+Package: wcslib-doc
+Section: doc
+Architecture: all
+Depends: ${misc:Depends}
+Suggests: wcslib-dev
+Description: API documentation for wcslib
+ WCSLIB is a C library, supplied with a full set of Fortran wrappers, that
+ implements the "World Coordinate System" (WCS) standard in FITS (Flexible
+ Image Transport System).
+ .
+ This package contains the API documentation for WCSLIB.
+
+Package: wcslib-tools
+Architecture: any
+Depends: libwcs4 (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
+Description: Command line tools utilizing wcslib
+ WCSLIB is a C library, supplied with a full set of Fortran wrappers, that
+ implements the "World Coordinate System" (WCS) standard in FITS (Flexible
+ Image Transport System).
+ .
+ This package contains the utility programs fitshdr, wcsware, and HPXcvt
+ that are included in wcslib.
+
diff --git a/debian/control~ b/debian/control~
new file mode 100644
index 0000000..9ead081
--- /dev/null
+++ b/debian/control~
@@ -0,0 +1,59 @@
+Source: wcslib
+Priority: extra
+Maintainer: Ole Streicher <debian at liska.ath.cx>
+Build-Depends: debhelper (>= 7.0.50), autotools-dev, dh-autoreconf, gfortran, help2man, libcfitsio3-dev
+Standards-Version: 3.9.2
+Section: science
+Homepage: http://www.atnf.csiro.au/people/mcalabre/WCS/
+
+Package: libwcs4
+Section: libs
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Implementation of the FITS WCS standard
+ WCSLIB is a C library, supplied with a full set of Fortran wrappers, that
+ implements the "World Coordinate System" (WCS) standard in FITS (Flexible
+ Image Transport System).
+ .
+ The FITS data format is widely used within the international astronomical
+ community, from the radio to gamma-ray regimes, for data interchange and
+ archive, and also increasingly as an online format.
+ .
+ This package contains what you need to run programs that use this
+ library.
+
+Package: wcslib-dev
+Section: libdevel
+Architecture: any
+Depends: ${misc:Depends}, libwcs4 (= ${binary:Version})
+Suggests: wcslib-doc
+Description: Header files and static library for libwcs
+ WCSLIB is a C library, supplied with a full set of Fortran wrappers, that
+ implements the "World Coordinate System" (WCS) standard in FITS (Flexible
+ Image Transport System).
+ .
+ This package contains the static library and the C header files.
+
+Package: wcslib-doc
+Section: doc
+Architecture: all
+Depends: ${misc:Depends}
+Suggests: libwcs-dev
+Description: API documentation for wcslib
+ WCSLIB is a C library, supplied with a full set of Fortran wrappers, that
+ implements the "World Coordinate System" (WCS) standard in FITS (Flexible
+ Image Transport System).
+ .
+ This package contains the API documentation for WCSLIB.
+
+Package: wcslib-tools
+Architecture: any
+Depends: libwcs4 (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
+Description: Command line tools utilizing libwcslib
+ WCSLIB is a C library, supplied with a full set of Fortran wrappers, that
+ implements the "World Coordinate System" (WCS) standard in FITS (Flexible
+ Image Transport System).
+ .
+ This package contains the utility programs fitshdr, wcsware, and HPXcvt
+ that are included in wcslib.
+
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..388db51
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,50 @@
+Format: http://anonscm.debian.org/viewvc/dep/web/deps/dep5.mdwn?revision=202
+Upstream-Name: WCSLIB
+Upstram-Author: Mark Calabretta <mcalabre at atnf.csiro.au>
+Source: http://www.atnf.csiro.au/people/mcalabre/WCS/
+
+Files: *
+Copyright: Copyright (C) 1995-2009, Mark Calabretta
+License: LGPL-3
+ WCSLIB 4.4 - an implementation of the FITS WCS standard.
+ Copyright (C) 1995-2009, Mark Calabretta
+ .
+ WCSLIB 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 3 of the License, or (at your option)
+ any later version.
+ .
+ WCSLIB 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, the full text of the GNU Lesser General Public
+ License version 3 can be found in the file
+ `/usr/share/common-licenses/LGPL-3'.
+ .
+ Correspondence concerning WCSLIB may be directed to:
+ Internet email: mcalabre at atnf.csiro.au
+ Postal address: Dr. Mark Calabretta
+ Australia Telescope National Facility, CSIRO
+ PO Box 76
+ Epping NSW 1710
+ AUSTRALIA
+
+
+Files: debian/*
+Copyright: 2011 Ole Streicher <debian at liska.ath.cx>
+License: LGPL-3
+ wcslib 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 3 of the License, or (at your option)
+ any later version.
+ .
+ wcslib 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, the full text of the GNU Lesser General Public
+ License version 3 can be found in the file
+ `/usr/share/common-licenses/LGPL-3'.
diff --git a/debian/copyright~ b/debian/copyright~
new file mode 100644
index 0000000..b009f04
--- /dev/null
+++ b/debian/copyright~
@@ -0,0 +1,47 @@
+This work was packaged for Debian by:
+
+ Ole Streicher <debian at liska.ath.cx> on Wed, 14 Sep 2011 16:31:30 +0200
+
+It was downloaded from http://www.atnf.csiro.au/people/mcalabre/WCS/
+
+Upstream Author(s):
+
+ Mark Calabretta <mcalabre at atnf.csiro.au>
+
+Copyright:
+
+ Copyright (C) 1995-2009, Mark Calabretta
+
+License: LGPL-3
+
+ WCSLIB 4.4 - an implementation of the FITS WCS standard.
+ Copyright (C) 1995-2009, Mark Calabretta
+
+ WCSLIB 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 3 of the License, or (at your option)
+ any later version.
+
+ WCSLIB 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.
+
+ You should have received a copy of the GNU Lesser General Public License
+ along with WCSLIB. If not, see <http://www.gnu.org/licenses/>.
+
+ Correspondence concerning WCSLIB may be directed to:
+ Internet email: mcalabre at atnf.csiro.au
+ Postal address: Dr. Mark Calabretta
+ Australia Telescope National Facility, CSIRO
+ PO Box 76
+ Epping NSW 1710
+ AUSTRALIA
+
+The Debian packaging is:
+
+ Copyright (C) 2011 Ole Streicher <debian at liska.ath.cx>
+
+and is licensed under the GPL version 3,
+see `/usr/share/common-licenses/GPL-3'.
+
diff --git a/debian/libwcs4.dirs b/debian/libwcs4.dirs
new file mode 100644
index 0000000..6845771
--- /dev/null
+++ b/debian/libwcs4.dirs
@@ -0,0 +1 @@
+usr/lib
diff --git a/debian/libwcs4.install b/debian/libwcs4.install
new file mode 100644
index 0000000..b5345ae
--- /dev/null
+++ b/debian/libwcs4.install
@@ -0,0 +1 @@
+usr/lib/libwcs*.so.*
diff --git a/debian/libwcs4.shlibs b/debian/libwcs4.shlibs
new file mode 100644
index 0000000..189e136
--- /dev/null
+++ b/debian/libwcs4.shlibs
@@ -0,0 +1 @@
+libwcs 4 libwcs4 (>= 4.8.1)
diff --git a/debian/patches/add-lm-flag.patch b/debian/patches/add-lm-flag.patch
new file mode 100644
index 0000000..6d5245e
--- /dev/null
+++ b/debian/patches/add-lm-flag.patch
@@ -0,0 +1,13 @@
+Author: Ole Streicher <debian at liska.ath.cx>
+Description: Add the necessary -lm flag for the shared lib.
+--- a/configure.ac
++++ b/configure.ac
+@@ -261,7 +261,7 @@
+ # Covers Linux and Solaris at least.
+ SHRLIB="libwcs.so.$LIBVER"
+ SONAME="libwcs.so.$SHVER"
+- SHRLD="$SHRLD -shared -Wl,-h\$(SONAME)"
++ SHRLD="$SHRLD -shared -Wl,-h\$(SONAME) -lm"
+ SHRLN="libwcs.so"
+ ;;
+ esac
diff --git a/debian/patches/fix-ac.patch b/debian/patches/fix-ac.patch
new file mode 100644
index 0000000..4f4dc20
--- /dev/null
+++ b/debian/patches/fix-ac.patch
@@ -0,0 +1,13 @@
+Author: Ole Streicher <debian at liska.ath.cx>
+Description: Remove the newline within the AC_CONFIG_HEADERS() call. This
+ causes the creation of a file with a wrong filename (newline included in the filename).
+--- a/configure.ac
++++ b/configure.ac
+@@ -518,6 +518,5 @@
+ # Do it.
+ AC_MSG_NOTICE([Configuring files...])
+ AC_CONFIG_FILES([makedefs wcslib.pc])
+-AC_CONFIG_HEADERS([wcsconfig.h wcsconfig_f77.h wcsconfig_tests.h
+- wcsconfig_utils.h])
++AC_CONFIG_HEADERS([wcsconfig.h wcsconfig_f77.h wcsconfig_tests.h wcsconfig_utils.h])
+ AC_OUTPUT
diff --git a/debian/patches/manpages.patch b/debian/patches/manpages.patch
new file mode 100644
index 0000000..368477e
--- /dev/null
+++ b/debian/patches/manpages.patch
@@ -0,0 +1,90 @@
+Author: Ole Streicher <debian at liska.ath.cx>
+Description: Added manpages for fitshdr, wcsware, HPXcvt
+--- a/makedefs.in
++++ b/makedefs.in
+@@ -134,6 +134,7 @@
+ INCLINK := $(DESTDIR)@includedir@/wcslib
+ DOCDIR := $(DESTDIR)@docdir@
+ HTMLDIR := $(DESTDIR)@htmldir@
++ MANDIR := $(DESTDIR)@mandir@
+ PDFDIR := $(DESTDIR)@pdfdir@
+
+ # For putting timestamps in the build log.
+@@ -210,6 +211,7 @@
+ -@ echo ' INCDIR := $(INCDIR)'
+ -@ echo ' INCLINK := $(INCLINK)'
+ -@ echo ' DOCDIR := $(DOCDIR)'
++ -@ echo ' MANDIR := $(MANDIR)'
+ -@ echo ' HTMLDIR := $(HTMLDIR)'
+ -@ echo ' PDFDIR := $(PDFDIR)'
+ -@ echo ' TIMER := $(TIMER)'
+--- a/utils/GNUmakefile
++++ b/utils/GNUmakefile
+@@ -23,14 +23,17 @@
+ include ../makedefs
+
+ UTILS := fitshdr
++MAN := fitshdr.1
+
+ ifneq "$(CFITSIOINC)" ""
+ ifneq "$(CFITSIOLIB)" ""
+ UTILS += HPXcvt wcsware
++ MAN += HPXcvt.1 wcsware.1
+
+ ifneq "$(PGPLOTINC)" ""
+ ifneq "$(PGPLOTLIB)" ""
+ UTILS += wcsgrid
++ MAN += wcsgrid.1
+ endif
+ endif
+ endif
+@@ -54,7 +57,7 @@
+
+ .PHONY : build clean cleaner cleanest distclean install realclean
+
+-build : $(UTILS)
++build : $(UTILS) $(MAN)
+
+ fitshdr : fitshdr.c
+ -@ echo ''
+@@ -91,7 +94,7 @@
+ - $(RM) -r *.o *.i a.out core *.dSYM $(EXTRA_CLEAN)
+
+ cleanest distclean realclean : cleaner
+- - $(RM) $(UTILS)
++ - $(RM) $(UTILS) $(MAN)
+
+ $(PGSBOXLIB) :
+ -@ echo ''
+@@ -106,6 +109,10 @@
+ $(INSTALL) -d -m 2775 $(BINDIR) ; \
+ fi
+ $(INSTALL) -m 755 $(UTILS) $(BINDIR)
++ - if [ ! -d "$(MANDIR)" ] ; then \
++ $(INSTALL) -d -m 2775 $(MANDIR)/man1 ; \
++ fi
++ $(INSTALL) -m 755 $(MAN) $(MANDIR)/man1
+
+ GNUmakefile : ../makedefs ;
+
+@@ -117,3 +124,20 @@
+ fitshdr : wcsconfig.h wcsconfig_utils.h
+ wcsware : getwcstab.h wcs.h wcsfix.h wcshdr.h
+ wcsgrid : cpgsbox.h getwcstab.h wcs.h wcsfix.h wcshdr.h
++
++fitshdr.1 : fitshdr
++ help2man --no-discard-stderr --version-string=$(LIBVER) \
++ -n "List headers from a FITS file" -N ./$< > $@
++
++wcsware.1 : wcsware
++ help2man --no-discard-stderr --version-string=$(LIBVER) \
++ -n "Extract WCS keywords for an image" -N ./$< > $@
++
++wcsgrid.1 : wcsgrid
++ help2man --no-discard-stderr --version-string=$(LIBVER) \
++ -n "Extract WCS keywords for an image" -N ./$< > $@
++
++HPXcvt.1 : HPXcvt
++ help2man --no-discard-stderr --version-string=$(LIBVER) \
++ -n "Reorganise HEALPix data into a 2-D FITS image" -N ./$< > $@
++
diff --git a/debian/patches/manpages.patch~ b/debian/patches/manpages.patch~
new file mode 100644
index 0000000..4937d08
--- /dev/null
+++ b/debian/patches/manpages.patch~
@@ -0,0 +1,90 @@
+Author: Ole Streicher <debian at liska.ath.cx>
+Description: Added manpages for fitshdr, wcsware, HPXcvt
+--- a/makedefs.in
++++ b/makedefs.in
+@@ -134,6 +134,7 @@
+ INCLINK := $(DESTDIR)@includedir@/wcslib
+ DOCDIR := $(DESTDIR)@docdir@
+ HTMLDIR := $(DESTDIR)@htmldir@
++ MANDIR := $(DESTDIR)@mandir@
+ PDFDIR := $(DESTDIR)@pdfdir@
+
+ # For putting timestamps in the build log.
+@@ -210,6 +211,7 @@
+ -@ echo ' INCDIR := $(INCDIR)'
+ -@ echo ' INCLINK := $(INCLINK)'
+ -@ echo ' DOCDIR := $(DOCDIR)'
++ -@ echo ' DOCDIR := $(MANDIR)'
+ -@ echo ' HTMLDIR := $(HTMLDIR)'
+ -@ echo ' PDFDIR := $(PDFDIR)'
+ -@ echo ' TIMER := $(TIMER)'
+--- a/utils/GNUmakefile
++++ b/utils/GNUmakefile
+@@ -23,14 +23,17 @@
+ include ../makedefs
+
+ UTILS := fitshdr
++MAN := fitshdr.1
+
+ ifneq "$(CFITSIOINC)" ""
+ ifneq "$(CFITSIOLIB)" ""
+ UTILS += HPXcvt wcsware
++ MAN += HPXcvt.1 wcsware.1
+
+ ifneq "$(PGPLOTINC)" ""
+ ifneq "$(PGPLOTLIB)" ""
+ UTILS += wcsgrid
++ MAN += wcsgrid.1
+ endif
+ endif
+ endif
+@@ -54,7 +57,7 @@
+
+ .PHONY : build clean cleaner cleanest distclean install realclean
+
+-build : $(UTILS)
++build : $(UTILS) $(MAN)
+
+ fitshdr : fitshdr.c
+ -@ echo ''
+@@ -91,7 +94,7 @@
+ - $(RM) -r *.o *.i a.out core *.dSYM $(EXTRA_CLEAN)
+
+ cleanest distclean realclean : cleaner
+- - $(RM) $(UTILS)
++ - $(RM) $(UTILS) $(MAN)
+
+ $(PGSBOXLIB) :
+ -@ echo ''
+@@ -106,6 +109,10 @@
+ $(INSTALL) -d -m 2775 $(BINDIR) ; \
+ fi
+ $(INSTALL) -m 755 $(UTILS) $(BINDIR)
++ - if [ ! -d "$(MANDIR)" ] ; then \
++ $(INSTALL) -d -m 2775 $(MANDIR)/man1 ; \
++ fi
++ $(INSTALL) -m 755 $(MAN) $(MANDIR)/man1
+
+ GNUmakefile : ../makedefs ;
+
+@@ -117,3 +124,20 @@
+ fitshdr : wcsconfig.h wcsconfig_utils.h
+ wcsware : getwcstab.h wcs.h wcsfix.h wcshdr.h
+ wcsgrid : cpgsbox.h getwcstab.h wcs.h wcsfix.h wcshdr.h
++
++fitshdr.1 : fitshdr
++ help2man --no-discard-stderr --version-string=$(LIBVER) \
++ -n "List headers from a FITS file" -N ./$< > $@
++
++wcsware.1 : wcsware
++ help2man --no-discard-stderr --version-string=$(LIBVER) \
++ -n "Extract WCS keywords for an image" -N ./$< > $@
++
++wcsgrid.1 : wcsgrid
++ help2man --no-discard-stderr --version-string=$(LIBVER) \
++ -n "Extract WCS keywords for an image" -N ./$< > $@
++
++HPXcvt.1 : HPXcvt
++ help2man --no-discard-stderr --version-string=$(LIBVER) \
++ -n "Reorganise HEALPix data into a 2-D FITS image" -N ./$< > $@
++
diff --git a/debian/patches/remove-AC_CANONICAL_HOST-reference.patch b/debian/patches/remove-AC_CANONICAL_HOST-reference.patch
new file mode 100644
index 0000000..0244ea4
--- /dev/null
+++ b/debian/patches/remove-AC_CANONICAL_HOST-reference.patch
@@ -0,0 +1,39 @@
+Author: Ole Streicher <debian at liska.ath.cx>
+Description: Remove AC_CANONICAL_HOST call so that we do not need to call
+ config.guess or config.sub. These two files are outdated in the distribution
+ and will be deleted in the "clean" step.
+--- a/configure.ac
++++ b/configure.ac
+@@ -24,12 +24,6 @@
+ AC_CONFIG_SRCDIR([C/wcs.h])
+ AC_CONFIG_AUX_DIR([config])
+
+-# Get the system type.
+-AC_CANONICAL_BUILD
+-ARCH="${build_cpu}-$build_os"
+-AC_SUBST([ARCH])
+-
+-
+ # Look for Flex.
+ AC_CHECK_PROG([FLEX], [flex], [flex], [], [], [])
+ if test "x$FLEX" = xflex ; then
+--- a/makedefs.in
++++ b/makedefs.in
+@@ -80,9 +80,6 @@
+ LIBVER := @LIBVER@
+ WCSLIBPKG := wcslib- at PACKAGE_VERSION@
+
+-# System architecture.
+- ARCH := @ARCH@
+-
+ # Flex and options.
+ FLEX := @FLEX@
+ FLFLAGS :=
+@@ -189,7 +186,6 @@
+ -@ echo ' MAKEFLAGS := $(MAKEFLAGS)'
+ -@ echo ''
+ -@ echo 'For building and installing $(WCSLIBPKG)...'
+- -@ echo ' ARCH := $(ARCH)'
+ -@ echo ' FLEX := $(FLEX)'
+ -@ echo ' FLFLAGS := $(FLFLAGS)'
+ -@ echo ' CPP := $(CPP)'
diff --git a/debian/patches/remove-x11-tests.patch b/debian/patches/remove-x11-tests.patch
new file mode 100644
index 0000000..438df87
--- /dev/null
+++ b/debian/patches/remove-x11-tests.patch
@@ -0,0 +1,55 @@
+Author: Ole Streicher <debian at liska.ath.cx>
+Description: Remove tests that just output to the X11 screen to be independent
+ of an X server.
+--- a/C/GNUmakefile
++++ b/C/GNUmakefile
+@@ -92,7 +92,7 @@
+ # Add test programs that require PGPLOT if we have it.
+ ifneq "$(PGPLOTINC)" ""
+ ifneq "$(PGPLOTLIB)" ""
+- TESTS += $(TEST_P) $(TEST_B)
++# TESTS += $(TEST_P) $(TEST_B)
+ endif
+ endif
+
+--- a/Fortran/GNUmakefile
++++ b/Fortran/GNUmakefile
+@@ -87,7 +87,7 @@
+ # Add test programs that require PGPLOT if we have it.
+ ifneq "$(PGPLOTINC)" ""
+ ifneq "$(PGPLOTLIB)" ""
+- TESTS += $(TEST_P) $(TEST_B)
++# TESTS += $(TEST_P) $(TEST_B)
+ endif
+ endif
+
+--- a/pgsbox/GNUmakefile
++++ b/pgsbox/GNUmakefile
+@@ -153,25 +153,9 @@
+ - $(RM) $(PICLIB) libpgsbox-*.a libpgsbox.so.* libpgsbox.*.dylib
+
+ check test : tests
+- -@ echo ''
+- -@ $(TIMER)
+- -@ echo 'Running the PGSBOX test program, PGTEST:'
+- -@ if [ '$(MODE)' = interactive ] ; then \
+- ./pgtest ; \
+- else \
+- ./pgtest < /dev/null ; \
+- fi
+- -@ echo ''
+- -@ echo ''
+- -@ $(TIMER)
+- -@ echo 'Running the cpgsbox() test program, cpgtest:'
+- -@ if [ '$(MODE)' = interactive ] ; then \
+- ./cpgtest ; \
+- else \
+- ./cpgtest < /dev/null ; \
+- fi
++ -@ echo 'Skipping tests for pgsbox'
+
+-tests : wcslib pgtest cpgtest
++tests : wcslib
+
+ wcslib : $(WCSLIB)
+
diff --git a/debian/patches/rename-CHANGES.patch b/debian/patches/rename-CHANGES.patch
new file mode 100644
index 0000000..e8d22b6
--- /dev/null
+++ b/debian/patches/rename-CHANGES.patch
@@ -0,0 +1,15 @@
+Author: Ole Streicher <debian at liska.ath.cx>
+Description: Rename CHANGES to changelog, accoring to Debian Policy Manual
+ section 12.7
+--- a/GNUmakefile
++++ b/GNUmakefile
+@@ -69,7 +69,8 @@
+ - if [ ! -d "$(DOCDIR)" ] ; then \
+ $(INSTALL) -d -m 2775 $(DOCDIR) ; \
+ fi
+- $(INSTALL) -m 444 CHANGES COPYING* README $(DOCDIR)
++ $(INSTALL) -m 444 README $(DOCDIR)
++ $(INSTALL) -m 444 CHANGES $(DOCDIR)/changelog
+ - if [ ! -d "$(PDFDIR)" ] ; then \
+ $(INSTALL) -d -m 2775 $(PDFDIR) ; \
+ fi
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..c4cc458
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+remove-x11-tests.patch
diff --git a/debian/patches/series~ b/debian/patches/series~
new file mode 100644
index 0000000..236682e
--- /dev/null
+++ b/debian/patches/series~
@@ -0,0 +1,4 @@
+manpages.patch
+remove-x11-tests.patch
+fix-ac.patch
+add-lm-flag.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..210615e
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,16 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+
+# Uncomment this to turn on verbose mode.
+export DH_VERBOSE=1
+
+%:
+ dh $@ --with autoreconf
+
+override_dh_auto_configure:
+ dh_auto_configure -- --docdir=$$\{prefix\}/share/doc/wcslib-doc
diff --git a/debian/rules~ b/debian/rules~
new file mode 100755
index 0000000..2195ca5
--- /dev/null
+++ b/debian/rules~
@@ -0,0 +1,20 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+
+# Uncomment this to turn on verbose mode.
+export DH_VERBOSE=1
+
+%:
+ dh $@
+
+build:
+ dh_testdir
+ autoconf
+ dh_auto_configure
+ dh_auto_build
+ dh_auto_test
\ No newline at end of file
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..0ddd706
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,4 @@
+# format version number, currently 3; this line is compulsory!
+version=3
+
+ftp://ftp.atnf.csiro.au/pub/software/wcslib/wcslib-(.*).tar.bz2
diff --git a/debian/wcslib-dev.dirs b/debian/wcslib-dev.dirs
new file mode 100644
index 0000000..4418816
--- /dev/null
+++ b/debian/wcslib-dev.dirs
@@ -0,0 +1,2 @@
+usr/lib
+usr/include
diff --git a/debian/wcslib-dev.install b/debian/wcslib-dev.install
new file mode 100644
index 0000000..07b196b
--- /dev/null
+++ b/debian/wcslib-dev.install
@@ -0,0 +1,3 @@
+usr/lib/libwcs.so
+usr/lib/libwcs*.a
+usr/include/*
diff --git a/debian/wcslib-doc.dirs b/debian/wcslib-doc.dirs
new file mode 100644
index 0000000..5952c15
--- /dev/null
+++ b/debian/wcslib-doc.dirs
@@ -0,0 +1,2 @@
+usr/share/doc/wcslib-doc
+usr/share/doc/wcslib-doc/html
diff --git a/debian/wcslib-doc.doc-base b/debian/wcslib-doc.doc-base
new file mode 100644
index 0000000..1c6343f
--- /dev/null
+++ b/debian/wcslib-doc.doc-base
@@ -0,0 +1,16 @@
+Document: wcslib
+Title: WCSLIB and PGSBOX documentation
+Author: Mark Calabretta <mcalabre at atnf.csiro.au>
+Section: Programming
+Abstract: WCSLIB is a C library, supplied with a full set of Fortran
+ wrappers, that implements the "World Coordinate System" (WCS) standard in
+ FITS (Flexible Image Transport System). It also includes a "PGPLOT"-based
+ routine, for drawing general curvilinear coordinate graticules and a number
+ of utility programs.
+
+Format: PDF
+Files: /usr/share/doc/wcslib-doc/wcslib.pdf.gz
+
+Format: HTML
+Index: /usr/share/doc/wcslib-doc/html/index.html
+Files: /usr/share/doc/wcslib-doc/html/*.html
diff --git a/debian/wcslib-doc.install b/debian/wcslib-doc.install
new file mode 100644
index 0000000..8f5ab93
--- /dev/null
+++ b/debian/wcslib-doc.install
@@ -0,0 +1,2 @@
+usr/share/doc/wcslib-doc/wcslib.pdf
+usr/share/doc/wcslib-doc/html/*
diff --git a/debian/wcslib-tools.install b/debian/wcslib-tools.install
new file mode 100644
index 0000000..9aea551
--- /dev/null
+++ b/debian/wcslib-tools.install
@@ -0,0 +1,6 @@
+usr/bin/fitshdr
+usr/bin/HPXcvt
+usr/bin/wcsware
+usr/share/man/man1/fitshdr.*
+usr/share/man/man1/HPXcvt.*
+usr/share/man/man1/wcsware.*
--
Implementation of the FITS WCS standard
More information about the debian-science-commits
mailing list