我有一个mypackage
带有 2 个子包foo
和bar
.在centos 7上,一切都很好,两个包mypackage-foo
和mypackage-bar
都已构建。在 centos 8 上,只有一个包mypackage
被构建了两次。我的规格文件如下所示:
%global _rpmfilename %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm
Name: mypackage
Version: 1
Release: 0
Summary: -
%description
%package foo
Summary: foo
%description foo
---
%package bar
Summary: bar
%description bar
----
%build
make
%install
make install
%files foo
/usr/bin/foo
%files bar
/usr/bin/bar
在命令输出的末尾rpmbuild -bb my-package.spec
有以下几行:
Wrote: /root/rpmbuild/RPMS/mypackage-1-0.el8.x86_64.rpm
Wrote: /root/rpmbuild/RPMS/mypackage-1-0.el8.x86_64.rpm