linux - Does RPM build always take the files from ~/rpmbuild? -


everywhere have seen on internet, default location rpmbuild user's home directory, ~/rpmbuild. if wish build in folder location, say, ~/foo/bar/rpmbuild?

why this? difference make if build location else?

edit: means ~/rpmmacros file anywhere.

you can build rpms without having modify or maintain .rpmmacros file specifying _topdir in rpmbuild command line. example,

rpmbuild --define '_topdir $(rpmbuild_dir)' \     --define 'version $(version)' \     --define 'release $(release)' \     -bb $(pkgname).spec 

is in 1 of makefiles rpm project build rpms under ${rpmbuild_dir} specified version , release numbers variables. use lot can have multiple rpm-building projects don't conflict each other trying build in same directory.


Comments

Popular posts from this blog

matlab - error with cyclic autocorrelation function -

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

c# - What is a good .Net RefEdit control to use with ExcelDna? -