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

Popular posts from this blog

php - SPIP: From Tag directly to an article -

jquery - isAjaxRequest always return false -

ruby on rails - In a controller spec, how to find a specific tag in the generated view? -