[Bug 592094] Version control and mock builds for custom packages



http://bugzilla.gnome.org/show_bug.cgi?id=592094


Jeff Schroeder <jeffschroeder> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jeffschroeder computer org


--- Comment #1 from Jeff Schroeder <jeffschroeder computer org> 2009-08-17 16:45:50 UTC ---
Sometime recently in Fedora (F11 /me thinks) the default for rpmbuild -bs was
set to --nodeps. This helps keep the buildhosts clean and should be the default
in our "build scripts" that we create.

This might give you an idea as a good start:

MOCK_BUILD='mock --no-clean -r RHEL-5-x86_64 rebuild'
SPEC=whatever.spec
SRPM=$(rpmbuild -bs --nodeps ~/build/SPECS/$SPEC 2>/dev/null | awk
'/Wrote:/{print $NF}')

if [ ${PIPESTATUS[0]} -eq 0 -a -f "$SRPM" ]; then
    $MOCK_BUILD $SRPM
fi

Untested, but it should do what you want with a little getopt love and more
error checking.

-- 
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the QA contact of the bug.
You are watching the assignee of the bug.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]