How do I undefine %{dist} using rpmbuild to build SRPM? -
i'm trying work out build process rpms.
when produce source rpms, it's including %{dist} in file name. prefer binary rpms, since source rpms not distribution specific.
the dist macro defined in /etc/rpm/macros.dist. how undefine while building source rpms?
foo.spec:
name: foo version: 0.1 release: 1%{?dist} # etc... build command:
$ rpmbuild -bs foo.spec $ ls ../srpms $ foo-0.1-1.el6.src.rpm
simple:
$ rpmbuild --undefine dist -bs foo.spec
Comments
Post a Comment