Fix incorrect printing of binary strings on py3
pass --enablerepo/--disablerepo to yum in the same order as provided to mock [RHBZ#1154604]

I stole this code from /usr/share/yum-cli/yumcommands.py
set title bar in xterm [RHBZ#1126235]

Contributed by Corey Farrell <git@cfware.com>
accept paths to target definition files [RHBZ#1126117]

Contributed by:
Craig Ringer <craig@2ndquadrant.com>
remove forgotten comment
when default.cfg exists create default.cfg.rpmnew [RHBZ#1085308]

but only if `readlink` of both are different.
This way user can update his config using rpmconf.
create compress_logs plugin [RHBZ#1100923]

If you enable it and specify command to compress, it will compress
root.log, build.log and state.log in resultdir.
allow running from directory, which is deleted [RHBZ#1159300]

addressing:
INFO: Results and/or logs in: /var/lib/mock/fedora-20-x86_64/result
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Traceback (most recent call last):
  File "/usr/sbin/mock", line 841, in <module>
    main()
  File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line 84, in trace
    result = func(*args, **kw)
  File "/usr/sbin/mock", line 679, in main
    run_command(options, args, config_opts, commands, buildroot, state)
  File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line 84, in trace
    result = func(*args, **kw)
  File "/usr/sbin/mock", line 754, in run_command
    do_rebuild(config_opts, commands, buildroot, args)
  File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line 84, in trace
    result = func(*args, **kw)
  File "/usr/sbin/mock", line 513, in do_rebuild
    post=createrepo_on_rpms, clean=clean)
  File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line 84, in trace
    result = func(*args, **kw)
  File "/usr/sbin/mock", line 465, in rebuild_generic
    commands.init(prebuild=not config_opts.get('short_circuit'))
  File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line 84, in trace
    result = func(*args, **kw)
  File "/usr/lib/python2.7/site-packages/mockbuild/backend.py", line 120, in init
    self.buildroot.initialize(**kwargs)
  File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line 84, in trace
    result = func(*args, **kw)
  File "/usr/lib/python2.7/site-packages/mockbuild/buildroot.py", line 80, in initialize
    self._init(prebuild=prebuild, do_log=do_log)
  File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line 84, in trace
    result = func(*args, **kw)
  File "/usr/lib/python2.7/site-packages/mockbuild/buildroot.py", line 117, in _init
    self.plugins.call_hooks('preinit')
  File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line 84, in trace
    result = func(*args, **kw)
  File "/usr/lib/python2.7/site-packages/mockbuild/plugin.py", line 65, in call_hooks
    hook(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line 84, in trace
    result = func(*args, **kw)
  File "/usr/lib/python2.7/site-packages/mockbuild/plugins/root_cache.py", line 76, in _rootCachePreInitHook
    self._unpack_root_cache()
  File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line 84, in trace
    result = func(*args, **kw)
  File "/usr/lib/python2.7/site-packages/mockbuild/plugins/root_cache.py", line 115, in _unpack_root_cache
    if mockbuild.util.get_fs_type(os.getcwd()).startswith('nfs'):
OSError: [Errno 2] No such file or directory
Fix nosync on aarch64

Aarch64 has only /usr/lib64 and no /usr/lib. Make nosync deal with it.
[spec] Remove substitutions in test scripts

Don't try to make substitutions in files which we don't distribute.
Install into correct sitelib when using Python 3

Tell automake that we're building for Python 3.
Be more specific when installing configs

The general wildcard picks up everything ending in cfg and I'd like to have my
development config that doesn't end up bundled in the RPM when building
locally.
Better log message for intial buildroot installation

The absolute path is not pretty and we're not doing an update.
Was: /usr/bin/yum update
Changed to: yum install
Don't output installation/build output when redirected

The installation and build output goes to stderr and to root.log/build.log. If
stderr is redirected to a file, it means that no one is watching it in realtime
and there's no reason to duplicate it across two files. There are multiple
applications that capture mock's stderr (Koji, fedora-review). Because some
build logs can be tens of megabytes it is necessary that the duplication is
prevented.