forked from drsteve/LANLGeoMag
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlanlgeomag.spec.in
127 lines (101 loc) · 2.85 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
%define debug_package %{nil}
%global __python /usr/bin/python3
%global clamp_mtime_to_source_date_epoch 0
%global source_date_epoch_from_changelog 0
%define name @PACKAGE@
%define version @VERSION@
%define release @PKG_RELEASE@
Summary: lanlgeomag -- lanlgeomag software collection
License: Copyright (C) 2010, LANS LLC, all rights reserved.
Name: %{name}
Version: %{version}
Release: %{release}%{?dist}
BuildRequires: texlive-latex
BuildRequires: gsl
BuildRequires: doxygen
Provides: lanlgeomag
#Requires: perl
Requires: check
Requires: gsl
Source: %{name}-%{version}.tar.gz
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.
%package devel
Summary: Development libraries and headers for lanlgeomag
Requires: lanlgeomag
%description devel
Development libraries and headers for lanlgeomag
%package data
Summary: Data files for lanlgeomag
Requires: lanlgeomag
%description data
Data files for lanlgeomag
%package doc
Summary: Doc files for lanlgeomag
Requires: lanlgeomag
%description doc
Doc files for lanlgeomag
%package python
Summary: Python bindings for lanlgeomag
Requires: lanlgeomag
%description python
Python bindings for lanlgeomag
# %package images
# Summary: Image files for lanlgeomag
# Requires: lanlgeomag
# %description images
# Image files for lanlgeomag
%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
echo "python_sitelib:"
echo %{python_sitelib}
%configure --enable-doxygen-doc --enable-doxygen-pdf --disable-perl
make %{?_smp_mflags} || true
make
%install
%makeinstall
%clean
#/bin/rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc README.md HACKING NEWS COPYING
%defattr(-,root,root,-)
%{_libdir}/*.so.*
%{_libdir}/pkgconfig/lgm.pc
%files devel
%defattr(-,root,root,-)
%{_includedir}/*
%{_libdir}/*.so*
%{_libdir}/*.*a
%{_docdir}/*
%files data
%defattr(-,root,root,-)
%{_datadir}/*
# /usr/share/LanlGeoMag/EopData/*
# /usr/share/LanlGeoMag/Data/*
%files doc
%defattr(-,root,root,-)
/usr/share/doc/lanlgeomag/*
#files python
#defattr(-,root,root,-)
#{python_sitelib}/*
#{_includedir}/Lgm/*
#{_libdir}/libLanlGeoMag*
#{_libdir}/pkgconfig/lgm.pc
#/usr/lib/python2.6/site-packages/lgmpy/*
#{_datadir}/*