Compare commits
4 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
166e661918 | ||
|
|
09056ea3c6 | ||
|
|
9b9ed34ff1 | ||
|
|
6cdd66df52 |
4 changed files with 515 additions and 0 deletions
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
wcstools-3.8.1.tar.gz
|
||||
/wcstools-3.9.4.tar.gz
|
||||
/wcstools-3.9.5.tar.gz
|
||||
/wcstools-3.9.6.tar.gz
|
||||
1
sources
1
sources
|
|
@ -0,0 +1 @@
|
|||
SHA512 (wcstools-3.9.6.tar.gz) = 13e4acf6ab733d7d3e75792d19550e7165b6d1d6e0475ccae6a75a6eef791c53ddad32d1c734930e8fa5218088ad02b1d601ef4c00b16e979ac3febbd5d22716
|
||||
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
|
||||
203
wcstools.spec
Normal file
203
wcstools.spec
Normal file
|
|
@ -0,0 +1,203 @@
|
|||
Name: wcstools
|
||||
Version: 3.9.6
|
||||
Release: 1%{?dist}
|
||||
Summary: Software utilities to display and manipulate the WCS of a FITS image
|
||||
License: GPLv2+
|
||||
URL: http://tdc-www.harvard.edu/wcstools
|
||||
Source0: http://tdc-www.harvard.edu/software/wcstools/%{name}-%{version}.tar.gz
|
||||
|
||||
BuildRequires: gcc
|
||||
|
||||
# Patch from Debian to create shared lib and rename it to avoid
|
||||
# conflicts with Mark Calabretta's wcslib package.
|
||||
Patch0: wcstools-3.9.6-rename-shlib.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
|
||||
License: LGPLv2+
|
||||
|
||||
%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: LGPLv2+
|
||||
Requires: %{name}-libs%{_isa} = %{version}-%{release}
|
||||
%description devel
|
||||
This are the files needed to develop an application using wcstools.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -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
|
||||
CFLAGS="$RPM_OPT_FLAGS"
|
||||
CPPFLAGS="$RPM_OPT_FLAGS"
|
||||
export CFLAGS
|
||||
export CPPFLAGS
|
||||
|
||||
# Parallel build fails
|
||||
make
|
||||
|
||||
%install
|
||||
%{__mkdir_p} %{buildroot}%{_libdir}
|
||||
%{__mkdir_p} %{buildroot}%{_bindir}
|
||||
%{__mkdir_p} %{buildroot}%{_includedir}/wcs
|
||||
%{__mkdir_p} %{buildroot}%{_mandir}/man1
|
||||
%{__install} -p bin/* %{buildroot}%{_bindir}
|
||||
|
||||
# Rename conflicting binary bug #1450190
|
||||
# Mailed upstream, no response
|
||||
# Debian uses the same rename
|
||||
mv %{buildroot}%{_bindir}/remap %{buildroot}%{_bindir}/wcsremap
|
||||
|
||||
%{__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
|
||||
* Sat Jun 27 2020 Mattia Verga <mattia.verga@protonmail.com> - 3.9.6-1
|
||||
- Update to 3.9.6
|
||||
|
||||
* 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.
|
||||
Loading…
Add table
Add a link
Reference in a new issue