-
Notifications
You must be signed in to change notification settings - Fork 0
/
weightwatcher.spec.in
88 lines (77 loc) · 2.49 KB
/
weightwatcher.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#
# weightwatcher.spec.in
#
# Process this file with autoconf to generate an RPM .spec packaging script.
#
#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
#
# This file part of: WeightWatcher
#
# Copyright: (C) 2006-2010 Emmanuel Bertin -- IAP/CNRS/UPMC
# & Chiara Marmo -- IAP/CNRS
#
# License: GNU General Public License
#
# WeightWatcher 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.
# WeightWatcher 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 WeightWatcher. If not, see <http://www.gnu.org/licenses/>.
#
# Last modified: 26/10/2010
#
#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%define name @PACKAGE_NAME@
%define version @PACKAGE_VERSION@
%define release 1
%undefine _missing_build_ids_terminate_build
Summary: combine weight-maps, flag-maps and polygon data
Name: %{name}
Version: %{version}
Release: %{release}
Source0: ftp://ftp.iap.fr/pub/from_users/bertin/%{name}/%{name}-%{version}.tar.gz
URL: http://astromatic.net/software/%{name}/
License: GPL v3+
Group: Sciences/Astronomy
BuildRoot: %{_tmppath}/%{name}-buildroot
BuildRequires: pkgconfig
%description
WeightWatcher is a program that combines weight-maps, flag-maps and
polygon data in order to produce control maps which can directly be
used in astronomical image-processing packages like Swarp or SExtractor.
%prep
%setup -q
%build
if test "$USE_BEST"; then
%configure --enable-icc --enable-auto-flags --enable-best-link
elif test "$USE_ICC"; then
%configure --enable-icc
else
%configure
fi
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc AUTHORS BUGS ChangeLog COPYRIGHT HISTORY INSTALL LICENSE README THANKS doc/ww.pdf
%{_bindir}/ww
%{_mandir}/man1/ww.1*
%{_mandir}/manx/ww.x*
%{_datadir}/@PACKAGE_NAME@
%changelog
* @DATE2@ @PACKAGER@ <@PACKAGE_BUGREPORT@>
- Automatic RPM rebuild
* Tue Apr 13 2004 Emmanuel Bertin <[email protected]>
- Second RPM build
* Sun Jan 12 2003 Emmanuel Bertin <[email protected]>
- First RPM build
# end of file