diff --git a/mock.spec b/mock.spec index 90500c2..1aba3cc 100644 --- a/mock.spec +++ b/mock.spec @@ -1,7 +1,7 @@ # next four lines substituted by autoconf %define major 1 -%define minor 0 -%define sub 25 +%define minor 1 +%define sub 18 %define extralevel %{nil} %define release_name mock %define release_version %{major}.%{minor}.%{sub}%{extralevel} @@ -18,7 +18,7 @@ Source: https://fedorahosted.org/mock/attachment/wiki/MockTarballs/%{name}-%{ver URL: http://fedoraproject.org/wiki/Projects/Mock BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch -Requires: python >= 2.4, yum >= 2.4, yum-utils >= 1.1.9, tar, pigz, python-ctypes, python-decoratortools, usermode +Requires: python >= 2.6, yum >= 2.4, yum-utils >= 1.1.9, tar, pigz, python-ctypes, python-decoratortools, usermode Requires: createrepo Requires(pre): shadow-utils Requires(post): coreutils @@ -59,8 +59,11 @@ ln -s fedora-rawhide-x86_64.cfg fedora-devel-x86_64.cfg ln -s fedora-rawhide-ppc.cfg fedora-devel-ppc.cfg ln -s fedora-rawhide-ppc64.cfg fedora-devel-ppc64.cfg popd +echo "%defattr(0644, root, mock)" > %{name}.cfgs find $RPM_BUILD_ROOT%{_sysconfdir}/mock -name "*.cfg" \ - | sed -e "s|^$RPM_BUILD_ROOT|%%config(noreplace) |" > %{name}.cfgs + | sed -e "s|^$RPM_BUILD_ROOT|%%config(noreplace) |" >> %{name}.cfgs +#cat %{name}.cfgs + # just for %%ghosting purposes ln -s fedora-rawhide-x86_64.cfg $RPM_BUILD_ROOT%{_sysconfdir}/mock/default.cfg @@ -79,7 +82,7 @@ if [ ! -e %{_sysconfdir}/%{name}/default.cfg ] ; then for ver in %{?fedora}%{?rhel} rawhide ; do cfg=%{?fedora:fedora}%{?rhel:epel}-$ver-$arch.cfg if [ -e %{_sysconfdir}/%{name}/$cfg ] ; then - ln -s $cfg %{_sysconfdir}/%{name}/default.cfg + ln -s -f $cfg %{_sysconfdir}/%{name}/default.cfg exit 0 fi done @@ -104,6 +107,7 @@ chmod 2775 /var/cache/mock %config(noreplace) %{_sysconfdir}/%{name}/*.ini %config(noreplace) %{_sysconfdir}/pam.d/%{name} %config(noreplace) %{_sysconfdir}/security/console.apps/%{name} +%{_sysconfdir}/bash_completion.d # docs %{_mandir}/man1/mock.1* @@ -113,9 +117,9 @@ chmod 2775 /var/cache/mock %defattr(0775, root, mock, 02775) %dir /var/cache/mock %dir /var/lib/mock - + %changelog -* Sun Nov 27 2011 Clark Williams - 1.0.25-1 +* Sat Nov 26 2011 Clark Williams - 1.1.18-1 - modify creation of default.cfg link to force creation if the symlink exists but doesn't point to a valid config [BZ# 741145] - remove TZ from default environment [BZ# 754701] @@ -131,14 +135,14 @@ chmod 2775 /var/cache/mock - from Davi Arnaut - set chroot environment variables from config files [BZ# 753179] -* Mon Oct 31 2011 Clark Williams - 1.0.24-1 -- fixed shell command handling [BZ# 750075] +* Mon Oct 31 2011 Clark Williams - 1.1.17-1 +- fix borken shell argument handling [BZ# 750075] - from Marko Myllynen : - Fix SCM integration on RHEL 5 [BZ# 749518] -- from Ville Skyttä +- from Ville Skyttä : - bash completion fixes -* Fri Oct 14 2011 Clark Williams - 1.0.23-1 +* Wed Oct 21 2011 Clark Williams - 1.1.16-1 - modified bind_mount and tmpfs plugins to use hooks for shell and chroot - refactored --shell and --chroot commands [BZ# 619533,728004,745550] - added input validation for --buildsrpm [BZ# 743173] @@ -153,18 +157,18 @@ chmod 2775 /var/cache/mock - From Jan Vcelak : - resolve SELinux filesystem mountpoint [BZ# 734781] -* Fri Sep 23 2011 Clark Williams - 1.0.22-1 +* Fri Sep 23 2011 Clark Williams - 1.1.15-1 - Fixed logging issues due to namespace change [BZ# 740232,739550,739972] - Fixed error removing old RMP db files [BZ# 738052] - From Yury V. Zaytsev : - SELinux plugin uses Python 2.5 syntax [BZ# 740327] - Fix inconsistent permissions in specfile [BZ# 715286] -* Fri Sep 9 2011 Clark Williams - 1.0.21-1 +* Fri Sep 9 2011 Clark Williams - 1.1.14-1 - From Toshio Ernie Kuratomi - Fix install path of mockbuild module and default path to module dir -* Thu Sep 8 2011 Clark Williams - 1.0.20-1 +* Thu Sep 8 2011 Clark Williams - 1.1.13-1 - add custom exception for unshare(2) failures - change getLog().warn to getLog().warning for consistency - fix namespace collision with python-mock [BZ# 601725] @@ -175,8 +179,7 @@ chmod 2775 /var/cache/mock - from Giam Teck Choon - add support for passing options to yum-buildep via mock cfg -* Tue Jul 26 2011 Clark Williams - 1.0.19-1 -- fixed incorrect python version requirement +* Tue Jul 26 2011 Clark Williams - 1.1.12-1 - remove f13 configs - added exception for unshare(2) failures [BZ# 718714] - added back 'newinstance' mount option to devpts (with symlink logic) @@ -184,7 +187,7 @@ chmod 2775 /var/cache/mock - from Matt Domsch - tmpfs plugin typo fix -* Wed Jun 22 2011 Clark Williams - 1.0.18-1 +* Wed Jun 22 2011 Clark Williams - 1.1.11-1 - remove 'newinstance' mount parameter from devpts filesystem mount (BZ# 711175) - modify --chroot command to print command output - update the python requirement to >= 2.6 for 1.1.x mock branch @@ -195,8 +198,7 @@ chmod 2775 /var/cache/mock - from Yury V. Zaytsev - Fix inconsistent permissions fixing on /var/cache/mock in SPEC template (BZ 715286) -* Fri May 13 2011 Clark Williams - 1.0.17-1 -- rewrote part of selinux plugin for python 2.4 +* Fri May 13 2011 Clark Williams - 1.1.10-1 - raise exception if running mock and user not member of mock group (BZ# 630791) - call setsid() to kill controlling terminal in chroot (BZ# 672713,501096) - Went back to creating /dev/tty and /dev/ptmx in all chroots (BZ# 683111) @@ -219,26 +221,36 @@ chmod 2775 /var/cache/mock - From Ville Skyttä : - Fixes shell escaping issue by using tuples rather than strings -* Sat Feb 19 2011 Clark Williams - 1.0.16-1 -- commented out /dev/tty handling code in backend.py (BZ# 609201) +* Fri Feb 18 2011 Clark Williams - 1.1.9-1 - fix createrepo generated root-owned repository data (BZ# 668278) +- commented out /dev/tty handling code in backend.py (BZ# 609201) +- from Ville Skyttä + - Use completion goodies from bash-completion >= 1.2 if available. + - Add --scm-enable and --scm-option to bash completion. + - Delete trailing whitespace. + - Add --install bash completion. + - Make --enable/disable-plugin completion work again. - From Jesse Keating - Make "dist" for rawhide configs be "rawhide" (BZ# 506157) -- From Ville Skyttä - - Make --enable/disable-plugin completion work again. - - Add --install bash completion. - - Delete trailing whitespace. + - Revert "turn off updates-released repository for fedora-14 configs" +- From Mike McLean + - fix typo in el4/5 /dev/tty creation (fh ticket #13, mwhiteley) - From Dennis Gilmore - - add the f15 mock configs - - use the s390 mirrorlists for s390 configs - - add rawhide arm config - -* Thu Jan 6 2011 Clark Williams - 1.0.15-1 + - Revert "disable the updates repos for F-15 they dont yet exist" + - sparc64 boxes can build 32 bit sparc stuff + - add rawhide arm config + - use the s390 mirrorlists for s390 configs + - disable the updates repos for F-15 they dont yet exist + - add the f15 mock configs + +* Fri Dec 17 2010 Clark Williams - 1.1.8-1 - corrected examples section of the mock.1 man page - added logging for 'install' and 'update' commadns (BZ# 594477) - added log file of root cache creation (BZ# 444796) - added logging to the scrub command - added unlockBuildRoot() method to clean up build root lockfile +- added retry logic to mock.util.rmtree +- removed fedora-12 config files - From Michael Hampton : - Add -f (force) option to userdel when recreating mockbuild user (BZ# 662223) - From Marko Myllynen : @@ -247,7 +259,7 @@ chmod 2775 /var/cache/mock - From Masatake YAMATO : - add runtime location of plugins (BZ# 634224) -* Fri Dec 12 2010 Clark Williams - 1.0.14-1 +* Mon Dec 13 2010 Clark Williams - 1.1.7-1 - add 'legal_host_arches' config option to configs (BZ# 622792) - add root check and group check (BZ# 662223) - from Ville Skyttä : @@ -258,7 +270,7 @@ chmod 2775 /var/cache/mock - Install build deps with yum-builddep - Add comment why binary packages are built with --nodeps -* Thu Oct 14 2010 Clark Williams - 1.0.13-1 +* Thu Oct 14 2010 Clark Williams - 1.1.6-1 - replace call to perl with native python edit function - change permissions of selinux plugin 'filesystems' file - from Ville Skyttä : @@ -271,56 +283,61 @@ chmod 2775 /var/cache/mock - Fix buildsrpm() docstring - Error message improvements -* Fri Sep 17 2010 Clark Williams - 1.0.12-1 +* Fri Sep 17 2010 Clark Williams - 1.1.5-1 +- fix typo in exception.py - add cmpKernelEVR function to compare kernel versions (BZ# 526414) +- change selinux plugin to use tempfilej - added commandline argument checking for --buildsrpm (BZ# 605800) - create empty faillog and lastlog in /var/log (BZ# 585973 & 633435) - changed copyin/copyout prints from debug to info - from Alan Franzoni : - reworked the root object _umountall() method - fix epel4 chroot cleanup and umountall issue - -* Sat Aug 14 2010 Clark Williams - 1.0.11-1 -- fix problem with mock.util.rmtree interaction with selinux plugin -- change integer constants to symbolic from errno package -- from Paul Howarth : - - add i586 as a legal target arch - - Retain order of umountCmds - - Exclude bind-mounted cache dirs from root cache - - noarch is always a legal arch - - Update packages after unpacking root cache - -* Tue Aug 3 2010 Clark Williams - 1.0.10-1 -- append rather than insert umount of /proc/filesystems (BZ# 620825) -- set state correctly for SELinux (BZ# 620143) -- turn off updates-released repository for prerelease fedora-14 configs - -* Sat Jul 31 2010 Clark Williams - 1.0.9-1 +- add exception trapping code to _unlock_and_rm_chroot() method + +* Mon Aug 09 2010 Clark Williams - 1.1.4-1 +- pass selinux status to mock.util.rmtree() (BZ# 614440) +- change integer constants to symbolic errno constants in util.py +- from Paul Howarth + - update packages after unpacking root cache (BZ# 557526) + - noarch is always a legal arch (BZ# 622170) + - exclude bind-mounted cache dirs from root cache + - retain order of umount commands (BZ# 620825) + - add i586 as legal build target (BZ# 622544) + +* Tue Aug 03 2010 Clark Williams - 1.1.3-1 +- fix umount ordering problem with selinux plugin (BZ# 620825) +- setup SELinux state properly (BZ# 620143) + +* Fri Jul 30 2010 Clark Williams - 1.1.2-1 - From Jan Vcelak : - - added an selinux plugin + - added selinux plugin - From Kalev Lember : - - patch to tmpfs plugin to allow specifying max fs size + - added max_fs_size parameter for tmpfs plugin - From Ricky Zhou : - allow --sources to specify either single file or directory (BZ# 510409) - From Dennis Gilmore : - - updated epel-6 config files -- From Paul B. Schroeder : + - update the epel-6 mock configs to point at the beta2 mirrorlist urls +- From Paul B. Schroeder : - add the --scrub option for cleaning up cache (BZ# 450726) +- added f14 configs - added symlink from /proc/self/fd to /dev/fd in the chroot (BZ# 526414) -- changed from referencing defaults.cfs to site-defaults.cfg (BZ# 600487) - added i686 architecture -- deleted f10 and f11 configs -- fixed cachefile filtering logic -- moved rpmdb clean block of code to work with --offline option - added logic to detect invalid architecture combinations (BZ# 607144) - added description of how to add user to the mock group (BZ# 570434) +- deleted fedora-10 and fedora-11 configs +- moved rpmdb clean block so that it works with --offline +- changed from referencing defaults.cfs to site-defaults.cfg (BZ# 600487) +- fix cachefile generation filtering logic +- filter out proc,sys,and dev from cache file creation -* Fri Apr 14 2010 Clark Williams - 1.0.8-1 -- rpmdb cache fix from Seth Vidal +* Fri May 14 2010 Clark Williams - 1.1.1-1 +- patch from Seth Vidal to handle + rpmdb cache issue (BZ#591741) -* Thu Mar 11 2010 Jesse Keating - 1.0.7-1 -- Revert new createrepo feature -- Revert -n/-N useradd change, just use -n as it still works +* Thu Mar 11 2010 Jesse Keating - 1.1.0-1 +- Make the createrepo command arguments optional +- Make the createrepo call disabled by default * Fri Feb 19 2010 Clark Williams - 1.0.6-1 - added code to check for SELinux being enabled or disabled