1 Star 0 Fork 2

lsjhw/wrf

forked from src-openEuler/wrf 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
wrf.spec 1.71 KB
一键复制 编辑 原始数据 按行查看 历史
%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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/lsjhw/wrf.git
git@gitee.com:lsjhw/wrf.git
lsjhw
wrf
wrf
master

搜索帮助