Compare commits
62 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
39a7d0a67c | ||
|
|
8c43bcded3 | ||
|
|
323c0ccdac | ||
|
|
c640cf4143 | ||
|
|
25d4df0ff4 | ||
|
|
1fabb8db27 | ||
|
|
39ea747597 | ||
|
|
d962d53fe0 | ||
|
|
76cf69c5fd | ||
|
|
35b5bc544c | ||
|
|
731ac20523 | ||
|
|
f71e2ae76c | ||
|
|
c7a043997c | ||
|
|
f235efc067 | ||
|
|
60726e2b03 | ||
|
|
896dee1647 | ||
|
|
de829022cf | ||
|
|
a8f38be43c | ||
|
|
ef50d17417 | ||
|
|
e1bb369366 | ||
|
|
c9adf1fbce | ||
|
|
118f5c88ea | ||
|
|
bf9f2212f3 | ||
|
|
32acb42e7f | ||
|
|
e690b342c4 | ||
|
|
e87a6ff003 | ||
|
|
232251b7f8 | ||
|
|
0560566396 | ||
|
|
e9b0fb1240 | ||
|
|
a5d8f56623 | ||
|
|
ba82f24041 | ||
|
|
a3fb662269 | ||
|
|
aa5ed2b090 | ||
|
|
a57af3590f | ||
|
|
396732b2d4 | ||
|
|
95268dfb50 | ||
|
|
a85043a81b | ||
|
|
09539416b9 | ||
|
|
2544c72a6b | ||
|
|
6cb28e24d9 | ||
|
|
f2b0d6d38f | ||
|
|
769d881c36 | ||
|
|
938c5ed438 | ||
|
|
376b3019a6 | ||
|
|
b34dea6cd4 | ||
|
|
bf53d8681d | ||
|
|
2145a25fc5 | ||
|
|
b81aa1f7f4 | ||
|
|
45c57638a8 | ||
|
|
ff8e70471f | ||
|
|
1d2d055a40 | ||
|
|
6722730b90 | ||
|
|
0522c473d2 | ||
|
|
5977c7e639 | ||
|
|
03e79c415b | ||
|
|
6f8aa5484a | ||
|
|
b2d4d4444c | ||
|
|
4c5317a33f | ||
|
|
31ed202a19 | ||
|
|
57ddebf17a | ||
|
|
916ec0961a | ||
|
|
c661022050 |
10 changed files with 944 additions and 21 deletions
5
.gitignore
vendored
Normal file
5
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
wcstools-3.8.1.tar.gz
|
||||
/wcstools-3.9.4.tar.gz
|
||||
/wcstools-3.9.5.tar.gz
|
||||
/wcstools-3.9.6.tar.gz
|
||||
/wcstools-3.9.7.tar.gz
|
||||
21
Makefile
21
Makefile
|
|
@ -1,21 +0,0 @@
|
|||
# Makefile for source rpm: wcstools
|
||||
# $Id$
|
||||
NAME := wcstools
|
||||
SPECFILE = $(firstword $(wildcard *.spec))
|
||||
|
||||
define find-makefile-common
|
||||
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
|
||||
endef
|
||||
|
||||
MAKEFILE_COMMON := $(shell $(find-makefile-common))
|
||||
|
||||
ifeq ($(MAKEFILE_COMMON),)
|
||||
# attept a checkout
|
||||
define checkout-makefile-common
|
||||
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
|
||||
endef
|
||||
|
||||
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
|
||||
endif
|
||||
|
||||
include $(MAKEFILE_COMMON)
|
||||
128
changelog
Normal file
128
changelog
Normal file
|
|
@ -0,0 +1,128 @@
|
|||
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.9.6-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.9.6-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||
|
||||
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.9.6-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.9.6-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Sat Jun 27 2020 Mattia Verga <mattia.verga@protonmail.com> - 3.9.6-1
|
||||
- Update to 3.9.6
|
||||
|
||||
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.9.5-11
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.9.5-10
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||
|
||||
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.9.5-9
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.9.5-8
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
* Sat Jun 30 2018 Mattia Verga <mattia.verga@yandex.com> - 3.9.5-7
|
||||
- Remove ldconfig scriptlets
|
||||
|
||||
* Mon Feb 19 2018 Mattia Verga <mattia.verga@email.it> - 3.9.5-6
|
||||
- Add gcc to BuildRequires
|
||||
|
||||
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.9.5-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||
|
||||
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.9.5-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
||||
|
||||
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.9.5-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||
|
||||
* Sat May 20 2017 Mattia Verga <mattia.verga@tiscali.it> - 3.9.5-2
|
||||
- Rename remap to wcsremap. See #1450190
|
||||
|
||||
* Fri Apr 14 2017 Mattia Verga <mattia.verga@tiscali.it> - 3.9.5-1
|
||||
- Update to 3.9.5
|
||||
|
||||
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.9.4-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||
|
||||
* Sun Jan 15 2017 Mattia Verga <mattia.verga@tiscali.it> - 3.9.4-1
|
||||
- Update to 3.9.4
|
||||
|
||||
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.8.1-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
||||
|
||||
* Wed Feb 03 2010 Sergio Pascual <sergiopr at fedoraproject.org> 3.8.1-1
|
||||
- New upstream source
|
||||
- Patch to fix bz #559863 from upstream
|
||||
|
||||
* Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.7.0-8
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
||||
|
||||
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.7.0-7
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
||||
|
||||
* Thu Feb 19 2009 Sergio Pascual <sergiopr at fedoraproject.org> 3.7.0-6
|
||||
- Reverting soname change
|
||||
|
||||
* Sat Feb 14 2009 Sergio Pascual <sergiopr at fedoraproject.org> 3.7.0-5
|
||||
- Libray and headers renamed as wcstools
|
||||
|
||||
* Wed Oct 01 2008 Sergio Pascual <sergiopr at fedoraproject.org> 3.7.0-4
|
||||
- Fails to build from source bz#465061
|
||||
|
||||
* Wed Oct 01 2008 Sergio Pascual <sergiopr at fedoraproject.org> 3.7.0-3
|
||||
- Fails to build from source bz#465061
|
||||
|
||||
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 3.7.0-2
|
||||
- Autorebuild for GCC 4.3
|
||||
|
||||
* Wed Sep 05 2007 Sergio Pascual <spr at astrax.fis.ucm.es> 3.7.0-1
|
||||
- New upstream source 3.7.0
|
||||
|
||||
* Mon Aug 27 2007 Sergio Pascual <spr at astrax.fis.ucm.es> 3.6.8-2.1
|
||||
- Rebuild for Fedora 8 to get the build-id
|
||||
|
||||
* Tue Mar 20 2007 Sergio Pascual <spr@astrax.fis.ucm.es> 3.6.8-2
|
||||
- Fix for bug #232413
|
||||
|
||||
* Mon Mar 19 2007 Sergio Pascual <spr@astrax.fis.ucm.es> 3.6.8-1
|
||||
- New upstream source 3.6.8
|
||||
- Added pacthes to remove warnings during the compilation
|
||||
|
||||
* Mon Feb 26 2007 Sergio Pascual <spr@astrax.fis.ucm.es> 3.6.7-1
|
||||
- New upstream source 3.6.7
|
||||
|
||||
* Wed Nov 15 2006 Sergio Pascual <spr@astrax.fis.ucm.es> 3.6.6-1
|
||||
- New upstream source 3.6.6
|
||||
|
||||
* Tue Oct 10 2006 Sergio Pascual <spr@astrax.fis.ucm.es> 3.6.6-0.1.beta
|
||||
- New upstream source 3.6.6beta
|
||||
|
||||
* Mon Sep 4 2006 Sergio Pascual <spr@astrax.fis.ucm.es> 3.6.5-3
|
||||
- Rebuild.
|
||||
|
||||
* Wed Aug 30 2006 Sergio Pascual <spr@astrax.fis.ucm.es> 3.6.5-2
|
||||
- Corrected bug in edhead (patch2) (bug #204642).
|
||||
|
||||
* Wed Jun 21 2006 Sergio Pascual <spr@astrax.fis.ucm.es> 3.6.5-1
|
||||
- New upstream source 3.6.5
|
||||
|
||||
* Tue Jun 13 2006 Sergio Pascual <spr@astrax.fis.ucm.es> 3.6.4-3
|
||||
- Patched overflows in catutil.c and getdate.c
|
||||
- Patched incompatible pointer in binread.c
|
||||
|
||||
* Mon Jun 12 2006 Sergio Pascual <spr@astrax.fis.ucm.es> 3.6.4-2
|
||||
- Patched edhead.
|
||||
- libwcs provides libwcs.so.3
|
||||
- libwcs into System Environment/Libraries group
|
||||
- Makefile uses ${RPM_OPT_FLAGS} and $(CC)
|
||||
|
||||
* Fri Jun 09 2006 Sergio Pascual <spr@astrax.fis.ucm.es> 3.6.4-1
|
||||
- Removed not needed ldconfig in wcstools and libwcs-devel.
|
||||
|
||||
* Wed Mar 08 2006 Sergio Pascual <spr@astrax.fis.ucm.es> 3.6.3-1
|
||||
- Initial RPM file.
|
||||
54
fix_gcc15-c++23.patch
Normal file
54
fix_gcc15-c++23.patch
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
diff -U 3 -dHrN a/libwcs/dateutil.c b/libwcs/dateutil.c
|
||||
--- a/libwcs/dateutil.c 2021-09-15 23:45:06.000000000 +0200
|
||||
+++ b/libwcs/dateutil.c 2025-01-24 09:38:40.402443820 +0100
|
||||
@@ -314,6 +314,8 @@
|
||||
* Return Mod of floating point number
|
||||
*/
|
||||
|
||||
+#define _GNU_SOURCE
|
||||
+
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
diff -U 3 -dHrN a/libwcs/imgetwcs.c b/libwcs/imgetwcs.c
|
||||
--- a/libwcs/imgetwcs.c 2016-06-24 21:23:06.000000000 +0200
|
||||
+++ b/libwcs/imgetwcs.c 2025-01-24 09:40:12.971028438 +0100
|
||||
@@ -31,6 +31,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <math.h>
|
||||
#include <string.h>
|
||||
+#include <strings.h>
|
||||
|
||||
#include "wcs.h"
|
||||
#include "lwcs.h"
|
||||
diff -U 3 -dHrN a/libwcs/webread.c b/libwcs/webread.c
|
||||
--- a/libwcs/webread.c 2022-02-04 22:08:59.000000000 +0100
|
||||
+++ b/libwcs/webread.c 2025-01-24 09:37:25.750042386 +0100
|
||||
@@ -32,6 +32,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
+#include <strings.h>
|
||||
#include <math.h>
|
||||
#include <ctype.h>
|
||||
#include "wcs.h"
|
||||
@@ -976,7 +977,7 @@
|
||||
memset(adrinet, 0, sizeof(struct sockaddr_in));
|
||||
adrinet->sin_family = AF_INET;
|
||||
adrinet->sin_port = htons(port);
|
||||
- memcpy(&adrinet->sin_addr, hp->h_addr, hp->h_length);
|
||||
+ memcpy(&adrinet->sin_addr, hp->h_addr_list[0], hp->h_length);
|
||||
|
||||
return type;
|
||||
}
|
||||
diff -U 3 -dHrN a/Makefile b/Makefile
|
||||
--- a/Makefile 2025-01-22 08:49:29.246196532 +0100
|
||||
+++ b/Makefile 2025-01-24 09:31:30.842906462 +0100
|
||||
@@ -1,4 +1,7 @@
|
||||
CC= gcc
|
||||
+
|
||||
+CFLAGS += -std=c99 -D_XOPEN_SOURCE=500
|
||||
+
|
||||
LIBWCS = libwcs/libwcstools.so
|
||||
LIBS = -L libwcs -lwcstools -lm
|
||||
#LIBS = $(LIBWCS) -lm -lnsl -lsocket
|
||||
1
sources
1
sources
|
|
@ -0,0 +1 @@
|
|||
SHA512 (wcstools-3.9.7.tar.gz) = a785b87eb8715e6408b463b42f521eaa7b22096346b83b7e76dc068954dd299ef892ac990326b46fef349d9581416dc34d7b1df0fcf41096a4f2c8bf2ed2677b
|
||||
307
wcstools-3.9.6-rename-shlib.patch
Normal file
307
wcstools-3.9.6-rename-shlib.patch
Normal file
|
|
@ -0,0 +1,307 @@
|
|||
diff -U 3 -dHrN -- a/libwcs/Makefile b/libwcs/Makefile
|
||||
--- a/libwcs/Makefile 2011-09-15 21:05:05.000000000 +0200
|
||||
+++ b/libwcs/Makefile 2020-06-27 18:40:25.837417862 +0200
|
||||
@@ -1,4 +1,4 @@
|
||||
-CFLAGS= -g -D_FILE_OFFSET_BITS=64
|
||||
+CFLAGS+= -fPIC
|
||||
CC= cc
|
||||
|
||||
OBJS = imsetwcs.o imgetwcs.o matchstar.o findstar.o daoread.o wcscon.o \
|
||||
@@ -11,10 +11,17 @@
|
||||
sortstar.o platefit.o iget.o fileutil.o \
|
||||
wcslib.o lin.o cel.o proj.o sph.o wcstrig.o distort.o poly.o
|
||||
|
||||
-libwcs.a: $(OBJS)
|
||||
+all: libwcstools.so.1.0.0 libwcstools.a
|
||||
+
|
||||
+libwcstools.a: $(OBJS)
|
||||
ar rv $@ $?
|
||||
ranlib $@
|
||||
|
||||
+libwcstools.so.1.0.0: $(OBJS)
|
||||
+ $(CC) $(LDFLAGS) -shared -o $@ -Wl,-soname,libwcstools.so.1 $? -lm
|
||||
+ ln -s libwcstools.so.1.0.0 libwcstools.so.1
|
||||
+ ln -s libwcstools.so.1.0.0 libwcstools.so
|
||||
+
|
||||
actread.o: fitsfile.h wcscat.h wcs.h fitshead.h wcslib.h
|
||||
binread.o: wcscat.h wcs.h fitshead.h wcslib.h
|
||||
ctgread.o: wcscat.h wcs.h fitshead.h wcslib.h
|
||||
@@ -67,4 +74,4 @@
|
||||
worldpos.o: wcs.h fitshead.h wcslib.h
|
||||
|
||||
clean:
|
||||
- rm -f *.a *.o
|
||||
+ rm -f *.a *.o *.so *.so.*
|
||||
diff -U 3 -dHrN -- a/Makefile b/Makefile
|
||||
--- a/Makefile 2018-11-06 03:55:26.000000000 +0100
|
||||
+++ b/Makefile 2020-06-27 18:32:28.022430111 +0200
|
||||
@@ -1,12 +1,11 @@
|
||||
-CFLAGS= -g -D_FILE_OFFSET_BITS=64
|
||||
CC= cc
|
||||
-LIBWCS = libwcs/libwcs.a
|
||||
-LIBS = $(LIBWCS) -lm
|
||||
+LIBWCS = libwcs/libwcstools.so
|
||||
+LIBS = -L libwcs -lwcstools -lm
|
||||
#LIBS = $(LIBWCS) -lm -lnsl -lsocket
|
||||
BIN = bin
|
||||
.PRECIOUS: ${LIBWCS} ${LIBNED}
|
||||
.c.o:
|
||||
- $(CC) -c $(CFLAGS) $(DEFS) $<
|
||||
+ $(CC) -c $(CFLAGS) $(CPPFLAGS) $(DEFS) $<
|
||||
|
||||
all: cphead delwcs delhead edhead fixpix gethead i2f imcat imhead immatch \
|
||||
imrot imsize imstar imwcs scat sethead addpix getpix setpix sky2xy \
|
||||
@@ -16,190 +15,190 @@
|
||||
isfile simpos bincat
|
||||
|
||||
addpix: addpix.c $(LIBWCS) libwcs/fitsfile.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/addpix addpix.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/addpix addpix.c $(LIBS)
|
||||
|
||||
bincat: bincat.c $(LIBWCS) libwcs/fitsfile.h libwcs/wcs.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/bincat bincat.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/bincat bincat.c $(LIBS)
|
||||
|
||||
char2sp: char2sp.c $(LIBWCS) libwcs/fitsfile.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/char2sp char2sp.c $(LIBWCS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/char2sp char2sp.c $(LIBWCS)
|
||||
|
||||
conpix: conpix.c $(LIBWCS) libwcs/fitsfile.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/conpix conpix.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/conpix conpix.c $(LIBS)
|
||||
|
||||
cphead: cphead.c $(LIBWCS) libwcs/fitsfile.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/cphead cphead.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/cphead cphead.c $(LIBS)
|
||||
|
||||
crlf: crlf.c
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/crlf crlf.c
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/crlf crlf.c
|
||||
|
||||
delwcs: delwcs.c $(LIBWCS) libwcs/fitsfile.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/delwcs delwcs.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/delwcs delwcs.c $(LIBS)
|
||||
|
||||
delhead: delhead.c $(LIBWCS) libwcs/fitsfile.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/delhead delhead.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/delhead delhead.c $(LIBS)
|
||||
|
||||
edhead: edhead.c $(LIBWCS) libwcs/fitsfile.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/edhead edhead.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/edhead edhead.c $(LIBS)
|
||||
|
||||
filename: filename.c
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/filename filename.c
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/filename filename.c
|
||||
|
||||
filedir: filedir.c
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/filedir filedir.c
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/filedir filedir.c
|
||||
|
||||
fileroot: fileroot.c
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/fileroot fileroot.c
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/fileroot fileroot.c
|
||||
|
||||
filext: filext.c
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/filext filext.c
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/filext filext.c
|
||||
|
||||
fixpix: fixpix.c $(LIBWCS) libwcs/fitsfile.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/fixpix fixpix.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/fixpix fixpix.c $(LIBS)
|
||||
|
||||
getcol: getcol.c $(LIBWCS) libwcs/wcscat.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/getcol getcol.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/getcol getcol.c $(LIBS)
|
||||
|
||||
getdate: getdate.c $(LIBWCS) libwcs/wcscat.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/getdate getdate.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/getdate getdate.c $(LIBS)
|
||||
|
||||
gethead: gethead.c $(LIBWCS) libwcs/wcs.h libwcs/fitsfile.h libwcs/wcscat.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/gethead gethead.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/gethead gethead.c $(LIBS)
|
||||
|
||||
getfits: getfits.c $(LIBWCS) libwcs/fitsfile.h libwcs/wcs.h libwcs/wcscat.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/getfits getfits.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/getfits getfits.c $(LIBS)
|
||||
|
||||
getpix: getpix.c $(LIBWCS) libwcs/wcs.h libwcs/fitsfile.h libwcs/wcscat.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/getpix getpix.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/getpix getpix.c $(LIBS)
|
||||
|
||||
gettab: gettab.c $(LIBWCS) libwcs/wcscat.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/gettab gettab.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/gettab gettab.c $(LIBS)
|
||||
|
||||
httpget: httpget.c $(LIBWCS) libwcs/wcscat.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/httpget httpget.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/httpget httpget.c $(LIBS)
|
||||
|
||||
htmlsp: htmlsp.c
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/htmlsp htmlsp.c
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/htmlsp htmlsp.c
|
||||
|
||||
i2f: i2f.c $(LIBWCS) libwcs/fitsfile.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/i2f i2f.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/i2f i2f.c $(LIBS)
|
||||
|
||||
imcat: imcat.c $(LIBWCS) libwcs/fitsfile.h libwcs/wcs.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/imcat imcat.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/imcat imcat.c $(LIBS)
|
||||
|
||||
imfill: imfill.c $(LIBWCS) libwcs/fitsfile.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/imfill imfill.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/imfill imfill.c $(LIBS)
|
||||
|
||||
imresize: imresize.c $(LIBWCS) libwcs/fitsfile.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/imresize imresize.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/imresize imresize.c $(LIBS)
|
||||
|
||||
imsmooth: imsmooth.c $(LIBWCS) libwcs/fitsfile.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/imsmooth imsmooth.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/imsmooth imsmooth.c $(LIBS)
|
||||
|
||||
imhead: imhead.c $(LIBWCS) libwcs/fitsfile.h libwcs/wcs.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/imhead imhead.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/imhead imhead.c $(LIBS)
|
||||
|
||||
imrot: imrot.c $(LIBWCS) libwcs/fitsfile.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/imrot imrot.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/imrot imrot.c $(LIBS)
|
||||
|
||||
imsize: imsize.c $(LIBWCS) libwcs/fitsfile.h libwcs/wcs.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/imsize imsize.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/imsize imsize.c $(LIBS)
|
||||
|
||||
imstack: imstack.c $(LIBWCS) libwcs/fitsfile.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/imstack imstack.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/imstack imstack.c $(LIBS)
|
||||
|
||||
imextract: imextract.c $(LIBWCS) libwcs/fitsfile.h libwcs/wcscat.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/imextract imextract.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/imextract imextract.c $(LIBS)
|
||||
|
||||
imstar: imstar.c $(LIBWCS) libwcs/fitsfile.h libwcs/wcs.h libwcs/lwcs.h libwcs/wcscat.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/imstar imstar.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/imstar imstar.c $(LIBS)
|
||||
|
||||
isfile: isfile.c $(LIBWCS) libwcs/fitshead.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/isfile isfile.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/isfile isfile.c $(LIBS)
|
||||
|
||||
isfits: isfits.c $(LIBWCS) libwcs/fitshead.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/isfits isfits.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/isfits isfits.c $(LIBS)
|
||||
|
||||
isnum: isnum.c $(LIBWCS) libwcs/fitshead.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/isnum isnum.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/isnum isnum.c $(LIBS)
|
||||
|
||||
isimlist: isimlist.c $(LIBWCS) libwcs/fitsfile.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/isimlist isimlist.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/isimlist isimlist.c $(LIBS)
|
||||
|
||||
isrange: isrange.c
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/isrange isrange.c
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/isrange isrange.c
|
||||
|
||||
imwcs: imwcs.c $(LIBWCS) libwcs/fitsfile.h libwcs/lwcs.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/imwcs imwcs.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/imwcs imwcs.c $(LIBS)
|
||||
|
||||
immatch: immatch.c $(LIBWCS) libwcs/fitsfile.h libwcs/lwcs.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/immatch immatch.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/immatch immatch.c $(LIBS)
|
||||
|
||||
immwcs: immwcs.c $(LIBWCS) libwcs/fitsfile.h libwcs/lwcs.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/immwcs immwcs.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/immwcs immwcs.c $(LIBS)
|
||||
|
||||
keyhead: keyhead.c $(LIBWCS) libwcs/fitsfile.h libwcs/wcs.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/keyhead keyhead.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/keyhead keyhead.c $(LIBS)
|
||||
|
||||
matchcat: matchcat.c $(LIBWCS) libwcs/wcscat.h libwcs/wcs.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/matchcat matchcat.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/matchcat matchcat.c $(LIBS)
|
||||
|
||||
newfits: newfits.c $(LIBWCS) libwcs/fitshead.h libwcs/wcs.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/newfits newfits.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/newfits newfits.c $(LIBS)
|
||||
|
||||
remap: remap.c $(LIBWCS) libwcs/fitsfile.h libwcs/wcs.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/remap remap.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/remap remap.c $(LIBS)
|
||||
|
||||
scat: scat.c $(LIBWCS) libwcs/wcscat.h libwcs/wcs.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/scat scat.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/scat scat.c $(LIBS)
|
||||
|
||||
sethead: sethead.c $(LIBWCS) libwcs/fitsfile.h libwcs/wcs.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/sethead sethead.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/sethead sethead.c $(LIBS)
|
||||
|
||||
setpix: setpix.c $(LIBWCS) libwcs/fitsfile.h libwcs/wcscat.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/setpix setpix.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/setpix setpix.c $(LIBS)
|
||||
|
||||
sky2xy: sky2xy.c $(LIBWCS) libwcs/wcs.h libwcs/fitsfile.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/sky2xy sky2xy.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/sky2xy sky2xy.c $(LIBS)
|
||||
|
||||
skycoor: skycoor.c $(LIBWCS) libwcs/wcs.h libwcs/wcscat.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/skycoor skycoor.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/skycoor skycoor.c $(LIBS)
|
||||
|
||||
sp2char: sp2char.c $(LIBWCS) libwcs/fitsfile.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/sp2char sp2char.c $(LIBWCS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/sp2char sp2char.c $(LIBWCS)
|
||||
|
||||
subpix: subpix.c $(LIBWCS) libwcs/fitsfile.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/subpix subpix.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/subpix subpix.c $(LIBS)
|
||||
|
||||
sumpix: sumpix.c $(LIBWCS) libwcs/fitsfile.h libwcs/wcscat.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/sumpix sumpix.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/sumpix sumpix.c $(LIBS)
|
||||
|
||||
wcshead: wcshead.c $(LIBWCS) libwcs/fitsfile.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/wcshead wcshead.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/wcshead wcshead.c $(LIBS)
|
||||
|
||||
xy2sky: xy2sky.c $(LIBWCS) libwcs/wcs.h libwcs/wcscat.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/xy2sky xy2sky.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/xy2sky xy2sky.c $(LIBS)
|
||||
|
||||
-simpos: simpos.c libwcs/libwcs.a
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/simpos simpos.c $(LIBS)
|
||||
+simpos: simpos.c
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/simpos simpos.c $(LIBS)
|
||||
|
||||
gsc2cat: gsc2cat.c $(LIBWCS)
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/gsc2cat gsc2cat.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/gsc2cat gsc2cat.c $(LIBS)
|
||||
|
||||
tmcat: tmcat.c
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/tmcat tmcat.c
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/tmcat tmcat.c
|
||||
|
||||
tmcate: tmcate.c
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/tmcate tmcate.c
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/tmcate tmcate.c
|
||||
|
||||
$(LIBWCS): libwcs/*.c libwcs/*.h
|
||||
- cd libwcs; make
|
||||
+ $(MAKE) CC=$(CC) -C libwcs
|
||||
|
||||
objclean:
|
||||
- cd libwcs; make clean
|
||||
+ $(MAKE) -C libwcs clean
|
||||
|
||||
binclean:
|
||||
rm -f ./bin/*
|
||||
|
||||
-clean:
|
||||
+clean: objclean binclean
|
||||
make objclean; make binclean
|
||||
36
wcstools-3.9.7_rename-binaries.patch
Normal file
36
wcstools-3.9.7_rename-binaries.patch
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
diff -udHrN -- b/Makefile c/Makefile
|
||||
--- b/Makefile 2022-04-30 15:52:57.095131468 +0200
|
||||
+++ c/Makefile 2022-04-30 15:55:58.530749638 +0200
|
||||
@@ -87,7 +87,7 @@
|
||||
$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/i2f i2f.c $(LIBS)
|
||||
|
||||
imcat: imcat.c $(LIBWCS) libwcs/fitsfile.h libwcs/wcs.h
|
||||
- $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/imcat imcat.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/imcatalog imcat.c $(LIBS)
|
||||
|
||||
imfill: imfill.c $(LIBWCS) libwcs/fitsfile.h
|
||||
$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/imfill imfill.c $(LIBS)
|
||||
@@ -153,7 +153,7 @@
|
||||
$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/newfits newfits.c $(LIBS)
|
||||
|
||||
remap: remap.c $(LIBWCS) libwcs/fitsfile.h libwcs/wcs.h
|
||||
- $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/remap remap.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/wcsremap remap.c $(LIBS)
|
||||
|
||||
scat: scat.c $(LIBWCS) libwcs/wcscat.h libwcs/wcs.h
|
||||
$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/scat scat.c $(LIBS)
|
||||
diff -udHrN -- b/man/man1/imcat.1 c/man/man1/imcat.1
|
||||
--- b/man/man1/imcat.1 2016-06-24 22:33:58.000000000 +0200
|
||||
+++ c/man/man1/imcat.1 2022-04-30 15:59:00.116431139 +0200
|
||||
@@ -1,8 +1,8 @@
|
||||
-.TH imcat 1 WCSTools "30 January 2003"
|
||||
+.TH imcatalog 1 WCSTools "30 January 2003"
|
||||
.SH Name
|
||||
-imcat \- List catalog stars in FITS and IRAF image files
|
||||
+imcatalog \- List catalog stars in FITS and IRAF image files
|
||||
.SH Synopsis
|
||||
-imcat [options] FITS or IRAF file(s)
|
||||
+imcatalog [options] FITS or IRAF file(s)
|
||||
.SH Description
|
||||
Search given catalog withing area described by the world coordinate
|
||||
system in an image header. May be called as imuac to search the USNO A 1.0
|
||||
317
wcstools-3.9.7_rename-libwcs-to-libwcstools.patch
Normal file
317
wcstools-3.9.7_rename-libwcs-to-libwcstools.patch
Normal file
|
|
@ -0,0 +1,317 @@
|
|||
diff -udHrN -- a/libwcs/Makefile b/libwcs/Makefile
|
||||
--- a/libwcs/Makefile 2011-09-15 21:05:05.000000000 +0200
|
||||
+++ b/libwcs/Makefile 2022-04-30 11:32:21.246791512 +0200
|
||||
@@ -1,5 +1,4 @@
|
||||
-CFLAGS= -g -D_FILE_OFFSET_BITS=64
|
||||
-CC= cc
|
||||
+CFLAGS+= -fPIC
|
||||
|
||||
OBJS = imsetwcs.o imgetwcs.o matchstar.o findstar.o daoread.o wcscon.o \
|
||||
fitswcs.o wcsinit.o wcs.o ty2read.o webread.o tmcread.o \
|
||||
@@ -11,10 +10,17 @@
|
||||
sortstar.o platefit.o iget.o fileutil.o \
|
||||
wcslib.o lin.o cel.o proj.o sph.o wcstrig.o distort.o poly.o
|
||||
|
||||
-libwcs.a: $(OBJS)
|
||||
+all: libwcstools.so.1.0.0 libwcstools.a
|
||||
+
|
||||
+libwcstools.a: $(OBJS)
|
||||
ar rv $@ $?
|
||||
ranlib $@
|
||||
|
||||
+libwcstools.so.1.0.0: $(OBJS)
|
||||
+ $(CC) $(LDFLAGS) -shared -o $@ -Wl,-soname,libwcstools.so.1 $? -lm
|
||||
+ ln -s libwcstools.so.1.0.0 libwcstools.so.1
|
||||
+ ln -s libwcstools.so.1.0.0 libwcstools.so
|
||||
+
|
||||
actread.o: fitsfile.h wcscat.h wcs.h fitshead.h wcslib.h
|
||||
binread.o: wcscat.h wcs.h fitshead.h wcslib.h
|
||||
ctgread.o: wcscat.h wcs.h fitshead.h wcslib.h
|
||||
@@ -67,4 +73,4 @@
|
||||
worldpos.o: wcs.h fitshead.h wcslib.h
|
||||
|
||||
clean:
|
||||
- rm -f *.a *.o
|
||||
+ rm -f *.a *.o *.so *.so.*
|
||||
diff -udHrN -- a/Makefile b/Makefile
|
||||
--- a/Makefile 2021-10-12 21:55:01.000000000 +0200
|
||||
+++ b/Makefile 2022-04-30 15:52:57.095131468 +0200
|
||||
@@ -1,12 +1,11 @@
|
||||
-CFLAGS= -g -D_FILE_OFFSET_BITS=64
|
||||
-CC= cc
|
||||
-LIBWCS = libwcs/libwcs.a
|
||||
-LIBS = $(LIBWCS) -lm
|
||||
+CC= gcc
|
||||
+LIBWCS = libwcs/libwcstools.so
|
||||
+LIBS = -L libwcs -lwcstools -lm
|
||||
#LIBS = $(LIBWCS) -lm -lnsl -lsocket
|
||||
BIN = bin
|
||||
.PRECIOUS: ${LIBWCS} ${LIBNED}
|
||||
.c.o:
|
||||
- $(CC) -c $(CFLAGS) $(DEFS) $<
|
||||
+ $(CC) -c $(CFLAGS) $(CPPFLAGS) $(DEFS) $<
|
||||
|
||||
all: cphead delwcs delhead edhead fixpix gethead i2f imcat imhead immatch \
|
||||
imrot imsize imstar imwcs scat sethead addpix getpix setpix sky2xy \
|
||||
@@ -16,196 +15,195 @@
|
||||
isfile simpos bincat
|
||||
|
||||
addpix: addpix.c $(LIBWCS) libwcs/fitsfile.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/addpix addpix.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/addpix addpix.c $(LIBS)
|
||||
|
||||
bincat: bincat.c $(LIBWCS) libwcs/fitsfile.h libwcs/wcs.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/bincat bincat.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/bincat bincat.c $(LIBS)
|
||||
|
||||
char2sp: char2sp.c $(LIBWCS) libwcs/fitsfile.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/char2sp char2sp.c $(LIBWCS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/char2sp char2sp.c $(LIBWCS)
|
||||
|
||||
conpix: conpix.c $(LIBWCS) libwcs/fitsfile.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/conpix conpix.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/conpix conpix.c $(LIBS)
|
||||
|
||||
cphead: cphead.c $(LIBWCS) libwcs/fitsfile.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/cphead cphead.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/cphead cphead.c $(LIBS)
|
||||
|
||||
crlf: crlf.c
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/crlf crlf.c
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/crlf crlf.c
|
||||
|
||||
delwcs: delwcs.c $(LIBWCS) libwcs/fitsfile.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/delwcs delwcs.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/delwcs delwcs.c $(LIBS)
|
||||
|
||||
delhead: delhead.c $(LIBWCS) libwcs/fitsfile.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/delhead delhead.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/delhead delhead.c $(LIBS)
|
||||
|
||||
edhead: edhead.c $(LIBWCS) libwcs/fitsfile.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/edhead edhead.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/edhead edhead.c $(LIBS)
|
||||
|
||||
filename: filename.c
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/filename filename.c
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/filename filename.c
|
||||
|
||||
filedir: filedir.c
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/filedir filedir.c
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/filedir filedir.c
|
||||
|
||||
fileroot: fileroot.c
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/fileroot fileroot.c
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/fileroot fileroot.c
|
||||
|
||||
filext: filext.c
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/filext filext.c
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/filext filext.c
|
||||
|
||||
fixhead: fixhead.c $(LIBWCS) libwcs/fitsfile.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/fixhead fixhead.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/fixhead fixhead.c $(LIBS)
|
||||
|
||||
fixpix: fixpix.c $(LIBWCS) libwcs/fitsfile.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/fixpix fixpix.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/fixpix fixpix.c $(LIBS)
|
||||
|
||||
getcol: getcol.c $(LIBWCS) libwcs/wcscat.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/getcol getcol.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/getcol getcol.c $(LIBS)
|
||||
|
||||
getdate: getdate.c $(LIBWCS) libwcs/wcscat.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/getdate getdate.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/getdate getdate.c $(LIBS)
|
||||
|
||||
gethead: gethead.c $(LIBWCS) libwcs/wcs.h libwcs/fitsfile.h libwcs/wcscat.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/gethead gethead.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/gethead gethead.c $(LIBS)
|
||||
|
||||
getfits: getfits.c $(LIBWCS) libwcs/fitsfile.h libwcs/wcs.h libwcs/wcscat.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/getfits getfits.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/getfits getfits.c $(LIBS)
|
||||
|
||||
getpix: getpix.c $(LIBWCS) libwcs/wcs.h libwcs/fitsfile.h libwcs/wcscat.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/getpix getpix.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/getpix getpix.c $(LIBS)
|
||||
|
||||
gettab: gettab.c $(LIBWCS) libwcs/wcscat.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/gettab gettab.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/gettab gettab.c $(LIBS)
|
||||
|
||||
httpget: httpget.c $(LIBWCS) libwcs/wcscat.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/httpget httpget.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/httpget httpget.c $(LIBS)
|
||||
|
||||
htmlsp: htmlsp.c
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/htmlsp htmlsp.c
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/htmlsp htmlsp.c
|
||||
|
||||
i2f: i2f.c $(LIBWCS) libwcs/fitsfile.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/i2f i2f.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/i2f i2f.c $(LIBS)
|
||||
|
||||
imcat: imcat.c $(LIBWCS) libwcs/fitsfile.h libwcs/wcs.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/imcat imcat.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/imcat imcat.c $(LIBS)
|
||||
|
||||
imfill: imfill.c $(LIBWCS) libwcs/fitsfile.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/imfill imfill.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/imfill imfill.c $(LIBS)
|
||||
|
||||
imresize: imresize.c $(LIBWCS) libwcs/fitsfile.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/imresize imresize.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/imresize imresize.c $(LIBS)
|
||||
|
||||
imsmooth: imsmooth.c $(LIBWCS) libwcs/fitsfile.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/imsmooth imsmooth.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/imsmooth imsmooth.c $(LIBS)
|
||||
|
||||
imhead: imhead.c $(LIBWCS) libwcs/fitsfile.h libwcs/wcs.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/imhead imhead.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/imhead imhead.c $(LIBS)
|
||||
|
||||
imrot: imrot.c $(LIBWCS) libwcs/fitsfile.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/imrot imrot.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/imrot imrot.c $(LIBS)
|
||||
|
||||
imsize: imsize.c $(LIBWCS) libwcs/fitsfile.h libwcs/wcs.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/imsize imsize.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/imsize imsize.c $(LIBS)
|
||||
|
||||
imstack: imstack.c $(LIBWCS) libwcs/fitsfile.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/imstack imstack.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/imstack imstack.c $(LIBS)
|
||||
|
||||
imextract: imextract.c $(LIBWCS) libwcs/fitsfile.h libwcs/wcscat.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/imextract imextract.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/imextract imextract.c $(LIBS)
|
||||
|
||||
imstar: imstar.c $(LIBWCS) libwcs/fitsfile.h libwcs/wcs.h libwcs/lwcs.h libwcs/wcscat.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/imstar imstar.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/imstar imstar.c $(LIBS)
|
||||
|
||||
isfile: isfile.c $(LIBWCS) libwcs/fitshead.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/isfile isfile.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/isfile isfile.c $(LIBS)
|
||||
|
||||
isfits: isfits.c $(LIBWCS) libwcs/fitshead.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/isfits isfits.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/isfits isfits.c $(LIBS)
|
||||
|
||||
isnum: isnum.c $(LIBWCS) libwcs/fitshead.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/isnum isnum.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/isnum isnum.c $(LIBS)
|
||||
|
||||
isdate: isdate.c $(LIBWCS) libwcs/fitshead.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/isdate isdate.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/isdate isdate.c $(LIBS)
|
||||
|
||||
isimlist: isimlist.c $(LIBWCS) libwcs/fitsfile.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/isimlist isimlist.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/isimlist isimlist.c $(LIBS)
|
||||
|
||||
isrange: isrange.c
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/isrange isrange.c
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/isrange isrange.c
|
||||
|
||||
imwcs: imwcs.c $(LIBWCS) libwcs/fitsfile.h libwcs/lwcs.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/imwcs imwcs.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/imwcs imwcs.c $(LIBS)
|
||||
|
||||
immatch: immatch.c $(LIBWCS) libwcs/fitsfile.h libwcs/lwcs.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/immatch immatch.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/immatch immatch.c $(LIBS)
|
||||
|
||||
immwcs: immwcs.c $(LIBWCS) libwcs/fitsfile.h libwcs/lwcs.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/immwcs immwcs.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/immwcs immwcs.c $(LIBS)
|
||||
|
||||
keyhead: keyhead.c $(LIBWCS) libwcs/fitsfile.h libwcs/wcs.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/keyhead keyhead.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/keyhead keyhead.c $(LIBS)
|
||||
|
||||
matchcat: matchcat.c $(LIBWCS) libwcs/wcscat.h libwcs/wcs.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/matchcat matchcat.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/matchcat matchcat.c $(LIBS)
|
||||
|
||||
newfits: newfits.c $(LIBWCS) libwcs/fitshead.h libwcs/wcs.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/newfits newfits.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/newfits newfits.c $(LIBS)
|
||||
|
||||
remap: remap.c $(LIBWCS) libwcs/fitsfile.h libwcs/wcs.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/remap remap.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/remap remap.c $(LIBS)
|
||||
|
||||
scat: scat.c $(LIBWCS) libwcs/wcscat.h libwcs/wcs.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/scat scat.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/scat scat.c $(LIBS)
|
||||
|
||||
sethead: sethead.c $(LIBWCS) libwcs/fitsfile.h libwcs/wcs.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/sethead sethead.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/sethead sethead.c $(LIBS)
|
||||
|
||||
setpix: setpix.c $(LIBWCS) libwcs/fitsfile.h libwcs/wcscat.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/setpix setpix.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/setpix setpix.c $(LIBS)
|
||||
|
||||
sky2xy: sky2xy.c $(LIBWCS) libwcs/wcs.h libwcs/fitsfile.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/sky2xy sky2xy.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/sky2xy sky2xy.c $(LIBS)
|
||||
|
||||
skycoor: skycoor.c $(LIBWCS) libwcs/wcs.h libwcs/wcscat.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/skycoor skycoor.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/skycoor skycoor.c $(LIBS)
|
||||
|
||||
sp2char: sp2char.c $(LIBWCS) libwcs/fitsfile.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/sp2char sp2char.c $(LIBWCS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/sp2char sp2char.c $(LIBWCS)
|
||||
|
||||
subpix: subpix.c $(LIBWCS) libwcs/fitsfile.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/subpix subpix.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/subpix subpix.c $(LIBS)
|
||||
|
||||
sumpix: sumpix.c $(LIBWCS) libwcs/fitsfile.h libwcs/wcscat.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/sumpix sumpix.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/sumpix sumpix.c $(LIBS)
|
||||
|
||||
wcshead: wcshead.c $(LIBWCS) libwcs/fitsfile.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/wcshead wcshead.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/wcshead wcshead.c $(LIBS)
|
||||
|
||||
xy2sky: xy2sky.c $(LIBWCS) libwcs/wcs.h libwcs/wcscat.h
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/xy2sky xy2sky.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/xy2sky xy2sky.c $(LIBS)
|
||||
|
||||
-simpos: simpos.c libwcs/libwcs.a
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/simpos simpos.c $(LIBS)
|
||||
+simpos: simpos.c $(LIBWCS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/simpos simpos.c $(LIBS)
|
||||
|
||||
gsc2cat: gsc2cat.c $(LIBWCS)
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/gsc2cat gsc2cat.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/gsc2cat gsc2cat.c $(LIBS)
|
||||
|
||||
tmcat: tmcat.c
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/tmcat tmcat.c
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/tmcat tmcat.c
|
||||
|
||||
tmcate: tmcate.c
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/tmcate tmcate.c
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/tmcate tmcate.c
|
||||
|
||||
$(LIBWCS): libwcs/*.c libwcs/*.h
|
||||
- cd libwcs; make
|
||||
+ $(MAKE) CC=$(CC) -C libwcs
|
||||
|
||||
objclean:
|
||||
- cd libwcs; make clean
|
||||
+ $(MAKE) -C libwcs clean
|
||||
|
||||
binclean:
|
||||
rm -f ./bin/*
|
||||
|
||||
-clean:
|
||||
- make objclean; make binclean
|
||||
+clean: objclean binclean
|
||||
96
wcstools.spec
Normal file
96
wcstools.spec
Normal file
|
|
@ -0,0 +1,96 @@
|
|||
# https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval
|
||||
ExcludeArch: %{ix86}
|
||||
|
||||
%global build_type_safety_c 0
|
||||
|
||||
Name: wcstools
|
||||
Version: 3.9.7
|
||||
Release: %autorelease
|
||||
Summary: Software utilities to display and manipulate the WCS of a FITS image
|
||||
License: GPL-2.0-or-later
|
||||
URL: http://tdc-www.harvard.edu/wcstools
|
||||
Source0: http://tdc-www.harvard.edu/software/wcstools/%{name}-%{version}.tar.gz
|
||||
|
||||
BuildRequires: make
|
||||
BuildRequires: gcc
|
||||
|
||||
# Patch adjusted from Debian to create shared lib and rename it to avoid
|
||||
# conflicts with Mark Calabretta's wcslib package.
|
||||
Patch: wcstools-3.9.7_rename-libwcs-to-libwcstools.patch
|
||||
|
||||
# Patch to rename some conflicting binaries
|
||||
# new names in accordance to Debian renaming
|
||||
# see also fedora#1450190
|
||||
Patch: wcstools-3.9.7_rename-binaries.patch
|
||||
|
||||
# Since there's no way to reach out upstream other than email
|
||||
# and I don't get replies, this patch tries to fix build with GCC15
|
||||
Patch: fix_gcc15-c++23.patch
|
||||
|
||||
%description
|
||||
Wcstools is a set of software utilities, written in C, which create,
|
||||
display and manipulate the world coordinate system of a FITS or IRAF
|
||||
image, using specific keywords in the image header which relate pixel
|
||||
position within the image to position on the sky. Auxiliary programs
|
||||
search star catalogs and manipulate images.
|
||||
|
||||
|
||||
%package libs
|
||||
Summary: Wcstools shared library
|
||||
# most files have LGPL-2.0-or-later header
|
||||
# COPYING is LGPL-2.1-only
|
||||
License: LGPL-2.0-or-later AND LGPL-2.1-only
|
||||
|
||||
%description libs
|
||||
Shared library necessary to run wcstools and programs based on libwcs.
|
||||
|
||||
|
||||
%package devel
|
||||
Summary: Libraries, includes, etc. used to develop an application with wcstools
|
||||
License: LGPL-2.0-or-later AND LGPL-2.1-only
|
||||
Requires: %{name}-libs%{_isa} = %{version}-%{release}
|
||||
%description devel
|
||||
This are the files needed to develop an application using wcstools.
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
|
||||
# Fix wrong FSF address in source headers
|
||||
# asked upstream by mail to fix this
|
||||
grep -rl '59 Temple Place, Suite 330, Boston, MA 02111-1307 USA' --include=*.{c,h} | xargs -i@ sed -i 's/59 Temple Place, Suite 330, Boston, MA 02111-1307 USA/51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA./g' @
|
||||
|
||||
|
||||
%build
|
||||
%make_build
|
||||
|
||||
|
||||
%install
|
||||
%{__mkdir_p} %{buildroot}%{_libdir}
|
||||
%{__mkdir_p} %{buildroot}%{_bindir}
|
||||
%{__mkdir_p} %{buildroot}%{_includedir}/wcs
|
||||
%{__mkdir_p} %{buildroot}%{_mandir}/man1
|
||||
%{__install} -p bin/* %{buildroot}%{_bindir}
|
||||
%{__cp} -a libwcs/*.so* %{buildroot}%{_libdir}
|
||||
%{__install} -p -m 644 libwcs/*.h %{buildroot}%{_includedir}/wcs
|
||||
%{__install} -p -m 644 man/man1/* %{buildroot}%{_mandir}/man1
|
||||
|
||||
|
||||
|
||||
%files
|
||||
%license COPYING
|
||||
%doc NEWS Readme Programs
|
||||
%{_bindir}/*
|
||||
%{_mandir}/man1/*
|
||||
|
||||
%files libs
|
||||
%license libwcs/COPYING
|
||||
%{_libdir}/*.so.1*
|
||||
|
||||
%files devel
|
||||
%doc libwcs/NEWS
|
||||
%{_libdir}/*.so
|
||||
%{_includedir}/wcs
|
||||
|
||||
|
||||
%changelog
|
||||
%autochangelog
|
||||
Loading…
Add table
Add a link
Reference in a new issue