Use auto-refresh on repositories

Signed-off-by: David Greaves <david.greaves@jollamobile.com>
Don't assume that there is -n in %setup line.

Signed-off-by: Marko Saukko <marko.saukko@jollamobile.com>
Update rule_file_interface_version to 105
Looking at upstream, no changes were made in the devel fs_rules.lua

Signed-off-by: David Greaves <david.greaves@jollamobile.com>
mb: Add multiple job support.

A lot of packaging uses %jobs as an argument to make (thanks to spectacle), but
seemingly this isn't automagically set up, so we need to do it ourselves.

This makes builds actually use many cores, and go a lot faster as a result.

This can be specified by the user (-j <jobs>), or else the number of processors
is used as a default.
mb: fix mb build --help
mb: style fixup

$() is preferred over backticks.
Use [[ ]] and clearer tests

Signed-off-by: David Greaves <david.greaves@jollamobile.com>
rpm/ can be overridden by setting PKGDIR but defaults to rpm/

Signed-off-by: David Greaves <david@dgreaves.com>
Stop processing forwards and give error if invalid spec file path is given.

Signed-off-by: Marko Saukko <marko.saukko@jollamobile.com>
Check that Source0 line exists and give error if it doesn't.
Also accept source lines with Source: instead of Source0:.

Signed-off-by: Marko Saukko <marko.saukko@jollamobile.com>
QtCreator would like to know all about our targets so provide updateQtCreatorTargets

usage: updateQtCreatorTargets --name $target --target-xml /srv/mer/targets/target.xml
This will add/update the xml with qmake -query and gcc -dumpmachine data for $target

Signed-off-by: David Greaves <david.greaves@jollamobile.com>
Add --delete support to updateQtCreatorTargets

Signed-off-by: David Greaves <david.greaves@jollamobile.com>
Accelerate python only if explicitly requested

Python acceleration in sdk-build+pp mode requires that the environment
variable SBOX_REDIRECT_FORCE=/usr/bin/python is exported.

Add examples of conditionally accelerated program rules to sdk-build
and sdk-build+pp modes.

Signed-off-by: Juha Kallioinen <juha.kallioinen@jollamobile.com>