78b6aeb
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
293fded
f212e7b
%if 0%{?fedora} || 0%{?mageia}
af65557
%global use_python3 1
af65557
%global use_python2 0
af65557
%else
af65557
%global use_python3 0
af65557
%global use_python2 1
af65557
%endif
af65557
af65557
%if %{use_python3}
af65557
%global python_sitelib %{python3_sitelib}
af65557
%else
af65557
%global python_sitelib %{python_sitelib}
af65557
%endif
af65557
Seth Vidal 32b2475
Summary: Builds packages inside chroots
Seth Vidal 32b2475
Name: mock
0253fbf
Version: 1.4.11
a71c9e2
Release: 2%{?dist}
3ea2d8b
License: GPLv2+
6dc2c2b
# Source is created by
6dc2c2b
# git clone https://github.com/rpm-software-management/mock.git
6dc2c2b
# cd mock
6dc2c2b
# git reset --hard %{name}-%{version}
6dc2c2b
# tito build --tgz
6dc2c2b
Source: %{name}-%{version}.tar.gz
Miroslav Suchý dbf838d
URL: https://github.com/rpm-software-management/mock/
2770ef6
BuildArch: noarch
c81e926
Requires: tar
c81e926
Requires: pigz
f212e7b
%if 0%{?mageia}
f212e7b
Requires: usermode-consoleonly
f212e7b
%else
c81e926
Requires: usermode
f212e7b
%endif
c280da3
Requires: createrepo_c
f212e7b
Requires: mock-core-configs >= 27.4
36e0617
%if 0%{?use_python2}
c280da3
Requires: pyliblzma
36e0617
%endif
c81e926
Requires: systemd
6dc2c2b
%if 0%{?fedora}
699daea
Requires: systemd-container
699daea
%endif
2fb669f
Requires: coreutils
fde9dbf
%if 0%{?fedora}
fde9dbf
Suggests: iproute
fde9dbf
%endif
f212e7b
%if 0%{?mageia}
f212e7b
Suggests: iproute2
f212e7b
%endif
6219f59
BuildRequires: bash-completion
af65557
%if %{use_python3}
af65557
Requires: python3
6daa597
Requires: python3-distro
Miroslav Suchý dbf838d
Requires: python3-six >= 1.4.0
af65557
Requires: python3-requests
f212e7b
Requires: python3-rpm
f212e7b
Requires: python3-pyroute2
af65557
BuildRequires: python3-devel
Miroslav Suchý dbf838d
#check
Miroslav Suchý dbf838d
BuildRequires: python3-pylint
af65557
%else
af65557
Requires: python-ctypes
6daa597
Requires: python2-distro
Miroslav Suchý dbf838d
Requires: python-six >= 1.4.0
af65557
Requires: python-requests
f212e7b
Requires: python2-pyroute2
d94eb2a
Requires: python >= 2.7
d579f5f
Requires: rpm-python
af65557
%endif
32df0b6
BuildRequires: python2-devel
f212e7b
%if 0%{?fedora} || 0%{?mageia}
92391a3
Requires: dnf
92391a3
Suggests: yum
92391a3
Requires: dnf-plugins-core
0668632
Recommends: btrfs-progs
2fb669f
Suggests: dnf-utils
0253fbf
Suggests: qemu-user-static
0668632
%endif
6dc2c2b
%if 0%{?rhel} == 7
0668632
Requires: btrfs-progs
92391a3
Requires: yum >= 2.4
92391a3
Requires: yum-utils
0668632
%endif
a3e5828
%if 0%{?fedora}
a3e5828
BuildRequires: perl-interpreter
a3e5828
%else
d94eb2a
BuildRequires: perl
a3e5828
%endif
28637b3
# hwinfo plugin
28637b3
Requires: util-linux
28637b3
Requires: coreutils
28637b3
Requires: procps-ng
28637b3
28637b3
Seth Vidal 32b2475
%description
c280da3
Mock takes an SRPM and builds it in a chroot.
Seth Vidal 32b2475
fbf2e29
%package scm
fbf2e29
Summary: Mock SCM integration module
c81e926
Requires: %{name} = %{version}-%{release}
c704486
%if 0%{?rhel} && 0%{?rhel} < 8
c81e926
Requires: cvs
c81e926
Requires: git
c81e926
Requires: subversion
c81e926
Requires: tar
c704486
%else
c704486
Recommends: cvs
c704486
Recommends: git
c704486
Recommends: subversion
c704486
Recommends: tar
c704486
%endif
fbf2e29
fbf2e29
%description scm
c280da3
Mock SCM integration module.
fbf2e29
c81e926
%package lvm
c81e926
Summary: LVM plugin for mock
c81e926
Requires: %{name} = %{version}-%{release}
c81e926
Requires: lvm2
c81e926
c81e926
%description lvm
c81e926
Mock plugin that enables using LVM as a backend and support creating snapshots
c81e926
of the buildroot.
c81e926
Seth Vidal 32b2475
%prep
Seth Vidal 32b2475
%setup -q
3704e28
%if %{use_python2}
af65557
for file in py/mock.py py/mockchain.py; do
3704e28
  sed -i 1"s|#!/usr/bin/python3 |#!/usr/bin/python |" $file
