debian/0000755000000000000000000000000012262532512007166 5ustar debian/libsofa-c0.docs0000644000000000000000000000001612262527620011760 0ustar */c/00READ.ME debian/watch0000644000000000000000000000021212262527620010216 0ustar version=3 opts=uversionmangle=s/(....)(..)(..)/$1.$2.$3/;s/_/./g \ http://www.iausofa.org/current_C.html /...._...._C/sofa_c-(.+).tar.gz debian/patches/0000755000000000000000000000000012262531724010621 5ustar debian/patches/set_installation_path.patch0000644000000000000000000000157412262531700016233 0ustar Author: Ole Streicher Description: Set the installation path according to the FHS. Also, remove the "test" target alias (use installcheck instead). --- a/20131202/c/src/makefile +++ b/20131202/c/src/makefile @@ -49,11 +49,11 @@ # Specify the installation home directory. -INSTALL_DIR = $(HOME) +INSTALL_DIR = $(DESTDIR)/usr # Specify the installation directory for the library. -SOFA_LIB_DIR = $(INSTALL_DIR)/lib/ +SOFA_LIB_DIR = $(INSTALL_DIR)/lib/$(DEB_HOST_MULTIARCH)/ # Specify the installation directory for the include files. @@ -340,7 +340,7 @@ ./$(SOFA_TEST) # Test the installed library. -installcheck test: $(SOFA_TEST_NAME) $(SOFA_INC) $(SOFA_LIB) +installcheck: $(SOFA_TEST_NAME) $(SOFA_INC) $(SOFA_LIB) $(CCOMPC) $(CFLAGX) $(SOFA_TEST_NAME) -I$(SOFA_INC_DIR) \ -L$(SOFA_LIB_DIR) -lsofa_c -lm -o $(SOFA_TEST) ./$(SOFA_TEST) debian/patches/create_shared_lib.patch0000644000000000000000000000437712262531724015274 0ustar Author: Ole Streicher Description: Create a shared library --- a/20131202/c/src/makefile +++ b/20131202/c/src/makefile @@ -64,7 +64,7 @@ # for functions, CFLAGX for executables) here. CCOMPC = gcc -CFLAGF = -c -pedantic -Wall -W -O +CFLAGF = -c -pedantic -Wall -W -O -fPIC CFLAGX = -pedantic -Wall -W -O #----YOU SHOULDN'T HAVE TO MODIFY ANYTHING BELOW THIS LINE--------- @@ -80,6 +80,11 @@ SOFA_LIB_NAME = libsofa_c.a SOFA_LIB = $(SOFA_LIB_DIR)$(SOFA_LIB_NAME) +# Name the SOFA/C library in its source and target locations. + +SOFA_SHLIB_NAME = libsofa_c.so +SOFA_SHLIB = $(SOFA_LIB_DIR)$(SOFA_SHLIB_NAME) + # Name the SOFA/C testbed in its source and target locations. SOFA_TEST_NAME = t_sofa_c.c @@ -326,18 +331,21 @@ -@ echo "" # Install the library and header files. -install $(SOFA_LIB) : $(INSTALL_DIRS) $(SOFA_LIB_NAME) $(SOFA_INC) +install $(SOFA_LIB) : $(INSTALL_DIRS) $(SOFA_LIB_NAME) $(SOFA_SHLIB_NAME) $(SOFA_INC) cp $(SOFA_LIB_NAME) $(SOFA_LIB_DIR) + cp $(SOFA_SHLIB_NAME).0.0 $(SOFA_LIB_DIR) + ln -s $(SOFA_SHLIB_NAME).0.0 $(SOFA_SHLIB).0 + ln -s $(SOFA_SHLIB_NAME).0 $(SOFA_SHLIB) # Deinstall the library and header files. uninstall: - - $(RM) $(SOFA_LIB) $(SOFA_INC) + - $(RM) $(SOFA_LIB) $(SOFA_SHLIB)* $(SOFA_INC) # Test the build. -check: $(SOFA_TEST_NAME) $(SOFA_INC_NAMES) $(SOFA_LIB_NAME) +check_disabled: $(SOFA_TEST_NAME) $(SOFA_INC_NAMES) $(SOFA_LIB_NAME) $(CCOMPC) $(CFLAGX) $(SOFA_TEST_NAME) $(SOFA_LIB_NAME) \ -lm -o $(SOFA_TEST) - ./$(SOFA_TEST) + LD_LIBRARY_PATH=$(LD_LIBRARY_PATH):$(SOFA_LIB_DIR) ./$(SOFA_TEST) # Test the installed library. installcheck: $(SOFA_TEST_NAME) $(SOFA_INC) $(SOFA_LIB) @@ -351,7 +359,7 @@ # Delete all generated binaries in the current directory. realclean distclean : clean - - $(RM) $(SOFA_LIB_NAME) $(SOFA_TEST) + - $(RM) $(SOFA_LIB_NAME) $(SOFA_SHLIB_NAME)* $(SOFA_TEST) # Create the installation directories if not already present. $(INSTALL_DIRS): @@ -361,6 +369,9 @@ $(SOFA_LIB_NAME): $(SOFA_OBS) ar ru $(SOFA_LIB_NAME) $? +$(SOFA_SHLIB_NAME): $(SOFA_OBS) + gcc -shared -Wl,-soname,$(SOFA_SHLIB_NAME).0 -o $(SOFA_SHLIB_NAME).0.0 $? -lm + # Install the header files. $(SOFA_INC) : $(INSTALL_DIRS) $(SOFA_INC_NAMES) cp $(SOFA_INC_NAMES) $(SOFA_INC_DIR) debian/patches/series0000644000000000000000000000011712262527620012035 0ustar set_installation_path.patch create_shared_lib.patch propagate_buildflags.patch debian/patches/propagate_buildflags.patch0000644000000000000000000000144212262530700016012 0ustar Author: Ole Streicher Description: Propagate CFLAGS and CPPFLAGS to the build system --- a/20131202/c/src/makefile +++ b/20131202/c/src/makefile @@ -64,8 +64,8 @@ # for functions, CFLAGX for executables) here. CCOMPC = gcc -CFLAGF = -c -pedantic -Wall -W -O -fPIC -CFLAGX = -pedantic -Wall -W -O +CFLAGF = -c $(CPPFLAGS) $(CFLAGS) -fPIC +CFLAGX = $(CPPFLAGS) $(CFLAGS) #----YOU SHOULDN'T HAVE TO MODIFY ANYTHING BELOW THIS LINE--------- @@ -370,7 +370,7 @@ ar ru $(SOFA_LIB_NAME) $? $(SOFA_SHLIB_NAME): $(SOFA_OBS) - gcc -shared -Wl,-soname,$(SOFA_SHLIB_NAME).0 -o $(SOFA_SHLIB_NAME).0.0 $? -lm + gcc -shared $(LDFLAGS) -Wl,-soname,$(SOFA_SHLIB_NAME).0 -o $(SOFA_SHLIB_NAME).0.0 $? -lm # Install the header files. $(SOFA_INC) : $(INSTALL_DIRS) $(SOFA_INC_NAMES) debian/control0000644000000000000000000000444212262532512010575 0ustar Source: iausofa-c Section: non-free/science Priority: optional Maintainer: Debian Science Maintainers Uploaders: Ole Streicher Build-Depends: debhelper (>= 9) Standards-Version: 3.9.5 Homepage: http://www.iausofa.org/index.html Vcs-Git: git://anonscm.debian.org/debian-science/packages/iausofa.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=debian-science/packages/iausofa.git Package: libsofa-c0 Section: non-free/libs Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends} Pre-Depends: ${misc:Pre-Depends} Multi-Arch: same Description: Algorithms for models in fundamental astronomy (shared library) This is a suite of vector/matrix routines and various utilities that underpin the astronomy algorithms, which include routines for the following: . - Calendars - Time Scales - Earth rotation and sidereal time - Ephemerides (medium precision) - Geocentric/geodetic transformations - Precession, nutation, polar motion - Star space motion - Star catalogue conversion . This is the ANSI C version of the library. . The International Astronomical Union's SOFA service has the task of establishing and maintaining an accessible and authoritative set of algorithms and procedures that implement standard models used in fundamental astronomy. . This package contains the shared library. Package: libsofa-c-dev Section: non-free/libdevel Architecture: any Depends: libsofa-c0 (= ${binary:Version}), ${misc:Depends} Description: Algorithms for models in fundamental astronomy (development files) This is a suite of vector/matrix routines and various utilities that underpin the astronomy algorithms, which include routines for the following: . - Calendars - Time Scales - Earth rotation and sidereal time - Ephemerides (medium precision) - Geocentric/geodetic transformations - Precession, nutation, polar motion - Star space motion - Star catalogue conversion . This is the ANSI C version of the library. . The International Astronomical Union's SOFA service has the task of establishing and maintaining an accessible and authoritative set of algorithms and procedures that implement standard models used in fundamental astronomy. . This package contains the header files and the static library. debian/source/0000755000000000000000000000000012262527620010472 5ustar debian/source/format0000644000000000000000000000001412262527620011700 0ustar 3.0 (quilt) debian/libsofa-c0.install0000644000000000000000000000006412262527620012501 0ustar usr/lib/*/libsofa_c.so.0 usr/lib/*/libsofa_c.so.0.0 debian/libsofa-c-dev.doc-base0000644000000000000000000000173712262527620013214 0ustar Document: sofa-c Title: Standards Of Fundamental Astronomy Section: Programming Author: International Astronomical Union Abstract: SOFA stands for Standards Of Fundamental Astronomy. The SOFA software is a collection of Fortran 77 and C subroutines that implement official IAU algorithms for fundamental-astronomy computations. At the present time the SOFA subprograms comprise 131 “astronomy” routines supported by 55 “vector/matrix” routines. . The basic documentation for the SOFA collection is terse, consisting of (i) detailed preamble comments in the individual routines and (ii) classified and alphabetic lists of subroutine calls. For an important subset of the SOFA routines, namely those concerned with the Earth’s orientation and rotation, the present paper supplements the basic documentation with descriptive material and cookbook examples. Format: PDF Files: /usr/share/doc/libsofa-c-dev/*.pdf.gz Format: TEXT Files: /usr/share/doc/libsofa-c-dev/*.lis debian/compat0000644000000000000000000000000212262527620010370 0ustar 9 debian/changelog0000644000000000000000000000136612262527641011055 0ustar iausofa-c (2013.12.02-1) unstable; urgency=low * New upstream version * Change to non-free because of name-change clause 3c. Use erfa as DFSG compliant replacement * Update Standards-Version to 3.9.5; remove DMUA flag. -- Ole Streicher Mon, 06 Jan 2014 14:20:43 +0100 iausofa-c (2012.03.01.a-1~exp1) experimental; urgency=low * New upstream version * Multiarch support * Add "DM-Upload-Allowed: yes" * Propagate CFLAGS and CPPFLAGS to build system * Update compat flag to 9 -- Ole Streicher Tue, 17 Jul 2012 11:00:00 +0200 iausofa-c (2012.03.01-1) unstable; urgency=low * Initial release. (Closes: #659639) -- Ole Streicher Thu, 01 Mar 2012 16:45:00 +0100 debian/libsofa-c-dev.docs0000644000000000000000000000005212262527620012454 0ustar */c/doc/*.lis */c/doc/*.pdf */c/00READ.ME debian/libsofa-c-dev.install0000644000000000000000000000007512262527620013177 0ustar usr/include/*.h usr/lib/*/libsofa_c.a usr/lib/*/libsofa_c.so debian/rules0000755000000000000000000000031512262531041010241 0ustar #!/usr/bin/make -f # -*- makefile -*- #export DH_VERBOSE=1 %: dh $@ -D20131202/c/src override_dh_installchangelogs: dh_installchangelogs */c/doc/changes.lis override_dh_compress: dh_compress -X.lis debian/copyright0000644000000000000000000000770512262527620011136 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: iausofa_c Upstream-Author: IAU SOFA Board Source: hhttp://www.iausofa.org/current_C.html Files: * Copyright: Copyright (C) 2012 Standards Of Fundamental Astronomy Board of the International Astronomical Union. License: SOFA BY USING THIS SOFTWARE YOU ACCEPT THE FOLLOWING TERMS AND CONDITIONS WHICH APPLY TO ITS USE. . 1. The Software is owned by the IAU SOFA Board ("SOFA"). . 2. Permission is granted to anyone to use the SOFA software for any purpose, including commercial applications, free of charge and without payment of royalties, subject to the conditions and restrictions listed below. . 3. You (the user) may copy and distribute SOFA source code to others, and use and adapt its code and algorithms in your own software, on a world-wide, royalty-free basis. That portion of your distribution that does not consist of intact and unchanged copies of SOFA source code files is a "derived work" that must comply with the following requirements: . a) Your work shall be marked or carry a statement that it (i) uses routines and computations derived by you from software provided by SOFA under license to you; and (ii) does not itself constitute software provided by and/or endorsed by SOFA. . b) The source code of your derived work must contain descriptions of how the derived work is based upon, contains and/or differs from the original SOFA software. . c) The name(s) of all routine(s) in your derived work shall not include the prefix "iau" or "sofa" or trivial modifications thereof such as changes of case. . d) The origin of the SOFA components of your derived work must not be misrepresented; you must not claim that you wrote the original software, nor file a patent application for SOFA software or algorithms embedded in the SOFA software. . e) These requirements must be reproduced intact in any source distribution and shall apply to anyone to whom you have granted a further right to modify the source code of your derived work. . Note that, as originally distributed, the SOFA software is intended to be a definitive implementation of the IAU standards, and consequently third-party modifications are discouraged. All variations, no matter how minor, must be explicitly marked as such, as explained above. . 4. You shall not cause the SOFA software to be brought into disrepute, either by misuse, or use for inappropriate tasks, or by inappropriate modification. . 5. The SOFA software is provided "as is" and SOFA makes no warranty as to its use or performance. SOFA does not and cannot warrant the performance or results which the user may obtain by using the SOFA software. SOFA makes no warranties, express or implied, as to non-infringement of third party rights, merchantability, or fitness for any particular purpose. In no event will SOFA be liable to the user for any consequential, incidental, or special damages, including any lost profits or lost savings, even if a SOFA representative has been advised of such damages, or for any claim by any third party. . 6. The provision of any version of the SOFA software under the terms and conditions specified herein does not imply that future versions will also be made available under the same terms and conditions. . In any published work or commercial product which uses the SOFA software directly, acknowledgement (see www.iausofa.org) is appreciated. . Correspondence concerning SOFA software should be addressed as follows: . By email: sofa@ukho.gov.uk By post: IAU SOFA Center HM Nautical Almanac Office UK Hydrographic Office Admiralty Way, Taunton Somerset, TA1 2DN United Kingdom Files: debian/* Copyright: not applicable License: public-domain Debian packaging by Ole Streicher