rpms/funtools/FC-6 funtools-makefile.patch, NONE, 1.1 funtools.spec, NONE, 1.1 sources, 1.1, 1.2
Sergio Pascual (sergiopr)
fedora-extras-commits at redhat.com
Tue Mar 27 13:53:19 UTC 2007
Author: sergiopr
Update of /cvs/extras/rpms/funtools/FC-6
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv23126
Modified Files:
sources
Added Files:
funtools-makefile.patch funtools.spec
Log Message:
Imporintg funtools into FC-6
funtools-makefile.patch:
--- NEW FILE funtools-makefile.patch ---
diff -ur funtools-1.3.0b29/filter/Makefile.in funtools-1.3.0b29.new/filter/Makefile.in
--- funtools-1.3.0b29/filter/Makefile.in 2006-03-20 19:42:11.000000000 +0100
+++ funtools-1.3.0b29.new/filter/Makefile.in 2007-03-26 10:47:02.000000000 +0200
@@ -29,6 +29,25 @@
prefix = @prefix@
exec_prefix = @exec_prefix@
+bindir = @bindir@
+build_alias = @build_alias@
+datadir = @datadir@
+host_alias = @host_alias@
+includedir = @includedir@
+nfodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+oldincludedir = @oldincludedir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
# The following definition can be set to non-null for special systems
# like AFS with replication. It allows the pathnames used for installation
@@ -38,13 +57,13 @@
INSTALL_ROOT =
# Directory in which to install the .a, .so, and .o files:
-LIB_INSTALL_DIR = $(INSTALL_ROOT)$(exec_prefix)/lib
+LIB_INSTALL_DIR = $(INSTALL_ROOT)$(libdir)
# Directory in which to install the programs:
-BIN_INSTALL_DIR = $(INSTALL_ROOT)$(exec_prefix)/bin
+BIN_INSTALL_DIR = $(INSTALL_ROOT)$(bindir)
# Directory in which to install the include files:
-INCLUDE_INSTALL_DIR = $(INSTALL_ROOT)$(prefix)/include
+INCLUDE_INSTALL_DIR = $(INSTALL_ROOT)$(includedir)/funtools/filt
# util files are in the util directory at same level
UTIL_INC = -I../util
@@ -55,7 +74,7 @@
#FITSY_LIBS = -L../fitsy
# wcs files are in the wcs subdirectory
-WCS_INC = -I../wcs
+WCS_INC = -I/usr/include/wcs
#WCS_LIBS = -L../wcs -lwcs
# extra includes for compiling
@@ -161,7 +180,7 @@
do \
if [ ! -d $$i ] ; then \
echo "Making directory $$i"; \
- mkdir $$i; \
+ mkdir -p $$i; \
chmod 755 $$i; \
else true; \
fi; \
diff -ur funtools-1.3.0b29/fitsy/Makefile.in funtools-1.3.0b29.new/fitsy/Makefile.in
--- funtools-1.3.0b29/fitsy/Makefile.in 2006-10-30 17:51:58.000000000 +0100
+++ funtools-1.3.0b29.new/fitsy/Makefile.in 2007-03-26 10:47:02.000000000 +0200
@@ -28,6 +28,25 @@
prefix = @prefix@
exec_prefix = @exec_prefix@
+bindir = @bindir@
+build_alias = @build_alias@
+datadir = @datadir@
+host_alias = @host_alias@
+includedir = @includedir@
+nfodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+oldincludedir = @oldincludedir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
# The following definition can be set to non-null for special systems
# like AFS with replication. It allows the pathnames used for installation
@@ -37,13 +56,13 @@
INSTALL_ROOT =
# Directory in which to install the .a, .so, and .o files:
-LIB_INSTALL_DIR = $(INSTALL_ROOT)$(exec_prefix)/lib
+LIB_INSTALL_DIR = $(INSTALL_ROOT)$(libdir)
# Directory in which to install the programs:
-BIN_INSTALL_DIR = $(INSTALL_ROOT)$(exec_prefix)/bin
+BIN_INSTALL_DIR = $(INSTALL_ROOT)$(bindir)
# Directory in which to install the include files:
-INCLUDE_INSTALL_DIR = $(INSTALL_ROOT)$(prefix)/include
+INCLUDE_INSTALL_DIR = $(INSTALL_ROOT)$(includedir)/funtools/fitsy
# There are just too many different versions of "install" around;
# better to use the install-sh script that comes with the distribution,
diff -ur funtools-1.3.0b29/Makefile.in funtools-1.3.0b29.new/Makefile.in
--- funtools-1.3.0b29/Makefile.in 2007-02-28 18:50:16.000000000 +0100
+++ funtools-1.3.0b29.new/Makefile.in 2007-03-26 10:48:41.000000000 +0200
@@ -37,19 +37,19 @@
INSTALL_ROOT =
# Directory in which to install the .a or .so binary for the FUNTOOLS library:
-LIB_INSTALL_DIR = $(INSTALL_ROOT)$(exec_prefix)/lib
+LIB_INSTALL_DIR = $(INSTALL_ROOT)$(libdir)
# Directory in which to install the program wish:
-BIN_INSTALL_DIR = $(INSTALL_ROOT)$(exec_prefix)/bin
+BIN_INSTALL_DIR = $(INSTALL_ROOT)$(bindir)
# Directory in which to install the funtools.h include file:
-INCLUDE_INSTALL_DIR = $(INSTALL_ROOT)$(prefix)/include
+INCLUDE_INSTALL_DIR = $(INSTALL_ROOT)$(includedir)/funtools
# Top-level directory for manual entries:
-MAN_INSTALL_DIR = $(INSTALL_ROOT)$(prefix)/man
+MAN_INSTALL_DIR = $(INSTALL_ROOT)$(mandir)
# Top-level directory for share entries:
-MAN_SHARE_DIR = $(INSTALL_ROOT)$(prefix)/share/funtools
+MAN_SHARE_DIR = $(INSTALL_ROOT)$(datadir)/funtools
# util files are in the util subdirectory
UTIL_INC = -I./util
@@ -60,7 +60,7 @@
# FITSY_LIBS = -L./fitsy -lfitsy
# wcs files are in the wcs subdirectory
-WCS_INC = -I./wcs
+WCS_INC = -I/usr/include/wcs
# WCS_LIBS = -L./wcs -lwcs
# filter files are in the filter subdirectory
@@ -74,7 +74,7 @@
EXTRA_LIBS = @EXTRA_LIBS@
# the full set of libraries for linking
-LIBS = $(UTIL_LIBS) $(FILTER_LIBS) $(WCS_LIBS) $(FITSY_LIBS) \
+LIBS = $(UTIL_LIBS) $(FILTER_LIBS) $(FITSY_LIBS) \
$(EXTRA_LIBS) -lm
# To change the compiler switches, for example to change from -O
@@ -111,6 +111,30 @@
INSTALL_PROGRAM = ${INSTALL}
INSTALL_DATA = ${INSTALL} -m 644
+# Added by fedora rpm patch
+bindir = @bindir@
+build_alias = @build_alias@
+datadir = @datadir@
+exec_prefix = @exec_prefix@
+host_alias = @host_alias@
+includedir = @includedir@
+nfodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+oldincludedir = @oldincludedir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+# end
+
+
# which awk-like program do we have?
PRE= @PRE@
POST= @POST@
@@ -160,7 +184,7 @@
# this is used in the link line
# LLIB = $(LIB)
-LLIB = @LLIB@
+LLIB = @LLIB@
# libraries containing main as subroutines
MAINLIB = lib$(PACKAGE)MainLib.a
@@ -225,10 +249,10 @@
echo $(PROGS) | ./mkfunmainlib > funmainlib.c;
shlib: sublib $(LIBOBJS)
- @(rm -rf $(PACKAGE)tmp; mkdir $(PACKAGE)tmp; \
+ @(rm -rf $(PACKAGE)tmp; mkdir -p $(PACKAGE)tmp; \
(cd $(PACKAGE)tmp && ar x ../$(LIB)); \
CC='$(CC)' CXX=$(CXX) \
- ./mklib -o $(PACKAGE) $(PACKAGE)tmp/*.o; \
+ ./mklib -o $(PACKAGE) $(PACKAGE)tmp/*.o $(EXTRA_LIBS) -lm; \
rm -rf $(PACKAGE)tmp;)
mainlib: $(MAINLIBOBJS) funmainlib.o lex.calc.o
@@ -237,7 +261,7 @@
$(RANLIB) lib$(PACKAGE)MainLib.a)
shmainlib: mainlib
- @(rm -rf $(PACKAGE)tmp; mkdir $(PACKAGE)tmp; \
+ @(rm -rf $(PACKAGE)tmp; mkdir -p $(PACKAGE)tmp; \
(cd $(PACKAGE)tmp && ar x ../lib$(PACKAGE)MainLib.a); \
CC='$(CC)' CXX='$(CXX)' \
./mklib -o $(PACKAGE)MainLib -L. -lfuntools $(PACKAGE)tmp/*.o;\
@@ -251,7 +275,7 @@
@(rm -rf $(PACKAGE)tmp; mkdir $(PACKAGE)tmp; \
(cd $(PACKAGE)tmp && ar x ../$(LIB) && ar x ../libtclfun.a); \
CC='$(CC)' CXX='$(CXX)' \
- ./mklib -o tclfun $(PACKAGE)tmp/*.o; \
+ ./mklib -o tclfun $(PACKAGE)tmp/*.o $(EXTRA_LIBS) -lm; \
rm -rf $(PACKAGE)tmp; \
test -r pkgIndex.tcl && mv pkgIndex.tcl pkgIndex.tcl-old; \
SHLIB=libtclfun.so; \
@@ -370,6 +394,7 @@
funtools.ds9: funtools_ds9.tmpl
sed -e 's#PRE#$(PRE)#g;s#POST#$(POST)#g;s#GUNZIP#$(GUNZIP)#g' funtools_ds9.tmpl > funtools.ds9
+ chmod +x funtools.ds9
diff:
@-(for file in "`ls *.c`"; \
@@ -413,7 +438,7 @@
else \
echo "Installing $$i" ; \
$(INSTALL_DATA) $$i $(LIB_INSTALL_DIR)/$$i ; \
- chmod 555 $(LIB_INSTALL_DIR)/$$i; \
+ chmod 755 $(LIB_INSTALL_DIR)/$$i; \
fi; \
done;)
@@ -422,7 +447,7 @@
do \
if [ ! -d $$i ] ; then \
echo "Making directory $$i"; \
- mkdir $$i; \
+ mkdir -p $$i; \
chmod 755 $$i; \
else true; \
fi; \
@@ -432,7 +457,7 @@
echo "Installing $$XLIB"; \
$(INSTALL_DATA) $$XLIB $(LIB_INSTALL_DIR)/$$XLIB; \
(cd $(LIB_INSTALL_DIR); $(RANLIB) $$XLIB); \
- chmod 555 $(LIB_INSTALL_DIR)/$$XLIB; \
+ chmod 755 $(LIB_INSTALL_DIR)/$$XLIB; \
fi;
@echo "Installing funtools.h"
@$(INSTALL_DATA) funtools.h $(INCLUDE_INSTALL_DIR)/funtools.h
@@ -462,7 +487,7 @@
install-man:
@if [ ! -d $(MAN_INSTALL_DIR) ] ; then \
echo "Making directory $(MAN_INSTALL_DIR)"; \
- mkdir $(MAN_INSTALL_DIR); \
+ mkdir -p $(MAN_INSTALL_DIR); \
chmod 755 $(MAN_INSTALL_DIR); \
else true; \
fi;
@@ -473,7 +498,7 @@
M="$(MAN_INSTALL_DIR)/man$$E"; \
if [ ! -d $$M ] ; then \
echo "Making directory $$M"; \
- mkdir $$M; \
+ mkdir -p $$M; \
chmod 755 $$M; \
else true; \
fi; \
diff -ur funtools-1.3.0b29/util/Makefile.in funtools-1.3.0b29.new/util/Makefile.in
--- funtools-1.3.0b29/util/Makefile.in 2007-02-09 17:37:53.000000000 +0100
+++ funtools-1.3.0b29.new/util/Makefile.in 2007-03-26 10:47:02.000000000 +0200
@@ -28,7 +28,26 @@
# to the "configure" script.
prefix = @prefix@
-exec_prefix = @exec_prefix@
+bindir = @bindir@
+build_alias = @build_alias@
+datadir = @datadir@
+exec_prefix = @exec_prefix@
+host_alias = @host_alias@
+includedir = @includedir@
+nfodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+oldincludedir = @oldincludedir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
# The following definition can be set to non-null for special systems
# like AFS with replication. It allows the pathnames used for installation
@@ -38,13 +57,13 @@
INSTALL_ROOT =
# Directory in which to install the .a, .so, and .o files:
-LIB_INSTALL_DIR = $(INSTALL_ROOT)$(exec_prefix)/lib
+LIB_INSTALL_DIR = $(INSTALL_ROOT)$(libdir)
# Directory in which to install the programs:
-BIN_INSTALL_DIR = $(INSTALL_ROOT)$(exec_prefix)/bin
+BIN_INSTALL_DIR = $(INSTALL_ROOT)$(bindir)
# Directory in which to install the include files:
-INCLUDE_INSTALL_DIR = $(INSTALL_ROOT)$(prefix)/include
+INCLUDE_INSTALL_DIR = $(INSTALL_ROOT)$(includedir)/funtools/util
# extra includes for compiling
INCLUDES =
@@ -174,7 +193,7 @@
$(CC) -I$(ZDIR) -c $(CFLAGS) $(ZDIR)/inffast.c
gio.o: gio.c gio.h
- $(CC) -c $(CC_SWITCHES) -I$(ZDIR) gio.c
+ $(CC) -c $(CC_SWITCHES) gio.c
gcat.o: gcat.c gio.h
@@ -192,7 +211,7 @@
do \
if [ ! -d $$i ] ; then \
echo "Making directory $$i"; \
- mkdir $$i; \
+ mkdir -p $$i; \
chmod 755 $$i; \
else true; \
fi; \
diff -ur funtools-1.3.0b29/wcs/Makefile.in funtools-1.3.0b29.new/wcs/Makefile.in
--- funtools-1.3.0b29/wcs/Makefile.in 2006-11-30 19:46:29.000000000 +0100
+++ funtools-1.3.0b29.new/wcs/Makefile.in 2007-03-26 10:47:02.000000000 +0200
@@ -27,7 +27,26 @@
# to the "configure" script.
prefix = @prefix@
-exec_prefix = @exec_prefix@
+bindir = @bindir@
+build_alias = @build_alias@
+datadir = @datadir@
+exec_prefix = @exec_prefix@
+host_alias = @host_alias@
+includedir = @includedir@
+nfodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+oldincludedir = @oldincludedir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
# The following definition can be set to non-null for special systems
# like AFS with replication. It allows the pathnames used for installation
@@ -37,13 +56,13 @@
INSTALL_ROOT =
# Directory in which to install the .a or .so binary for the WCS library:
-LIB_INSTALL_DIR = $(INSTALL_ROOT)$(exec_prefix)/lib
+LIB_INSTALL_DIR = $(INSTALL_ROOT)$(libdir)
# Directory in which to install the program wish:
-BIN_INSTALL_DIR = $(INSTALL_ROOT)$(exec_prefix)/bin
+BIN_INSTALL_DIR = $(INSTALL_ROOT)$(bindir)
# Directory in which to install the include file wcs.h:
-INCLUDE_INSTALL_DIR = $(INSTALL_ROOT)$(prefix)/include
+INCLUDE_INSTALL_DIR = $(INSTALL_ROOT)$(includedir)/funtools
# To change the compiler switches, for example to change from -O
# to -g, change the following line:
@@ -136,7 +155,7 @@
do \
if [ ! -d $$i ] ; then \
echo "Making directory $$i"; \
- mkdir $$i; \
+ mkdir -p $$i; \
chmod 755 $$i; \
else true; \
fi; \
@@ -148,12 +167,12 @@
(cd $(LIB_INSTALL_DIR); $(RANLIB) $$XLIB); \
chmod 555 $(LIB_INSTALL_DIR)/$$XLIB; \
fi;
- @echo "Installing fitshead.h"
- @$(INSTALL_DATA) fitshead.h $(INCLUDE_INSTALL_DIR)/fitshead.h
- @echo "Installing wcs.h"
- @$(INSTALL_DATA) wcs.h $(INCLUDE_INSTALL_DIR)/wcs.h
- @echo "Installing wcslib.h"
- @$(INSTALL_DATA) wcslib.h $(INCLUDE_INSTALL_DIR)/wcslib.h
+ @echo "Skipping fitshead.h"
+# @$(INSTALL_DATA) fitshead.h $(INCLUDE_INSTALL_DIR)/fitshead.h
+ @echo "Skipping wcs.h"
+# @$(INSTALL_DATA) wcs.h $(INCLUDE_INSTALL_DIR)/wcs.h
+ @echo "Skipping wcslib.h"
+# @$(INSTALL_DATA) wcslib.h $(INCLUDE_INSTALL_DIR)/wcslib.h
Makefile: Makefile.in
$(SHELL) config.status
--- NEW FILE funtools.spec ---
Name: funtools
Version: 1.3.0
Release: 0.4.b29%{?dist}
Summary: FITS library and utilities
# Upstream version
%define upversion 1.3.0b29
Group: Development/Libraries
License: LGPL
URL: http://hea-www.harvard.edu/RD/funtools/
Source0: http://hea-www.harvard.edu/saord/download/funtools/%{name}-%{upversion}.tar.gz
Patch0: funtools-makefile.patch
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: libwcs-devel tcl-devel zlib-devel
Requires: gnuplot
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
%description
Funtools, is a "minimal buy-in" FITS library and utility package from
the SAO/HEAD R&D group. The Funtools library provides simplified access to
FITS images and binary tables, as well as to raw array and binary event lists.
The Funtools utilities provide high-level support for processing
astronomical data.
%package devel
Summary: Headers for developing programs that will use %{name}
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
These are the header files and libraries needed to develop a %{name}
application.
%prep
%setup -q -n %{name}-%{upversion}
%patch0 -p1
%build
%configure --enable-shared=link --with-wcslib=%{_libdir}/libwcs.so \
--with-zlib=%{_libdir}/libz.so --with-tcl=%{_libdir} --enable-dl
# Parallel build does not work currently
%{__make} EXTRA_LIBS="-lwcs -lz -ldl"
%{__make} shtclfun EXTRA_LIBS="-ltcl -lwcs -lz -ldl"
%install
%{__rm} -fr %{buildroot}
%{__rm} -fr %{buildroot}
%{__make} INSTALL_ROOT=%{buildroot} install
mv %{buildroot}/%{_bindir}/funtools.ds9 %{buildroot}/%{_datadir}/funtools
mv %{buildroot}/%{_bindir}/funcalc.sed %{buildroot}/%{_datadir}/funtools
%clean
%{__rm} -fr %{buildroot}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%doc COPYING
%{_bindir}/*
%{_libdir}/*so.*
%{_mandir}/man1/*
%{_datadir}/%{name}
%files devel
%defattr(-,root,root)
%doc doc/*.html
%doc doc/*.pdf
%{_libdir}/*.so
%{_libdir}/pkgconfig/funtools.pc
%exclude %{_libdir}/*.a
%{_includedir}/*
%{_mandir}/man3/*
%{_mandir}/mann/*
%changelog
* Mon Mar 26 2007 Sergio Pascual <spr at astrax.fis.ucm.es> 1.3.0-0.4.b29
- Funtools Approved
- Parallel make does not work
- Problem with undefined non weak symbols in libtclfun fixed
* Fri Mar 23 2007 Sergio Pascual <spr at astrax.fis.ucm.es> 1.3.0-0.3.b29
- Removed _smp_mflags
* Thu Mar 22 2007 Sergio Pascual <spr at astrax.fis.ucm.es> 1.3.0-0.2.b29
- Updated funtools-makefile.patch
- Added EXTRA_LIBS to compilation step
* Tue Mar 20 2007 Sergio Pascual <spr at astrax.fis.ucm.es> 1.3.0-0.1.b29
- Initial spec file
Index: sources
===================================================================
RCS file: /cvs/extras/rpms/funtools/FC-6/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 27 Mar 2007 12:49:48 -0000 1.1
+++ sources 27 Mar 2007 13:52:46 -0000 1.2
@@ -0,0 +1 @@
+2022e7ed88b4128e1cc3890b2a127629 funtools-1.3.0b29.tar.gz
More information about the fedora-extras-commits
mailing list