diff -Nru starlink-pal-0.3.0/debian/changelog starlink-pal-0.3.0/debian/changelog --- starlink-pal-0.3.0/debian/changelog 2013-06-24 16:15:00.000000000 +0000 +++ starlink-pal-0.3.0/debian/changelog 2013-11-30 12:54:38.000000000 +0000 @@ -1,3 +1,9 @@ +starlink-pal (0.3.0-3) unstable; urgency=low + + * Build with erfa instead of iausofa. + + -- Ole Streicher Sat, 30 Nov 2013 13:27:20 +0100 + starlink-pal (0.3.0-2) unstable; urgency=low * Use pdflatex instead of pslatex. Closes: #713264 diff -Nru starlink-pal-0.3.0/debian/control starlink-pal-0.3.0/debian/control --- starlink-pal-0.3.0/debian/control 2013-06-24 16:13:36.000000000 +0000 +++ starlink-pal-0.3.0/debian/control 2013-11-30 12:29:28.000000000 +0000 @@ -8,10 +8,10 @@ dh-autoreconf, ghostscript, latex2html, - libsofa-c-dev, + liberfa-dev, texlive, texlive-font-utils -Standards-Version: 3.9.4 +Standards-Version: 3.9.5 Homepage: http://starlink.jach.hawaii.edu/starlink Vcs-Git: git://anonscm.debian.org/debian-science/packages/starlink-pal.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=debian-science/packages/starlink-pal.git @@ -23,7 +23,7 @@ Suggests: libstarlink-pal-doc Description: Positional Astronomy Library (development files) This library is a collection of code designed to aid in replacing the SLA - library with code from NOVAS and IAU SOFA. + library with code from NOVAS and ERFA. . Where possible the API is similar to the C SLA API except for the use of a "pal" prefix. @@ -53,7 +53,7 @@ Pre-Depends: ${misc:Pre-Depends} Description: Positional Astronomy Library (documentation) This library is a collection of code designed to aid in replacing the SLA - library with code from NOVAS and IAU SOFA. + library with code from NOVAS and ERFA. . Where possible the API is similar to the C SLA API except for the use of a "pal" prefix. diff -Nru starlink-pal-0.3.0/debian/patches/series starlink-pal-0.3.0/debian/patches/series --- starlink-pal-0.3.0/debian/patches/series 2012-06-28 21:11:57.000000000 +0000 +++ starlink-pal-0.3.0/debian/patches/series 2013-11-30 12:30:08.000000000 +0000 @@ -1,2 +1,3 @@ rename_library use_std_automake.patch +use_liberfa.patch diff -Nru starlink-pal-0.3.0/debian/patches/use_liberfa.patch starlink-pal-0.3.0/debian/patches/use_liberfa.patch --- starlink-pal-0.3.0/debian/patches/use_liberfa.patch 1970-01-01 00:00:00.000000000 +0000 +++ starlink-pal-0.3.0/debian/patches/use_liberfa.patch 2013-11-30 12:52:37.000000000 +0000 @@ -0,0 +1,99 @@ +Author: Ole Streicher +Description: Replace all calls of the IAU SOFA library by its truly + open source pendand erfa. +--- /dev/null ++++ b/sofa.h +@@ -0,0 +1,52 @@ ++#include ++ ++#define iauA2af eraA2af ++#define iauA2tf eraA2tf ++#define iauAf2a eraAf2a ++#define iauAnp eraAnp ++#define iauAnpm eraAnpm ++#define iauC2s eraC2s ++#define iauCal2jd eraCal2jd ++#define iauD2tf eraD2tf ++#define iauDat eraDat ++#define iauEe06a eraEe06a ++#define iauEpb eraEpb ++#define iauEpb2jd eraEpb2jd ++#define iauEpj eraEpj ++#define iauEpj2jd eraEpj2jd ++#define iauEpv00 eraEpv00 ++#define iauFk5hz eraFk5hz ++#define iauGd2gc eraGd2gc ++#define iauGmst06 eraGmst06 ++#define iauHfk5z eraHfk5z ++#define iauIr eraIr ++#define iauJd2cal eraJd2cal ++#define iauNut06a eraNut06a ++#define iauObl06 eraObl06 ++#define iauP06e eraP06e ++#define iauPap eraPap ++#define iauPas eraPas ++#define iauPdp eraPdp ++#define iauPlan94 eraPlan94 ++#define iauPmat06 eraPmat06 ++#define iauPn eraPn ++#define iauPnm06a eraPnm06a ++#define iaupv erapv ++#define iauPxp eraPxp ++#define iauRm2v eraRm2v ++#define iauRv2m eraRv2m ++#define iauRx eraRx ++#define iauRxp eraRxp ++#define iauRxpv eraRxpv ++#define iauRxr eraRxr ++#define iauRy eraRy ++#define iauRz eraRz ++#define iauS2c eraS2c ++#define iauSepp eraSepp ++#define iauSeps eraSeps ++#define iausofa erasofa ++#define iauStarpm eraStarpm ++#define iauTf2a eraTf2a ++#define iauTf2d eraTf2d ++#define iauTr eraTr ++#define iauTrxp eraTrxp +--- /dev/null ++++ b/sofam.h +@@ -0,0 +1,10 @@ ++#include "sofa.h" ++#include ++ ++#define DD2R ERFA_DD2R ++#define DS2R ERFA_DS2R ++#define DAS2R ERFA_DAS2R ++#define DJY ERFA_DJY ++#define DJ00 ERFA_DJ00 ++#define DAU ERFA_DAU ++#define dint(A) ((A)<0.0?ceil(A):floor(A)) +--- a/configure.ac ++++ b/configure.ac +@@ -64,9 +64,9 @@ + [AC_SUBST(STARUTIL_LIBADD, "-lstarutil")], + [AC_SUBST(STARUTIL_LIBADD, "")]) + +- AC_CHECK_LIB([sofa_c],[iauCal2jd], +- [AC_SUBST(SOFA_LIBADD, "-lsofa_c")], +- [AC_ERROR([Missing SOFA library. Can not continue])]) ++ AC_CHECK_LIB([erfa],[eraCal2jd], ++ [AC_SUBST(SOFA_LIBADD, "-lerfa")], ++ [AC_ERROR([Missing ERFA library. Can not continue])]) + LDFLAGS="$save_LDFLAGS" + + dnl Ensure that we use the $prefix values +--- a/Makefile.am ++++ b/Makefile.am +@@ -10,8 +10,8 @@ + libstarlink_pal_la_CPPFLAGS = $(SOFA_CPPFLAGS) + libstarlink_pal_la_LDFLAGS = $(SOFA_LDFLAGS) + +-# Force a link against SOFA and, optionally, starutil +-libstarlink_pal_la_LIBADD = -lsofa_c ++# Force a link against ERFA and, optionally, starutil ++libstarlink_pal_la_LIBADD = -lerfa + + # Misc files + dist_pkgdata_DATA = LICENCE README.md