-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Detlef Reichelt wrote:
Am Donnerstag, 23. November 2006 13:38 schrieb Nadia Derbey:
After building my packages using rpmbuild, solving all the rpmlint complaints, I have tried to build my packages using build. Everything worked fine, but I'd like to know if it is 'legal' to copy the $HOME/.rpmmacros into the BUILD_ROOT directory.
why not using lbuild (1)? With lbuild, you can put your marcros in /etc/build/files/10.1/etc/rpm/macros an simple build you rpms with "lbuild-10.1 foo.spec".
On a side note, be very careful what you put into .rpmmacros (or
etc/rpm/macros with lbuild) because it can cause builds to be
unreproducible.
IMO build reproduceability is a very important feature of RPM (well,
src.rpm's).
Defining %distribution and %package [1] is fine and could even be
considered good practice, but overriding/adding macros means the src.rpm
won't build on other hosts/environments than your own.
[1] e.g.:
%packager Pascal Bleser