/etc/rpm/macros.dist
openeuler
bclinux
src.rpm
openssl-1.1.1f-13.oe1.src.rpm
打包名称结果
openeuler
openssl-1.1.1f-13.aarch64.rpm
bclinux
openssl-1.1.1f-13.oe1.bclinux.aarch64.rpm
验证
修改openeuler配置文件macros.dist
重新在openeuler上执行rpmbuild
[root@9b39f452a8d7 /]# cd ~/rpmbuild/
[root@9b39f452a8d7 rpmbuild]# rpmbuild -bb SPECS/openssl.spec
验证成功!
可以看到BUILDROOT后面的目录已经发生变化
参考
Versioning Guidelines :: Fedora Docs (fedoraproject.org)