sextractor.spec.in 2.79 KB
Newer Older
1
2
3
4
5
6
7
8
9
#
#				sextractor.spec.in
#
# Process this file with autoconf to generate an RPM .spec packaging script.
#
#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
#
#	This file part of:	SExtractor
#
Emmanuel Bertin's avatar
Emmanuel Bertin committed
10
#	Copyright:		(C) 2002-2020 IAP/CNRS/SorbonneU
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#
#	License:		GNU General Public License
#
#	SExtractor is free software: you can redistribute it and/or modify
#	it under the terms of the GNU General Public License as published by
#	the Free Software Foundation, either version 3 of the License, or
# 	(at your option) any later version.
#	SExtractor is distributed in the hope that it will be useful,
#	but WITHOUT ANY WARRANTY; without even the implied warranty of
#	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#	GNU General Public License for more details.
#	You should have received a copy of the GNU General Public License
#	along with SExtractor. If not, see <http://www.gnu.org/licenses/>.
#
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25
#	Last modified:		02/01/2020
26
27
28
#
#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

29
%define name @PACKAGE_TARNAME@
Emmanuel Bertin's avatar
Emmanuel Bertin committed
30
%define version @PACKAGE_VERSION@
31
32
%define release @PACKAGE_RELEASE@%{?dist}
%define debug_package %{nil}
33
%undefine _missing_build_ids_terminate_build
Emmanuel Bertin's avatar
Emmanuel Bertin committed
34
35
36
37
38

Summary: Extract catalogs of sources from astronomical images
Name: %{name}
Version: %{version}
Release: %{release}
39
40
Source0: http://astromatic.net/download/%{name}/%{name}-%{version}.tar.gz
URL: http://astromatic.net/software/%{name}/
41
License: GPL v3+
Emmanuel Bertin's avatar
Emmanuel Bertin committed
42
43
Group: Sciences/Astronomy
BuildRoot: %{_tmppath}/%{name}-buildroot
Emmanuel Bertin's avatar
Emmanuel Bertin committed
44
45
46
BuildRequires: pkgconfig
BuildRequires: fftw-devel >= 3.1
BuildRequires: atlas-devel >= 3.6.0
Emmanuel Bertin's avatar
Emmanuel Bertin committed
47
48

%description
49
Extract catalogs of sources from astronomical images
Emmanuel Bertin's avatar
Emmanuel Bertin committed
50
51
52
53
54

%prep
%setup -q

%build
55
if test "$USE_BEST"; then
56
%configure --enable-mkl --enable-auto-flags --enable-best-link --with-release=@PACKAGE_RELEASE@
57
elif test "$USE_ICC"; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
58
%configure --enable-mkl --with-release=@PACKAGE_RELEASE@
Emmanuel Bertin's avatar
Emmanuel Bertin committed
59
else
60
%configure --with-release=@PACKAGE_RELEASE@
Emmanuel Bertin's avatar
Emmanuel Bertin committed
61
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
62
make %{?_smp_mflags}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
63
64

%install
Emmanuel Bertin's avatar
Emmanuel Bertin committed
65
66
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
Emmanuel Bertin's avatar
Emmanuel Bertin committed
67
68
69
70
71
72

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
Emmanuel Bertin's avatar
Emmanuel Bertin committed
73
%doc config AUTHORS BUGS ChangeLog COPYRIGHT HISTORY INSTALL LICENSE README.md THANKS
Emmanuel Bertin's avatar
Emmanuel Bertin committed
74
75
76
77
%{_bindir}/sex
%{_bindir}/ldactoasc
%{_mandir}/man1/sex.1*
%{_mandir}/manx/sex.x*
78
%{_datadir}/@PACKAGE_TARNAME@
Emmanuel Bertin's avatar
Emmanuel Bertin committed
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96

%changelog
* @DATE2@ @PACKAGER@ <@PACKAGE_BUGREPORT@>
- Automatic RPM rebuild
* Tue May 13 2003 Emmanuel Bertin <bertin@iap.fr>
- RPM build for V2.3
* Fri Apr 04 2003 Emmanuel Bertin <bertin@iap.fr>
- RPM build for V2.3b4
* Wed Mar 05 2003 Emmanuel Bertin <bertin@iap.fr>
- RPM build for V2.3b3
* Fri Feb 07 2003 Emmanuel Bertin <bertin@iap.fr>
- Second RPM build
* Fri Jan 24 2003 Emmanuel Bertin <bertin@iap.fr>
- Second RPM build
* Sun Dec 15 2002 Emmanuel Bertin <bertin@iap.fr>
- First RPM build

# end of file