代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/wrf 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
%define debug_package %{nil}
%define __debug_install_post %{_rpmconfigdir}/find-debuginfo.sh %{?_find_debuginfo_opts} "%{_builddir}/%{?buildsubdir}"%{nil}
%define wrf_install_path /usr/local/wrf/wrf-4.2
%define packing_dir /usr/local/wrf
Name:WRF
Version:4.2
Release: 1
Summary: Weather Research and Forecasting Model.
License:GPL-2.0-or-later and Public Domain
URL:https://www.mmm.ucar.edu/weather-research-and-forecasting-model
Source0:WRF-4.2.tar.gz
Patch0:configure.defaults.patch
ExclusiveArch: aarch64
BuildRequires:environment-modules csh time patch libatomic perl-Data-Dumper autoconf automake libtool numactl binutils systemd-devel valgrind flex bc wget
%description
The Weather Research and Forecasting (WRF) Model is a next-generation mesoscale numerical weather prediction system \
designed for both atmospheric research and operational forecasting applications.
%prep
ln -fs /usr/lib64/libz.so.1.2.11 /usr/lib64/libz.so
%autosetup -n %{name}-%{version} -p1
%build
echo 4 | ./configure
sed -i 's/derf/erf/g' ./phys/module_mp_SBM_polar_radar.F
sed -i -e 's/gcc/clang/g' \
-e 's/gfortran/flang/g' \
-e 's/mpicc/mpicc -DMPI2_SUPPORT/g' \
-e 's/ -ftree-vectorize//g' \
-e 's/length-none/length-0/g' \
-e 's/-frecord-marker\=4/ /g' \
-e 's/\-w \-O3 \-c/-mcpu=native \-w \-O3 \-c/g' \
-e 's/\# \-g $(FCNOOPT) .*/\-g/g' \
-e 's/$(FCBASEOPTS_NO_G)/-mcpu=native $(OMP) $(FCBASEOPTS_NO_G)/g' configure.wrf
./compile -j $(nproc) em_real | tee compile.log
%install
mkdir -p $RPM_BUILD_ROOT%{wrf_install_path}
cp -r %{_builddir}/%{name}-%{version}/* $RPM_BUILD_ROOT%{wrf_install_path}
%files
%doc
%{packing_dir}
%clean
rm -rf $RPM_BUILD_ROOT %{_builddir}/*
%changelog
* Fri Feb 18 2022 wanghaili <wanghaili4@h-partners.com>
- Package init
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。