af65557
done
af65557
%endif
e087a33
Seth Vidal 32b2475
%build
Miroslav Suchý dbf838d
for i in py/mock.py py/mockchain.py; do
Miroslav Suchý dbf838d
    perl -p -i -e 's|^__VERSION__\s*=.*|__VERSION__="%{version}"|' $i
Miroslav Suchý dbf838d
    perl -p -i -e 's|^SYSCONFDIR\s*=.*|SYSCONFDIR="%{_sysconfdir}"|' $i
Miroslav Suchý dbf838d
    perl -p -i -e 's|^PYTHONDIR\s*=.*|PYTHONDIR="%{python_sitelib}"|' $i
Miroslav Suchý dbf838d
    perl -p -i -e 's|^PKGPYTHONDIR\s*=.*|PKGPYTHONDIR="%{python_sitelib}/mockbuild"|' $i
Miroslav Suchý dbf838d
done
Miroslav Suchý dbf838d
for i in docs/mockchain.1 docs/mock.1; do
0253fbf
    perl -p -i -e 's|\@VERSION\@|%{version}"|' $i
Miroslav Suchý dbf838d
done
Seth Vidal 32b2475
Seth Vidal 32b2475
%install
Miroslav Suchý dbf838d
install -d %{buildroot}%{_bindir}
Miroslav Suchý dbf838d
install -d %{buildroot}%{_libexecdir}/mock
Miroslav Suchý dbf838d
install py/mockchain.py %{buildroot}%{_bindir}/mockchain
Miroslav Suchý dbf838d
install py/mock.py %{buildroot}%{_libexecdir}/mock/mock
Miroslav Suchý dbf838d
ln -s consolehelper %{buildroot}%{_bindir}/mock
2fb669f
install create_default_route_in_container.sh %{buildroot}%{_libexecdir}/mock/
2fb669f
 
