Change in ovirt-engine[master]: build: produce tarballs with embedded spec

oschreib at redhat.com oschreib at redhat.com
Sun Jul 15 11:29:22 UTC 2012


Ofer Schreiber has submitted this change and it was merged.

Change subject: build: produce tarballs with embedded spec
......................................................................


build: produce tarballs with embedded spec

This allow a simple srpm/rpm build using rpmbuild without
any wrapper, including the Makefile.

This fixes current implementation in which the Makefile and
spec files are used from current directory and all the other
sources are of the tarball.

Expected implementation is to use all files from within tarball.

Also, make the tarball, srpm, rpm targets are without any
dependency so run every time, as we cannot truly have proper
Makefile dependencies in maven project.

NOTICE

The tarball, srpm, rpm targets are working only in development
environment aka git checkout.

To produce rpms in different environments, create tarball on
development environment:
$ make tarball

Then produce srpm/rpms at production machines use:
$ rpmbuild -ts <tarball>
$ rpmbuild --rebuild <srpm>

or:

$ rpmbuild -tb <tarball>

Change-Id: I051cb5adc6eaba9195731311c54bf6a9508841e3
Signed-off-by: Alon Bar-Lev <alonbl at redhat.com>
---
M Makefile
1 file changed, 32 insertions(+), 25 deletions(-)

Approvals:
  Ofer Schreiber: Verified; Looks good to me, approved


--
To view, visit http://gerrit.ovirt.org/6248
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I051cb5adc6eaba9195731311c54bf6a9508841e3
Gerrit-PatchSet: 3
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Alon Bar-Lev <alonbl at redhat.com>
Gerrit-Reviewer: Alon Bar-Lev <alonbl at redhat.com>
Gerrit-Reviewer: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: Moran Goldboim <mgoldboi at redhat.com>
Gerrit-Reviewer: Ofer Schreiber <oschreib at redhat.com>



More information about the Engine-commits mailing list