debian/0000755000000000000000000000000012214711166007167 5ustar debian/compat0000644000000000000000000000000212214710571010364 0ustar 8 debian/changelog0000644000000000000000000000022712214711011011027 0ustar mock (1.1.33-1) unstable; urgency=low * Initial release. (Closes: #696719) -- Tzafrir Cohen Sat, 14 Sep 2013 01:30:31 +0300 debian/source/0000755000000000000000000000000012214710571010466 5ustar debian/source/format0000644000000000000000000000001412214710571011674 0ustar 3.0 (quilt) debian/TODO.Debian0000644000000000000000000000011012214710571011027 0ustar * See how to run tests at build time. See sudo in tests/testenvironment debian/copyright0000644000000000000000000000300312214710571011115 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: mock Source: https://fedorahosted.org/mock/ Files: * Copyright: 2007 Michael E Brown License: GPL-2+ Comment: This is incomplete Files: py/mockchain.py py/mockbuild/plugins/package_state.py py/mockbuild/mounts.py Copyright: 2012 Red Hat, Inc. License: GPL-2+ Files: py/mockbuild/plugins/mount.py: Copyright: 2011 Daniel Mach License: GPL-2+ Files: py/mockbuild/plugins/selinux.py Copyright: 2010 Jan Vcelak License: GPL-2+ Files: py/mockbuild/scm.py Copyright: 2010 Marko Myllynen License: GPL-2+ License: GPL-2+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA . On Debian systems, the full text of the GNU General Public License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'. debian/mock.lintian-overrides0000644000000000000000000000013412214710571013475 0ustar # links to package consolehelper package-contains-broken-symlink usr/bin/mock consolehelper debian/patches/0000755000000000000000000000000012214710571010615 5ustar debian/patches/hyphen0000644000000000000000000001301112214710571012027 0ustar Author: Tzafrir Cohen Description: hyphen/minus issues in man pages --- a/docs/mock.1 +++ b/docs/mock.1 @@ -6,7 +6,7 @@ mock \- build SRPMs in a chroot .LP mock [options] \fB\-\-rebuild\fR \fISRPM [\fISRPM...\fR] .LP -mock [options] \fB\-\-buildsrpm\fR {--spec \fIspec\fR --sources \fIsrc\fR | --scm-enable} +mock [options] \fB\-\-buildsrpm\fR {\-\-spec \fIspec\fR \-\-sources \fIsrc\fR | \-\-scm\-enable} .LP mock [options] \fB\-\-chroot\fR \fI\fR .LP @@ -52,7 +52,7 @@ To use mock, a user should become a memb adding their username to the \fBmock\fR line in /etc/group. This can be done with the following command: .P - \fBsudo /usr/sbin/usermod -a -G mock $USER\fR + \fBsudo /usr/sbin/usermod \-a \-G mock $USER\fR Note that mock is not intended to be run directly as root. @@ -69,10 +69,10 @@ Completely remove the specified chroot o Initialize a chroot (clean, install chroot packages, etc.) .TP \fB\-\-rebuild\fP -If no command is specified, rebuild is assumed. Rebuilds the specified SRPM(s). The buildroot is cleaned first, unless --no-clean is specified. +If no command is specified, rebuild is assumed. Rebuilds the specified SRPM(s). The buildroot is cleaned first, unless \-\-no\-clean is specified. .TP \fB\-\-buildsrpm\fP -Builds the specified SRPM either from a spec file and source file/directory or from SCM. The buildroot is cleaned first, unless --no-clean is specified. +Builds the specified SRPM either from a spec file and source file/directory or from SCM. The buildroot is cleaned first, unless \-\-no\-clean is specified. .TP \fB\-\-shell\fP Run the specified command interactively within the chroot (which must already be initialized -- no 'clean' is performed). If no command specified, /bin/sh is run. @@ -131,10 +131,10 @@ Clean chroot after building. Use with \- Don't clean chroot after building. If automatic cleanup is enabled, use this to disable. .TP \fB\-\-cache\-alterations\fR -Rebuild the root cache after making alterations to the chroot (i.e. --install). Only useful when using tmpfs plugin. +Rebuild the root cache after making alterations to the chroot (i.e. \-\-install). Only useful when using tmpfs plugin. .TP \fB\-\-target=\fR\fIARCH\fP -This argument is passed to rpmbuild to specify the target arch to build. It defaults to whatever is specified for --arch, or whatever is specified in the config file as config_opts['target_arch']. +This argument is passed to rpmbuild to specify the target arch to build. It defaults to whatever is specified for \-\-arch, or whatever is specified in the config file as config_opts['target_arch']. .TP \fB\-\-arch=\fR\fIARCH\fP Calls the linux personality() syscall to tell the kernel to emulate a secondary architecture. For example, building i386 packages on an x86_64 buildhost. @@ -169,10 +169,10 @@ Change directory where config files are Fail build if rpmbuild takes longer than 'timeout' seconds .TP \fB\-\-unpriv\fR -Drop privileges before running command when using --chroot +Drop privileges before running command when using \-\-chroot .TP \fB\-\-cwd=\fR\fIDIR\fP -Change to the specified directory (relative to the chroot) before running command when using --chroot +Change to the specified directory (relative to the chroot) before running command when using \-\-chroot .TP \fB\-q\fR, \fB\-\-quiet\fR Be quiet. @@ -209,7 +209,7 @@ Show version number and exit. To rebuild test.src.rpm using the Fedora 14 configuration for x86_64 .LP .RS 5 -\fBmock -r fedora-14-x86_64 --rebuild /path/to/test.src.rpm +\fBmock \-r fedora-14-x86_64 \-\-rebuild /path/to/test.src.rpm .RE .LP Note that the available configurations are found in the /etc/mock @@ -219,13 +219,13 @@ filename without the trailing .cfg exten To place the output RPMs and logs in a specified location. .LP .RS 5 -\fBmock \-r fedora\-14\-i386 --resultdir=./my-results /path/to/your.src.rpm\fR +\fBmock \-r fedora\-14\-i386 \-\-resultdir=./my-results /path/to/your.src.rpm\fR .RE .LP To build a package from the default SCM repository configured in site-defaults.cfg use the following arguments. .LP .RS 5 -\fBmock \-r fedora\-14\-i386 --scm-enable --scm-option package=pkg\fR +\fBmock \-r fedora\-14\-i386 \-\-scm-enable \-\-scm-option package=pkg\fR .RE .SH "BUGS" .LP --- a/docs/mockchain.1 +++ b/docs/mockchain.1 @@ -1,9 +1,9 @@ .\" mockchain .TH "mockchain" "1" "" "Seth Vidal" "" .SH "NAME" -mockchain - chain package builder. +mockchain \- chain package builder. .SH "SYNOPSIS" -\fBmockchain\fP -r chroot_config [options] [package...] +\fBmockchain\fP \-r chroot_config [options] [package...] .SH "DESCRIPTION" .PP \fBmockchain\fP builds a series of srpms in mock one at a time. After each @@ -14,7 +14,7 @@ repo which are available to the next pac This does not try to sort the packages by build order b/c that is too much effort and not obviously doable with the buildreq information we have. .PP -The build process when you use -l is idempotent so a package which has +The build process when you use \-l is idempotent so a package which has already been successfully built will not be built again. .PP If you want to force the rebuild of a package which has been built @@ -51,7 +51,7 @@ chroot config name to use in the mock bu \fB\-\-recurse\fR build all pkgs, record the failures and try to rebuild them again and again until everything gets built (or until the -set of pkgs failing to build are the same over) sets --continue +set of pkgs failing to build are the same over) sets \-\-continue .SH "AUTHORS" Seth Vidal debian/patches/series0000644000000000000000000000000712214710571012027 0ustar hyphen debian/control0000644000000000000000000000144112214710571010571 0ustar Source: mock Section: devel Maintainer: Tzafrir Cohen Priority: extra Standards-Version: 3.9.4 Build-Depends: debhelper (>= 8.0), dh-autoreconf, rpm, python | python-all Homepage: https://fedorahosted.org/mock/ Vcs-Git: git://anonscm.debian.org/users/tzafrir/mock.git Vcs-Browser: http://anoncms.debian.org/gitweb/?p=users/tzafrir/mock.git Package: mock Architecture: all Depends: python, ${misc:Depends}, ${python:Depends}, python-rpm, python-decoratortools, yum (>> 3.2.26), usermode, yum-utils Suggests: pigz Description: Build rpm packages inside a chroot Mock creates chroots and builds rpms in them. Its only task is to reliably populate a chroot and attempt to build a package in that chroot. It is used be the Fedora Extras project to build their packages cleanly. debian/rules0000755000000000000000000000140212214710571010243 0ustar #!/usr/bin/make -f %: dh $@ --with python2,autoreconf SAVED_FILES = \ Makefile.in aclocal.m4 build/install-sh build/missing \ build/py-compile configure override_dh_autoreconf: for file in $(SAVED_FILES); do \ if [ ! -r $$file-debsaved ]; then \ cp -a $$file $$file-debsaved; \ fi; \ done dh_autoreconf override_dh_autoreconf_clean: dh_autoreconf_clean for file in $(SAVED_FILES); do \ if [ -r $$file-debsaved ]; then \ mv $$file-debsaved $$file; \ fi; \ done override_dh_clean: # Left-over files in the 1.1.33 tarball? dh_clean -X '#fedora-20-armhfp.cfg#' -X '#release-instructions.txt#' override_dh_auto_test: # Don't run dh_auto_test (selt tests), as they seem to require root. # There is a directory called "build" build: build-indep debian/mock.links0000644000000000000000000000004312214710571011156 0ustar usr/bin/consolehelper usr/bin/mock