-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathior.spec
176 lines (140 loc) · 4.82 KB
/
ior.spec
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
%if (0%{?suse_version} >= 1500)
%global module_load() MODULEPATH=/usr/share/modules module load gnu-%{1}
%else
%global module_load() module load mpi/%{1}-%{_arch}
%endif
%global shortcommit %(c=%{commit};echo ${c:0:7})
Name: ior
Version: 3.3.0
Release: 20%{?commit:.g%{shortcommit}}%{?dist}
Summary: IOR-HPC
License: GPL
URL: https://github.com/hpc/%{name}/
Source0: https://github.com/hpc/%{name}/releases/download/%{version}/%{name}-%{version}.tar.gz
%if "%{?commit}" != ""
Patch1: %{version}..%{commit}.patch
%endif
Patch3: daos-configure.patch
BuildRequires: mpich-devel
BuildRequires: hwloc-devel
BuildRequires: libevent-devel
BuildRequires: unzip
BuildRequires: autoconf, automake
BuildRequires: daos-devel
BuildRequires: hdf5-mpich-devel%{?_isa}
BuildRequires: mercury-devel
BuildRequires: chrpath
%if (0%{?suse_version} >= 1500)
BuildRequires: lua-lmod
%else
BuildRequires: Lmod
%endif
Obsoletes: mdtest < 2.0.0
Provides: mdtest = %{version}-%{release}
Provides: ior-hpc = %{version}-%{release}
%description
IOR-HPC
%if (0%{?suse_version} > 0)
%global __debug_package 1
%global _debuginfo_subpackages 0
%debug_package
%endif
%prep
%autosetup -p1
%if "%{?commit}" != ""
# we most likely patched configure.ac
autoreconf
%endif
%build
export CC=mpicc
export CXX=mpicxx
export FC=mpif90
export F77=mpif77
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -fPIC"
export CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -fPIC"
if [ ! -f configure ]; then
# probably a git tarball
./bootstrap
fi
%module_load mpich
%if (0%{?suse_version} >= 1)
%configure --with-mpiio --with-daos=/usr --with-hdf5
%else
%configure --with-mpiio --with-daos=/usr --with-hdf5 --bindir=$MPI_BIN --mandir=$MPI_MAN --libdir=$MPI_LIB --includedir=$MPI_INCLUDE --datadir=%{_datadir}/doc/ior-mpich
%endif
%make_build
%install
%module_load mpich
%make_install
%if 0%{?suse_version}
MPI_LIB=%{_libdir}
MPI_BIN=%{_bindir}
mkdir -p %{buildroot}/%{_defaultdocdir}/%{name}/
mv %{buildroot}/usr/share/USER_GUIDE %{buildroot}%{_defaultdocdir}/%{name}/
%endif
chrpath --delete %{buildroot}/$MPI_BIN/{ior,md-workbench,mdtest}
rm -f %{buildroot}/$MPI_LIB/libaiori.a
%if (0%{?suse_version} < 1)
cat <<EOF >> files.mpich
$MPI_BIN/*
$MPI_MAN/man1/*
%{_datadir}/doc/ior-mpich/*
EOF
%endif
%if (0%{?suse_version} >= 1)
%files
%{_bindir}/*
%{_defaultdocdir}/%{name}/
%{_mandir}/man1/*
%else
%files -f files.mpich
%endif
%changelog
* Tue Jul 04 2023 Brian J. Murrell <brian.murrell@intel.com> - 3.3.0-20
- Add BR: mercury-devel
- Remove static library
- Set compiler environment variables
* Fri Mar 18 2022 Brian J. Murrell <brian.murrell@intel.com> - 3.3.0-19
- Update to d3574d536643475269d37211e283b49ebd6732d7
* Mon Mar 14 2022 Mohamad Chaarawi <mohamad.chaarawi@intel.com> - 3.3.0-18
- Update to build with HDF5 1.13.1
* Fri Dec 17 2021 Phillip Henderson <phillip.henderson@intel.com> - 3.3.0-17
- Enable building debuginfo package on SUSE platforms
* Fri Nov 12 2021 Wang Shilong <shilong.wang@intel.com> - 3.3.0-16
- Rebuilt for breaking DAOS API change
* Mon Nov 08 2021 Brian J. Murrell <brian.murrell@intel.com> - 3.3.0-15
- Update to eca135ce939e24c17a3a4a4b490c741bead43363
* Wed May 12 2021 Brian J. Murrell <brian.murrell@intel.com> - 3.3.0-14
- Build on EL8
- Temporarily add BR: libuuid-devel until daos-devel is fixed to R: it
- Install into environment-modules mpi-stack specific prefix on non-SUSE O/Ses
* Wed Jan 20 2021 Kenneth Cain <kenneth.c.cain@intel.com> - 3.3.0-13
- update to build with daos major api version 1
* Sat Nov 7 2020 Maureen Jean <maureen.jean@intel.com> - 3.3.0-12
- update to build with latest hdf5
* Tue Nov 03 2020 Mohamad Chaarawi <mohamad.chaarawi@intel.com> - 3.3.0-11
- Update to latest master to remove the legacy DAOS driver
* Mon Aug 17 2020 Maureen Jean <maureen.jean@intel.com> - 3.3.0-10
- Build with hdf5
* Tue May 26 2020 Brian J. Murrell <brian.murrell@intel.com> - 3.3.0-9
- Use lua-lmod for SLES/Leap 15.x
* Tue Dec 17 2019 Brian J. Murrell <brian.murrell@intel.com> - 3.3.0-8
- Rebuild with CaRT SO version 4
- Add Provides: to allow consumers to target cart and daos ABI versions
* Tue Dec 10 2019 Brian J. Murrell <brian.murrell@intel> -3.3.0-7
- Build on Leap 15.1
* Tue Nov 12 2019 Brian J. Murrell <brian.murrell@intel> -3.3.0-6
- Force rebuild to pick up cart/ompi changes
* Thu Nov 07 2019 Brian J. Murrell <brian.murrell@intel> -3.3.0-5
- Rebuild after repo mishap
* Thu Oct 31 2019 Brian J. Murrell <brian.murrell@intel> -3.3.0-4
- Use -dev version path
* Fri Jul 05 2019 Brian J. Murrell <brian.murrell@intel> -3.3.0-3
- Remove the BR for ompi-devel
- install mpi/mpich-x86_64 in the build environment
* Wed Jun 19 2019 Brian J. Murrell <brian.murrell@intel> -3.2.0-2
- Use daos-devel installed on the system
- Add daos-devel and cart-devel as BR
- Disable openmpi build option
* Mon Jan 21 2019 Brian J. Murrell <brian.murrell@intel> -3.2.0-1
- Initial package