Miroslav Suchý dbf838d
install -d %{buildroot}%{_sysconfdir}/pam.d
Miroslav Suchý dbf838d
cp -a etc/pam/* %{buildroot}%{_sysconfdir}/pam.d/
a658f51
Miroslav Suchý dbf838d
install -d %{buildroot}%{_sysconfdir}/mock
Miroslav Suchý dbf838d
cp -a etc/mock/* %{buildroot}%{_sysconfdir}/mock/
Miroslav Suchý dbf838d
Miroslav Suchý dbf838d
install -d %{buildroot}%{_sysconfdir}/security/console.apps/
Miroslav Suchý dbf838d
cp -a etc/consolehelper/mock %{buildroot}%{_sysconfdir}/security/console.apps/%{name}
Miroslav Suchý dbf838d
Miroslav Suchý dbf838d
install -d %{buildroot}%{_datadir}/bash-completion/completions/
Miroslav Suchý dbf838d
cp -a etc/bash_completion.d/* %{buildroot}%{_datadir}/bash-completion/completions/
Miroslav Suchý dbf838d
ln -s mock %{buildroot}%{_datadir}/bash-completion/completions/mockchain
Miroslav Suchý dbf838d
Miroslav Suchý dbf838d
install -d %{buildroot}%{_sysconfdir}/pki/mock
Miroslav Suchý dbf838d
cp -a etc/pki/* %{buildroot}%{_sysconfdir}/pki/mock/
Miroslav Suchý dbf838d
Miroslav Suchý dbf838d
install -d %{buildroot}%{python_sitelib}/
Miroslav Suchý dbf838d
cp -a py/mockbuild %{buildroot}%{python_sitelib}/
5561ec2
Miroslav Suchý dbf838d
install -d %{buildroot}%{_mandir}/man1
Miroslav Suchý dbf838d
cp -a docs/mockchain.1 docs/mock.1 %{buildroot}%{_mandir}/man1/
Miroslav Suchý dbf838d
Miroslav Suchý dbf838d
install -d %{buildroot}/var/lib/mock
Miroslav Suchý dbf838d
install -d %{buildroot}/var/cache/mock
Miroslav Suchý dbf838d
Miroslav Suchý dbf838d
%check
Miroslav Suchý dbf838d
# ignore the errors for now, just print them and hopefully somebody will fix it one day
6dc2c2b
pylint-3 py/mockbuild/ py/*.py py/mockbuild/plugins/* || :
Miroslav Suchý dbf838d
2fb669f
%files
2fb669f
%defattr(0644, root, mock)
2fb669f
%config(noreplace) %{_sysconfdir}/mock/site-defaults.cfg
2fb669f
%{_datadir}/bash-completion/completions/mock
2fb669f
%{_datadir}/bash-completion/completions/mockchain
2fb669f
Seth Vidal 32b2475
%defattr(-, root, root)
49927b8
49927b8
# executables
49927b8
%{_bindir}/mock
cd46534
%{_bindir}/mockchain
Miroslav Suchý dbf838d
%{_libexecdir}/mock
293fded
293fded
# python stuff
293fded
%{python_sitelib}/*
fbf2e29
%exclude %{python_sitelib}/mockbuild/scm.*
c81e926
%exclude %{python_sitelib}/mockbuild/plugins/lvm_root.*
293fded
293fded
# config files
293fded
%config(noreplace) %{_sysconfdir}/%{name}/*.ini
49927b8
%config(noreplace) %{_sysconfdir}/pam.d/%{name}
49927b8
%config(noreplace) %{_sysconfdir}/security/console.apps/%{name}
293fded
6dc2c2b
# directory for personal gpg keys
f3eaee2
%dir %{_sysconfdir}/pki/mock
f3eaee2
%config(noreplace) %{_sysconfdir}/pki/mock/*
f3eaee2
49927b8
# docs
ef5fe3f
%{_mandir}/man1/mock.1*
cd46534
%{_mandir}/man1/mockchain.1*
49927b8
35d5baa
# cache & build dirs
35d5baa
%defattr(0775, root, mock, 02775)
c81e926
%dir %{_localstatedir}/cache/mock
c81e926
%dir %{_localstatedir}/lib/mock
fbf2e29
fbf2e29
%files scm
fbf2e29
%{python_sitelib}/mockbuild/scm.py*
28637b3
%if %{use_python3}
28637b3
%{python3_sitelib}/mockbuild/__pycache__/scm.*.py*
28637b3
%endif
dcfea83
c81e926
%files lvm
c81e926
%{python_sitelib}/mockbuild/plugins/lvm_root.*
28637b3
%if %{use_python3}
28637b3
%{python3_sitelib}/mockbuild/plugins/__pycache__/lvm_root.*.py*
28637b3
%endif
94ee71d
c81e926
%changelog
a71c9e2
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.4.11-2
a71c9e2
- Rebuilt for Python 3.7
a71c9e2
0253fbf
* Tue Jun 12 2018 Miroslav Suchý <msuchy@redhat.com> 1.4.11-1
0253fbf
- fix @VERSION@ processing in man pages (ktdreyer@ktdreyer.com)
0253fbf
- update testing.src.rpm to recent standard
0253fbf
- Allow --spec arg to be used with rebuild option (sfowler@redhat.com)
0253fbf
- Disable use_host_resolv by default (tmz@pobox.com)
0253fbf
- Add support for microdnf [GH#76] (zdenekirsax@gmail.com)
0253fbf
- skip running groupadd if gid is 0 (nhorman@tuxdriver.com)
0253fbf
- Allow overriding of mock chroot build user name (nhorman@tuxdriver.com)
0253fbf
- do not populate /etc/resolv.conf when networking is disabled (RHBZ#1514028)
0253fbf
  (tmz@pobox.com)
0253fbf
- add version to EL check in _prepare_nspawn_command() (tmz@pobox.com)
0253fbf
- pass force-arch to builddep and resolvedep [GH#120]
0253fbf
- Support setting up foreign architecture chroots
0253fbf
- add support for bsdtar
0253fbf
- use fedora 28 for tests
0253fbf
3704e28
* Thu May 10 2018 Miroslav Suchý <msuchy@redhat.com> 1.4.10-1
3704e28
- remove executable bit from trace_decorator.py
3704e28
- Change sign plugint to sign only builded rpm and not every file in results
3704e28
  [RHBZ#1217495] (necas.marty@gmail.com)
3704e28
- overlayfs plugin: added explicit mount support (zzambers@redhat.com)
3704e28
- encode content before writing [RHBZ#1564035]
3704e28
- allow to bind_mount just one file (necas.marty@gmail.com)
3704e28
- added overlayfs plugin (zzambers@redhat.com)
3704e28
- invoke chroot scan for 'initfailed' event (clime7@gmail.com)
3704e28
- add support for .spec in --installdeps (necas.marty@gmail.com)
3704e28
- revert workaround introduced in 057c51d6 [RHBZ#1544801]
3704e28
- comment out macro in changelog (msuchy@redhat.com)
3704e28
7753876
* Mon Feb 12 2018 Miroslav Suchý <msuchy@redhat.com> 1.4.9-1
7753876
- "setup_cmd" of bootstrap container is the actuall $pm_install_command from
7753876
  the main container [RHBZ#1540813]
7753876
- do not produce warning when we are using different PM for bootstrap container
7753876
- Honor the "cwd" flag when nspawn is being used and "chrootPath" is not set
7753876
  (matthew.prahl@outlook.com)
7753876
- do not run ccache in bootstrap chroot [RHBZ#1540813]
7753876
- use DNF on EL7 when bootstrap is used [RHBZ#1540813]
7753876
- site-defaults: fix quoting in sign_opts example [RHBZ#1537797]
7753876
  (tmz@pobox.com)
7753876
- Detect if essential mounts are already mounted (msimacek@redhat.com)
32df0b6
- Update Python 2 dependency declarations to new packaging standards
7753876
- improvement code/docs for opstimeout (Mikhail_Campos-Guadamuz@epam.com)
7753876
- simplifying of utils.do() (Mikhail_Campos-Guadamuz@epam.com)
7753876
- New config option 'opstimeout' has been added. (Mikhail_Campos-
7753876
  Guadamuz@epam.com)
7753876
- Don't setup user mounts in the bootstrap buildroot (bkorren@redhat.com)
7753876
- el5 is sensitive to order of params
7753876
- Default for config_opts['dnf_warning'] according to docs
7753876
  (praiskup@redhat.com)
7753876
- Avoid manual interpolation in logging of BUILDSTDERR (Mikhail_Campos-
7753876
  Guadamuz@epam.com)
7753876
- Splitting stdout and stderr in build.log. All stderr output lines are
7753876
  prefixed by 'BUILDSTDERR:' (Mikhail_Campos-Guadamuz@epam.com)
32df0b6
c704486
* Fri Dec 22 2017 Miroslav Suchý <msuchy@redhat.com> 1.4.8-1
c704486
- orphanskill: send SIGKILL when SIGTERM is not enough [RHBZ#1495214]
c704486
- pass --non-unique to usermod because of old targets
c704486
- remove _selinuxYumIsSetoptSupported()
c704486
- only use -R if first umount failed
c704486
- use recursive unmount for tmpfs
c704486
- do not cd to dir if nspawn is used [GH#108]
c704486
- add new option --config-opts [GH#138]
c704486
- add --enable-network to bash_completation
c704486
- Strip trailing / from mountpath in ismounted()
c704486
- new cli option --enable-network [RHBZ#1513953]
c704486
- when creating yum/dnf.conf copy timestamp from host [RHBZ#1293910]
c704486
- do not populate /etc/resolv.conf when networking is disabled [RHBZ#1514028]
c704486
- soften mock-scm dependencies [RHBZ#1515989]
c704486
- mount /proc and /sys before executing any PM command [RHBZ#1467299]
c704486
70a8eb8
* Tue Oct 31 2017 Miroslav Suchý <msuchy@redhat.com> 1.4.7-1
70a8eb8
- user and group is actually not used here since some logic moved to buildroot.py
70a8eb8
- add config_opts['chrootgroup'] to site-defaults.cfg
70a8eb8
- Enable chrootgroup as a config file option
70a8eb8
- override some keys for bootstrap config
70a8eb8
- Add support for DeskOS
70a8eb8
- Delete rootdir as well when calling clean
70a8eb8
- Fix mock & mock-core-config specs to support Mageia
70a8eb8
- Ensure mock-core-configs will select the right default on Mageia
70a8eb8
- ccache: use different bind mount directory
70a8eb8
- new-chroot: set up new network namespace and add default route in it
70a8eb8
- use primary key for F-27+ on s390x
70a8eb8
- man: add dnf to see also
70a8eb8
- man: escape @
70a8eb8
- remove Seth email
70a8eb8
- more grammar fixes
70a8eb8
- fix typo in mock(1)
70a8eb8
- sort debug-config output
70a8eb8
fde9dbf
* Fri Sep 15 2017 Miroslav Suchý <msuchy@redhat.com> 1.4.6-1
fde9dbf
- requires mock-core-configs
fde9dbf
2fb669f
* Fri Sep 15 2017 Miroslav Suchý <msuchy@redhat.com> 1.4.5-1
2fb669f
- introduce -N for --no-cleanup-after (jsynacek@redhat.com)
2fb669f
- add man page entry for --debug-config
2fb669f
- Added option --debug-config (matejkudera1@seznam.cz)
2fb669f
- site-defaults: Fix comment about nspawn/chroot default (ville.skytta@iki.fi)
2fb669f
- move chroot configs to mock-core-configs directory
2fb669f
- pass --private-network to every container spawning if specified
2fb669f
- add script to create default route in container to localhost
2fb669f
- [site-defaults] Fix umount_root documentation
2fb669f
- Fix keeping the LVM volume mounted
2fb669f
- suggest dnf-utils
2fb669f
- Always create /dev/loop nodes
2fb669f
a3e5828
* Tue Aug 22 2017 Miroslav Suchý <msuchy@redhat.com> 1.4.4-1
a3e5828
- Rename group inside of chroot from mockbuild to mock
a3e5828
- add F27 configs
a3e5828
- populate /etc/dnf/dnf.conf even when using yum PM
a3e5828
- create /etc/dnf directory
a3e5828
- correct path is /etc/dnf/dnf.conf instead of /etc/dnf.conf
a3e5828
- perl dependency renamed to perl-interpreter
a3e5828
  <https://fedoraproject.org/wiki/Changes/perl_Package_to_Install_Core_Modules>
a3e5828
d94eb2a
* Mon Aug 07 2017 Miroslav Suchý <msuchy@redhat.com> 1.4.3-1
d94eb2a
- selinux: do not try to import yum when PM is dnf [RHBZ#1474513]
d94eb2a
- create /dev nodes even when using nspawn [RHBZ#1467299]
d94eb2a
- scm: define _sourcedir to checkout directory
d94eb2a
  (ignatenkobrain@fedoraproject.org)
d94eb2a
- mageia-cauldron: Change releasever to 7 (ngompa13@gmail.com)
d94eb2a
- enhance detection of RHEL [RHBZ#1470189]
d94eb2a
- Add detection of OL (Oracle Linux) distribution
d94eb2a
  (pixdrift@users.noreply.github.com)
d94eb2a
- Make LVM sleep time configurable (mizdebsk@redhat.com)
d94eb2a
- on fedoras use python3 to detect correct arch in %%post [RHBZ#1462310]
d94eb2a
- backend.py: quote check_opt (jlebon@redhat.com)
d94eb2a
- Grammar fixes (ville.skytta@iki.fi)
d94eb2a
- Docstring spelling fix (ville.skytta@iki.fi)
d94eb2a
- Document python >= 2.7 requirement (ville.skytta@iki.fi)
d94eb2a
- Remove obsolete internal_setarch config option (ville.skytta@iki.fi)
1a568b8
92391a3
* Sat Jun 10 2017 Miroslav Suchý <msuchy@redhat.com> 1.4.2-1
92391a3
- define PermissionError for python2
92391a3
- make /etc/yum.conf symlink to /etc/yum/yum.conf
92391a3
- Do not use systemd-nspawn for EL6 chroots [RHBZ#1456421]
92391a3
- umount all internal mounts before umounting lvm
92391a3
- umountall try to umount several times in case there are deps between mounts
92391a3
- unify behaviour of umount
92391a3
- display which state start/stop, if normal or bootstrap
92391a3
- do not umount LVM volumes if umount_root is set to true [RHBZ#1447658]
92391a3
- use LC_ALL=C.UTF-8 rather than plain C
92391a3
- add modularity options to custom chroots config
92391a3
- initial support for modularity
92391a3
- add boostrap options to bash completation
92391a3
- set --no-bootstrap-chroot as default for now
92391a3
- Use bash --login with systemd-nspawn as well (rhbz #1450516)
92391a3
  (orion@cora.nwra.com)
92391a3
- docs: add note for subscription-manager.conf (#55)
92391a3
  (gitDeveloper@bitthinker.com)
92391a3
- Pass canonical spelling False, not false to mock's setopt=deltarpm
92391a3
  (ville.skytta@iki.fi)
92391a3
- make it easier to detect if buildroot is bootstrap or not
92391a3
- document other lvm options in site-defaults.cfg
92391a3
- do not call yum-deprecated from bootstrap chroot [RHBZ#1446294]
92391a3
- do not use bootstrap for custom chroots [RHBZ#1448321]
92391a3
- hard require dnf-plugins-core on Fedora
92391a3
- we do not BuildRequire autoconf and automake any more
92391a3
- do not require yum and yum-utils in Fedora
92391a3
- Fix calls of yum-builddep and repoquery, and use 'dnf repoquery' for dnf
92391a3
  (ngompa13@gmail.com)
92391a3
- call plugins of bootstrap when it has sense
92391a3
- call scrub hook for bootstrap chroot too [RHBZ#1446297]
92391a3
6dc2c2b
* Wed Apr 26 2017 Miroslav Suchý <msuchy@redhat.com> 1.4.1-1
6dc2c2b
- remove leading space [RHBZ#1442005]
6dc2c2b
- copy nosync libraries to /var/tmp
6dc2c2b
- use tmpdir same as in in bootstrap chroot (Issue#59)
6dc2c2b
- do not ship distribution gpg keys
6dc2c2b
- pylint has been renamed
6dc2c2b
- Fix "init_install_output" error (marc.c.dionne@gmail.com)
6dc2c2b
- Epel5 has been EOLed (Issue#66) 
6dc2c2b
- hw_info: Protect log output against non-ASCII, closes #68
6dc2c2b
  (ville.skytta@iki.fi)
6dc2c2b
- secondary arch config cleanups (dennis@ausil.us)
6dc2c2b
- Point more links to github (ville.skytta@iki.fi)
6dc2c2b
- ignore exit codes from machinectl 
6dc2c2b
- create bind mount paths just before mounting (#57) 
6dc2c2b
- always print output of error in exception 
6dc2c2b
- fix syntax in docs-examples (gitDeveloper@bitthinker.com)
6dc2c2b
- do not refer to fedorahosted.org in Source0 
6dc2c2b
- Missed an instance of outer_buildroot (michael@cullen-online.com)
6dc2c2b
- Fixed up more PR comments, mostly being more consistent with naming
6dc2c2b
  (michael@cullen-online.com)
6dc2c2b
- Fixed pylint errors introduced by previous commit and other review comments
6dc2c2b
  (michael@cullen-online.com)
6dc2c2b
- Added command line options for overriding default bootstrap setting
6dc2c2b
  (michael@cullen-online.com)
6dc2c2b
- Bootstrap package manager using outer chroot (michael@cullen-online.com)
6dc2c2b
- Add %%distro_section macro to Mageia targets (ngompa13@gmail.com)
6dc2c2b
- test: ask for sudo password, so later we do not need to wait for password
6dc2c2b
- we cannot use /tmp for testing as that is automatically mounted as tmpfs by
6dc2c2b
  systemd-nspawn 
6dc2c2b
- add /dev/prandom device to chroot (#33) 
6dc2c2b
- add /dev/hwrng device to chroot (#33) 
6dc2c2b
- enable package_state plugin by default again [RHBZ#1277187]
6dc2c2b
  (gitDeveloper@bitthinker.com)
6dc2c2b
- Use python errno module instead of hardcoding errno values.
6dc2c2b
  (marcus.sundberg@aptilo.com)
6dc2c2b
- UidManager.changeOwner: Use _tolerant_chown for top level as well
6dc2c2b
  (marcus.sundberg@aptilo.com)
6dc2c2b
- Buildroot: Ensure homedir and build dirs always have correct owner
6dc2c2b
  (marcus.sundberg@aptilo.com)
6dc2c2b
- UidManager: Use os.lchown instead of os.chown
6dc2c2b
  (marcus.sundberg@aptilo.com)
6dc2c2b
- Buildroot._init: Ensure chrootuser always has correct UID
6dc2c2b
  (marcus.sundberg@aptilo.com)
6dc2c2b
- Buildroot._init: Ensure homedir is owned by correct user.
6dc2c2b
  (marcus.sundberg@aptilo.com)
6dc2c2b
- change_home_dir: Actually set ownership of homedir
6dc2c2b
  (marcus.sundberg@aptilo.com)
6dc2c2b
- fix permissions in chroot_scan's result dir, so user can delete it
6dc2c2b
  (gitDeveloper@bitthinker.com)
6dc2c2b
- spec: simplify condition 
6dc2c2b
- remove el6 references from spec file 
6dc2c2b
- use systemd-nspawn by default
6dc2c2b
28637b3
* Mon Feb 27 2017 Miroslav Suchý <msuchy@redhat.com> 1.3.4-1
28637b3
- add support for dist-git to scm plugin (clime@redhat.com)
28637b3
- preserve mode of files when doing chroot_scan [RHBZ#1297430]
28637b3
  (msuchy@redhat.com)
28637b3
- spec: add to package pycache for subpackages (msuchy@redhat.com)
28637b3
- restore permissions on chroot_scan dir (drop to unprivUid, unprivGid)
28637b3
  (gitDeveloper@bitthinker.com)
28637b3
- add fedora 26 configs (msuchy@redhat.com)
28637b3
- config: add best=1 also into rawhide configs (praiskup@redhat.com)
28637b3
- rename package_state's log to have .log suffix (gitDeveloper@bitthinker.com)
28637b3
- systemd-nspawn: run as PID2 #36 (msuchy@redhat.com)
28637b3
- fix defaults for yum_builddep_opts (gitDeveloper@bitthinker.com)
28637b3
- Support nspawn_args (walters@verbum.org)
28637b3
- return exit code 2 when /usr/libexec/mock/mock run directly without
28637b3
  consolehelper (msuchy@redhat.com)
28637b3
- change path of /usr/sbin/mock in error message (msuchy@redhat.com)
28637b3
- Fix debuginfo repo naming (msimacek@redhat.com)
28637b3
- more examples of PS1 [RHBZ#1183733] (msuchy@redhat.com)
28637b3
- simplify PROMPT_COMMAND string (msuchy@redhat.com)
28637b3
- "Rawhide" has been changed to "rawhide" in os-release file in current rawhide
28637b3
  (F26) [RHBZ#1409735] (msuchy@redhat.com)
28637b3
- Update local repo URLs for rawhide (mizdebsk@redhat.com)
28637b3
- Switch kojipkgs URLs to https (mizdebsk@redhat.com)
28637b3
- run pylint on plugins too (msuchy@redhat.com)
28637b3
- introduce hw_info plugin (msuchy@redhat.com)
28637b3
- remove fedora-23 configs (msuchy@redhat.com)
2b4f7e3
6daa597
* Sun Jan 01 2017 Miroslav Suchý <msuchy@redhat.com> 1.3.3-1
6daa597
- use F25 for tests
6daa597
- handle cwd directories with spaces [RHBZ#1389663]
6daa597
- add config option `hostname` to set hostname
6daa597
  (constantine.peresypk@rackspace.com)
6daa597
- use DNF on RHEL, when it is installed and configured [RHBZ#1405783]
6daa597
- use best=1 for DNF
6daa597
- error is not iterable [RHBZ#1387895]
6daa597
- use best=true for dnf.conf for repos passed to mockchain using -a
6daa597
- add epel-7-aarch64 config
6daa597
- better naming for tmp directories
6daa597
- Remove tmpdirs regardless of buildroot existence (msimacek@redhat.com)
6daa597
- clarify examples of using more_buildreqs feature
6daa597
  (gitDeveloper@bitthinker.com)
6daa597
- fix more_buildreqs case: correctly compare if req is basestring
6daa597
  (gitDeveloper@bitthinker.com)
6daa597
- fix formating a bit (gitDeveloper@bitthinker.com)
6daa597
- add missing step in 'getting & compiling' part (gitDeveloper@bitthinker.com)
6daa597
- Add bash completion for .cfg files outside /etc/mock (#20)
6daa597
  (github@kayari.org)
6daa597
- man: example how to use --plugin-option
6daa597
- require most recent distribution-gpg-keys to get F25 keys
6daa597
- man: state that shell does not produce logs
6daa597
- Delay mounting of user-defined mountpoints (rhbz#1386544)
6daa597
  (msimacek@redhat.com)
6daa597
- man: clarify chroot cleanups
95daba8
Miroslav Suchý dbf838d
* Mon Oct 17 2016 Miroslav Suchý 1.3.2-1
Miroslav Suchý dbf838d
- flake8 fixes
Miroslav Suchý dbf838d
- correctly escape --nocheck [GH#2] (msuchy@redhat.com)
Miroslav Suchý dbf838d
- change hostname in container [RHBZ#1302040] (msuchy@redhat.com)
Miroslav Suchý dbf838d
- example how to change hostname in container [RHBZ#1302040]
Miroslav Suchý dbf838d
  (msuchy@redhat.com)
Miroslav Suchý dbf838d
- skip unshare() if running inside of Docker [RHBZ#1336750] (msuchy@redhat.com)
Miroslav Suchý dbf838d
- Bring back logging.raiseExceptions = 0 (ville.skytta@iki.fi)
Miroslav Suchý dbf838d
- Purge no longer needed Python < 2.5 workarounds (ville.skytta@iki.fi)
Miroslav Suchý dbf838d
- Purge no longer needed six < 1.4.0 workaround (ville.skytta@iki.fi)
Miroslav Suchý dbf838d
- run pylint during %%check phase (msuchy@redhat.com)
Miroslav Suchý dbf838d
Miroslav Suchý dbf838d
* Tue Sep 27 2016 Miroslav Suchý <msuchy@redhat.com> 1.3.1-1
Miroslav Suchý dbf838d
- remove F21 GPG keys
Miroslav Suchý dbf838d
- remove F22 configs
Miroslav Suchý dbf838d
- update upstream URL
Miroslav Suchý dbf838d
- move /usr/sbin/mock to /usr/libexec/mock/mock [RHBZ#1246810]
Miroslav Suchý dbf838d
- Initialized to use tito.
Miroslav Suchý dbf838d
- add pylint config
Miroslav Suchý dbf838d
* Tue Sep 13 2016 Miroslav Suchý <msuchy@redhat.com> - 1.2.21-1
Miroslav Suchý dbf838d
- CVE-2016-6299 - fixed root rights escalation in mock-scm
Miroslav Suchý dbf838d
- root_cache: Mention _root_ cache being created in state updates
Miroslav Suchý dbf838d
- Rename mageia pubkey to RPM-GPG-KEY-Mageia
Miroslav Suchý dbf838d
- require generic system-release rather than fedora-release [RHBZ#1367746]
Miroslav Suchý dbf838d
039da99
* Wed Aug 17 2016 Miroslav Suchý <msuchy@redhat.com> - 1.2.20-1
Miroslav Suchý dbf838d
- use epel GPG keys for epel
039da99
026faae
* Wed Aug 10 2016 Miroslav Suchý <msuchy@redhat.com> - 1.2.19-1
039da99
- disable tmpfs plugin for init-clean test
026faae
- pass cwd option to systemd-nspawn [RHBZ#1264508]
026faae
- pass unpriv id to doshell() [RHBZ#1298220]
026faae
- enable package_state plugin by default and create installed_pkgs file [RHBZ#1277187]
026faae
- installed_pkgs can be created even in offline mode
026faae
- Use context manager for drop/restore calls of uid manager [RHBZ#1362478]
026faae
- require /etc/os-release during post section [RHBZ#1358397]
026faae
- use mageia gpg keys from distribution-gpg-keys package
026faae
- use fedora gpg keys from distribution-gpg-keys package
026faae
- use epel gpg keys from distribution-gpg-keys package
026faae
- add F25 configs
026faae
- 'include' statement has been added [RHBZ#1272381]
026faae
- Handle file open/close more with "with", close more eagerly
026faae
- Use logging.warning instead of deprecated warn
026faae
- add chroot_additional_packages to custom chroots
026faae
- chroot_additional_packages: new option
33c71e3
d579f5f
* Fri Jun 10 2016 Miroslav Suchý <msuchy@redhat.com> - 1.2.18-1
d579f5f
- add custom config
d579f5f
- add Mageia configs
d579f5f
- copy just content of SRPM not the attributes [RHBZ#1301985]
d579f5f
- do not fail when we cannot link default.cfg [RHBZ#1305367]
d579f5f
- Build always fails when using --nocheck [RHBZ#1327594]
d579f5f
- Escape the escape sequences in PROMPT_COMMAND, improve prompt
d579f5f
- requires rpm-python
d579f5f
- Use root name instead config name for backups dir
d579f5f
- Unconditionally setup resolver config
d579f5f
- keep machine-id in /etc/machine-id [RHBZ#1344305]
d579f5f
- use DNF for F24
d579f5f
- Add MIPS personalities
d579f5f
- scm plugin: fix handling of submodules
d579f5f
d579f5f
* Fri Mar 11 2016 Miroslav Suchý <msuchy@redhat.com> - 1.2.17-1
d579f5f
- call rpmbuild correctly
d579f5f
699daea
* Tue Mar  8 2016 Miroslav Suchý <msuchy@redhat.com> - 1.2.16-1
3704e28
- remove old %%if statements
699daea
- systemd-nspawn is now in systemd-container package
699daea
- become root user correct way [RHBZ#1312820][RHBZ#1311796]
699daea
- remove the sparc config
699daea
- Let logging format messages on demand
699daea
- tell nspawn which variables it should set [RHBZ#1311796]
699daea
- do not call /bin/su and rather utilize --user of systemd-nspawn [RHBZ#1301953]
699daea
78b6aeb
* Mon Feb 22 2016 Miroslav Suchý <msuchy@redhat.com> - 1.2.15-1
78b6aeb
- ccache plugin disabled by default
78b6aeb
- F21 configs removed
78b6aeb
- F24 configs added
78b6aeb
- typo fixed [RHBZ#1285630]
78b6aeb
- read user config from ~/.config/mock.cfg too
78b6aeb
- disable "local" dnf plugin [RHBZ#1264215]
78b6aeb
- when removing buildroot, do that as root [RHBZ#1294979]
9dcce51
b6c7481
* Fri Nov 20 2015 Miroslav Suchý <msuchy@redhat.com> - 1.2.14-1
b6c7481
- after unpacking chroot, change back to $CWD [RHBZ#1281369]
b6c7481
- Fix package manager version handling for CentOS
b6c7481
- use --setopt=deltarpm=false as default value for dnf_common_opts [RHBZ#1281355]
b6c7481
- add arguments, do not over ride previous ones
fdd6c7b
- Add %%(resultdir) placeholder for sign plugin. [RHBZ#1272123]
b6c7481
- decode shell output when running under Python3 [RHBZ#1267161]
b6c7481
- create tmpfs with unlimited inodes [RHBZ#1266453]
b6c7481
- typo [RHBZ#1241827]
b6c7481
- do not use machinectl --no-legend as it is not el7 compatible [RHBZ#1241827]
b6c7481
- directly tell yum which yum.conf he should use [RHBZ#1264462]
d2acf13
16328cd
* Wed Sep 16 2015 Miroslav Suchý <msuchy@redhat.com> - 1.2.13-1
16328cd
- Use 'machinectl terminate' inside orphanskill() when systemd-nspawn used [RHBZ#1171737]
16328cd
- use quite systemd-nspawn in quite mode [RHBZ#1262889]
16328cd
- when calling systemd-nspawn become root first [RHBZ#1241827]
16328cd
- revert F23 configs back to yum
16328cd
- Give user hint what to do if he miss scm plugin.
16328cd
- when cleaning up /dev/ do not fail on mountpoins
16328cd
- warn (but not fail) on RHELs when you try to use DNF
16328cd
- migrate package_state to use dnf when package_manager is set to dnf
16328cd
- redownload metadata if they changed on server [RHBZ#1230508]
16328cd
- provide --scrub=dnf-cache as alias for yum-cache [RHBZ#1241296]
16328cd
- copy files to correct location [RHBZ#1252088]
16328cd
- do not install weak deps in chroot [RHBZ#1254634]
16328cd
- Try to set PTY window size [RHBZ#1155199]
16328cd
- Set default LVM pool name [RHBZ#1163008]
16328cd
- better parsing of content-disposition header [RHBZ#1248344]
16328cd
- backend: Ensure output files are owned by unpriv user with nspawn
16328cd
- Add "rpmbuild_networking" key (False by default) for nspawn backend
16328cd
- fdfd464 Update Fedora Wiki URLs
16328cd
- use yum-deprecated as the yum_command if it exists
16328cd
5e91867
* Tue Jul 14 2015 clark Williams <williams@redhat.com> - 1.2.12-1
5e91867
- from Dennis Gilmore <dennis@ausil.us>:
5e91867
  - setup support so loopback devices can work [RHBZ#1245401]
5e91867
- from Miroslav Suchý <msuchy@redhat.com>:
5e91867
  - clarify path [RHBZ#1228751]
5e91867
  - document target_arch and legal_host_arches in site-defaults.cfg [RHBZ#1228751]
5e91867
  - document "yum.conf" in site-defaults.cfg [RHBZ#1228751]
5e91867
  - correctly specify requires of yum [RHBZ#1244475]
5e91867
  - bump up releasever in rawhide targets
5e91867
  - remove EOLed gpg keys
5e91867
  - add f23 configs
5e91867
  - removing EOLed f19 and f20 configs
5e91867
9a6484d
* Tue Jul 14 2015 clark Williams <williams@redhat.com> - 1.2.11-1
9a6484d
- dropped code that does stray mount cleanup of chroot [RHBZ#1208092]
9a6484d
- modified package_manager resolvedep cmd to use repoquery when dnf is installed