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

java - Static nested class instance -

c# - Bluetooth LE CanUpdate Characteristic property -

JavaScript - Replace variable from string in all occurrences -