1%define name @PACKAGE_NAME@
2%define version @PACKAGE_VERSION@
3%define release 1
4
5Summary: Extract catalogs of sources from astronomical images
6Name: %{name}
7Version: %{version}
8Release: %{release}
9Source0: ftp://ftp.iap.fr/pub/from_users/bertin/sextractor/%{name}-%{version}.tar.gz
10URL: http://terapix.iap.fr/soft/%{name}
11License: LGPL
12Group: Sciences/Astronomy
13BuildRoot: %{_tmppath}/%{name}-buildroot
14Prefix: %{_prefix}
15
16%description
17SExtractor stands for ``Source Extractor'': a software for making catalog of sources from astronomical images.
18
19%prep
20%setup -q
21
22%build
23if test "$GCCFLAGS"; then
24./configure --enable-static --prefix=$RPM_BUILD_ROOT/usr/local/ --mandir=$RPM_BUILD_ROOT/usr/local/man/
25make CFLAGS="$GCCFLAGS"
26else
27./configure --prefix=$RPM_BUILD_ROOT/usr/local/ --mandir=$RPM_BUILD_ROOT/usr/local/man/
28make
29fi
30
31%install
32make install
33
34%clean
35rm -rf $RPM_BUILD_ROOT
36
37%files
38%defattr(-,root,root)
39/usr/local/bin/sex
40/usr/local/man/man1/sex.1
41/usr/local/man/manx/sex.x
42%doc AUTHORS BUGS ChangeLog COPYING HISTORY INSTALL README THANKS doc/README.DOC doc/sextractor.pdf
43
44%changelog
45* @DATE2@ @PACKAGER@ <@PACKAGE_BUGREPORT@>
46- Automatic RPM rebuild
47* Tue May 13 2003 Emmanuel Bertin <bertin@iap.fr>
48- RPM build for V2.3
49* Fri Apr 04 2003 Emmanuel Bertin <bertin@iap.fr>
50- RPM build for V2.3b4
51* Wed Mar 05 2003 Emmanuel Bertin <bertin@iap.fr>
52- RPM build for V2.3b3
53* Fri Feb 07 2003 Emmanuel Bertin <bertin@iap.fr>
54- Second RPM build
55* Fri Jan 24 2003 Emmanuel Bertin <bertin@iap.fr>
56- Second RPM build
57* Sun Dec 15 2002 Emmanuel Bertin <bertin@iap.fr>
58- First RPM build
59
60# end of file
61