-
Notifications
You must be signed in to change notification settings - Fork 19
/
lanlgeomag.spec.in
71 lines (63 loc) · 2.26 KB
/
lanlgeomag.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
%define debug_package %{nil}
%define name @PACKAGE@
%define version @VERSION@
%define release @PKG_RELEASE@
## make sure you define _topdir as $HOME/rpmbuild in your .rpmmacros
#%global buildroot %{_topdir}/BUILDROOT
Summary: lanlgeomag -- lanlgeomag software collection
License: Copyright (C) 2010, LANS LLC, all rights reserved.
Name: %{name}
Version: %{version}
Release: %{release}%{?dist}
Provides: lanlgeomag
Requires: perl
Requires: check
Requires: gsl
Requires: hdf5
Source: %{name}-%{version}.tar.gz
Prefix: /usr
Group: Applications/Science
Provides: lanlgeomag
Buildroot: %{_topdir}/BUILDROOT/%{name}-%{version}-%{release}.%{_arch}
buildroot: %{_topdir}/BUILDROOT/%{name}-%{version}-%{release}.%{_arch}
%description
LANLGeoMag is a C-based library of magnetic-field models and tools for computing quantities relevant to geophysical and geospace research that rely on these models.
More generally, the library provides functionality to perform high precision transforms between time standards and coordinate systems.
%prep
mkdir -p %{_topdir}/BUILD %{_topdir}/BUILDROOT
echo "name is" "%{name}"
echo "version is" "%{version}"
echo "_isa is" "%{_isa}"
echo "_arch is" "%{_arch}"
echo "__isa_name is" "%{__isa_name}"
echo "__isa_bits is" "%{__isa_bits}"
%setup -q
%build
#./configure --prefix=/usr --disable-doxygen-html --disable-doxygen-pdf
%configure --libdir=${RPM_BUILD_ROOT}%{_libdir} --prefix=${RPM_BUILD_ROOT}/usr --enable-doxygen-doc --enable-doxygen-pdf
make -j
%install
#export RPM_BUILD_ROOT=%{_topdir}/BUILDROOT/%{name}-%{version}-%{release}.%{_arch}
#export RPM_BUILD_ROOT=%{_topdir}/BUILDROOT
echo _topdir is %{_topdir}
echo RPM_BUILD_ROOT is $RPM_BUILD_ROOT
echo buildroot is %{buildroot}
echo _builddir is %{_builddir}
#make prefix=${RPM_BUILD_ROOT}/usr install
%makeinstall
#make install
#make install-man
#make doxygen-doc
#mkdir -p %{buildroot}/share/doc/%{name}
#cp -p doxygen-doc/lanlgeomag.pdf %{buildroot}/share/doc/%{name}
%clean
/bin/rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
#%doc README HACKING NEWS COPYING
/usr/include/Lgm/*
/usr/lib64/libLanlGeoMag*
/usr/lib64/pkgconfig/lgm.pc
/usr/lib/python2.6/site-packages/lgmpy/*
/usr/share/LanlGeoMag/*
/usr/share/doc/lanlgeomag/*