rpms/mock/EL-4 .cvsignore, 1.14, 1.15 mock.spec, 1.31, 1.32 sources, 1.17, 1.18

John Clark Williams jcwillia at fedoraproject.org
Fri Sep 5 01:54:37 UTC 2008


Author: jcwillia

Update of /cvs/pkgs/rpms/mock/EL-4
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv18284

Modified Files:
	.cvsignore mock.spec sources 
Log Message:
* Thu Sep  4 2008 Clark Williams <williams at redhat.com> - 0.9.11-1
- added workarounds for rawhide rpm (BZ 455387 and 458234)
- disabled tmpfs plugin on epel-4-x86_64
- fixed autotools breakage in configure.ac



Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/mock/EL-4/.cvsignore,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- .cvsignore	25 Jun 2007 16:03:53 -0000	1.14
+++ .cvsignore	5 Sep 2008 01:54:07 -0000	1.15
@@ -1 +1 @@
-mock-0.7.2.tar.gz
+mock-0.9.11.tar.gz


Index: mock.spec
===================================================================
RCS file: /cvs/pkgs/rpms/mock/EL-4/mock.spec,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -r1.31 -r1.32
--- mock.spec	9 Jul 2007 16:23:25 -0000	1.31
+++ mock.spec	5 Sep 2008 01:54:07 -0000	1.32
@@ -1,51 +1,64 @@
+# next four lines substituted by autoconf
+%define major 0
+%define minor 9
+%define sub 11
+%define extralevel %{nil}
+%define release_name mock
+%define release_version %{major}.%{minor}.%{sub}%{extralevel}
+
+%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
+
 Summary: Builds packages inside chroots
 Name: mock
-Version: 0.7.2
-Release: 1%{?dist}.1
-License: GPL
+Version: %{release_version}
+Release: 1%{?dist}
+License: GPLv2+
 Group: Development/Tools
-Source: http://fedoraproject.org/projects/mock/releases/%{name}-%{version}.tar.gz
+Source: https://fedorahosted.org/mock/attachment/wiki/MockTarballs/%{name}-%{version}.tar.gz
 URL: http://fedoraproject.org/wiki/Projects/Mock
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-Requires: python, yum >= 2.4
+BuildArch: noarch
+Requires: python >= 2.4, yum >= 2.4, tar, gzip, python-ctypes, python-decoratortools, usermode
 Requires(pre): shadow-utils
-BuildRequires: libselinux-devel
+BuildRequires: python-devel
 
 %description
 Mock takes a srpm and builds it in a chroot
 
 %prep
 %setup -q
+%if "%{?dist}" == ".fc8"
+pushd etc/mock
+sed -i -e 's/^#exclude=/exclude=/' -e '/^# The above is not/d' \
+    fedora-9-x86_64.cfg fedora-rawhide-x86_64.cfg
+popd
+%endif
 
 %build
-make CFLAGS="$RPM_OPT_FLAGS"
+%configure
+make
 
 %install
 rm -rf $RPM_BUILD_ROOT
 make DESTDIR=$RPM_BUILD_ROOT install
-# make the default.cfg link
-cd $RPM_BUILD_ROOT/%{_sysconfdir}/%{name}
-
-%if 0%{?fedora:1}
-if [ -f fedora-%{fedora}-%{_target_cpu}-core.cfg ]; then
-        ln -s fedora-%{fedora}-%{_target_cpu}-core.cfg default.cfg
-elif [ -f fedora-%{fedora}-%{_target_cpu}.cfg ]; then
-        ln -s fedora-%{fedora}-%{_target_cpu}.cfg default.cfg
-fi
-%endif
+mkdir -p $RPM_BUILD_ROOT/var/lib/mock
+ln -s consolehelper $RPM_BUILD_ROOT/usr/bin/mock
 
-# if we haven't created a default link yet, try to do so as devel
-if [ ! -f default.cfg ]; then
-    if [ -f fedora-development-%{_target_cpu}.cfg ]; then
-        ln -s fedora-development-%{_target_cpu}.cfg default.cfg
-    elif [ -f fedora-devel-%{_target_cpu}.cfg ]; then
-        ln -s fedora-devel-%{_target_cpu}.cfg default.cfg
-    elif [ -f fedora-development-i386.cfg ]; then
-        ln -s fedora-development-i386.cfg default.cfg
-    elif [ -f fedora-devel-i386.cfg ]; then
-        ln -s fedora-devel-i386.cfg default.cfg
-    fi
-fi
+# compatibility symlinks
+# (probably be nuked in the future)
+pushd $RPM_BUILD_ROOT/etc/mock
+ln -s epel-4-i386.cfg   fedora-4-i386-epel.cfg
+ln -s epel-4-ppc.cfg    fedora-4-ppc-epel.cfg
+ln -s epel-4-x86_64.cfg fedora-4-x86_64-epel.cfg
+ln -s epel-5-i386.cfg   fedora-5-i386-epel.cfg
+ln -s epel-5-ppc.cfg    fedora-5-ppc-epel.cfg
+ln -s epel-5-x86_64.cfg fedora-5-x86_64-epel.cfg
+# more compat, from devel/rawhide rename
+ln -s fedora-rawhide-i386.cfg fedora-devel-i386.cfg
+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
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -57,19 +70,213 @@
 
 %files
 %defattr(-, root, root)
-%doc README ChangeLog buildsys-build.spec
+
+# executables
+%{_bindir}/mock
+%attr(0755, root, root) %{_sbindir}/mock
+
+# python stuff
+%{python_sitelib}/*
+
+# config files
 %dir  %{_sysconfdir}/%{name}
 %config(noreplace) %{_sysconfdir}/%{name}/*.cfg
-%{_bindir}/%{name}
-%{_libexecdir}/mock-yum
+%config(noreplace) %{_sysconfdir}/%{name}/*.ini
+%config(noreplace) %{_sysconfdir}/pam.d/%{name}
+%config(noreplace) %{_sysconfdir}/security/console.apps/%{name}
+
+# docs
 %{_mandir}/man1/mock.1*
-%attr(04750, root, mock) %{_sbindir}/mock-helper
+%doc ChangeLog
+
+# build dir
 %attr(02775, root, mock) %dir /var/lib/mock
-%{_libdir}/libselinux-mock.so
 
 %changelog
-* Mon Jul 09 2007 Michael Brown <mebrown at michaels-house.net> - 0.7.1-1.el4.1
-- back out yum>3 require
+* Thu Sep  4 2008 Clark Williams <williams at redhat.com> - 0.9.11-1
+- added workarounds for rawhide rpm (BZ 455387 and 458234)
+- disabled tmpfs plugin on epel-4-x86_64
+- fixed autotools breakage in configure.ac
+
+* Tue May 20 2008 Jesse Keating <jkeating at redhat.com> - 0.9.10-1
+- added fix for building F-8 mock (clark)
+- Update epel configs
+
+* Tue Apr 22 2008 Jesse Keating <jkeating at redhat.com> - 0.9.9-1
+- Update config files for Fedora 9
+- Comment out multilib excludes, no longer needed in F9+ with yum multilib changes
+
+* Mon Mar 31 2008 Jesse Keating <jkeating at redhat.com> - 0.9.8-1
+- modify rootcache logic to rebuild cache if config files have newer timestamp
+- For Fedora 8 and higher, use priority failover method
+- Point to the correct static-repo for rawhide stuff.
+- Move "devel" to "rawhide" to match current Fedora naming schemes.
+
+* Thu Jan 31 2008 Michael Brown <mebrown at michaels-house.net> - 0.9.7-1
+- redo mock.util.do() to use python subprocess module, which should be
+  much more maintainable than our old homegrown code.
+- Fix exclude= lines once again. Yum fnmatch parser doesnt understand [!x]
+  notation
+- add --unpriv and --cwd options to run chroot commands without elevated privs
+  and in a specific working directory (under the root).
+- mount all filesystems when running chroot commands
+- remove redundant ccache init since we now source /etc/profile.d/ccache.sh
+
+* Wed Jan 16 2008 Clark Williams <williams at redhat.com> - 0.9.6-1
+- renamed configs and put compat symlinks in place
+- misc cleanups (whitespace fixes, info messages, etc.)
+- tmpfs plugin fix
+- split --target and --arch command line arguments
+- changed from -l to --login on bash invocations
+- create /dev/full in chroot
+
+* Thu Dec 20 2007 Michael Brown <mebrown at michaels-house.net> - 0.9.5-1
+- really fix file-based BuildRequires
+
+* Wed Dec 19 2007 Michael Brown <mebrown at michaels-house.net> - 0.9.4-1
+- Result dir was not honoring --uniqueext=
+- make rpmbuild run under a chroot login shell
+- mock is now noarch due to drop of all binary components
+- add tmpfs plugin (disabled by default)
+- slightly more friendly logs.
+
+* Fri Dec 14 2007 Clark Williams <williams at redhat.com> - 0.9.3-1
+- added '--copyin' and '--copyout' modes
+- added makeChrootPath() method to Root
+- replaced most ad hock usages of .rootdir with makeChrootPath()
+- updated man page && added test cases
+- added 'help' target to Makefile.am
+
+* Thu Dec 13 2007 Michael Brown <mebrown at michaels-house.net> - 0.9.2-1
+- add '--update' mode
+- fix '--shell' mode
+
+* Tue Dec 11 2007 Michael Brown <mebrown at michaels-house.net> - 0.9.1-1
+- fix 'mock shell' command when passing more than one arg.
+- add --orphanskill mode which only does orphankill
+- make 'mock --shell' noninteractive and logged to root.log
+- fix for file-based BuildRequires
+- add sparcs to constant list for auto-setarch
+
+* Tue Dec 11 2007 Michael Brown <mebrown at michaels-house.net> - 0.8.17-1
+- fix 'mock shell' command when passing more than one arg.
+- add --orphanskill mode which only does orphankill
+- make 'mock --shell' noninteractive and logged to root.log
+- fix for file-based BuildRequires
+- add sparcs to constant list for auto-setarch
+
+* Sun Dec 09 2007 Michael Brown <mebrown at michaels-house.net> - 0.9.0-1
+- drop suid helper and use consolehelper instead.
+- add unshare() call rather than clone(CLONE_NEWNS...)
+
+* Sun Dec 09 2007 Michael Brown <mebrown at michaels-house.net> - 0.8.16-1
+- drop FC6 configs. FC6 no longer supported
+- add --trace cmdline parameter
+- make logs slightly less verbose
+
+* Wed Dec 05 2007 Michael Brown <mebrown at michaels-house.net> - 0.8.15-1
+- fix traceback when root cache doesnt exist.
+- add "--with", "--without", and "--define" cmdline parameters which are passed
+  to rpmbuild (courtesy Todd Zullinger)
+
+* Tue Dec 04 2007 Michael Brown <mebrown at michaels-house.net> - 0.8.14-1
+- fix traceback when cache dir was not found
+
+* Tue Dec 04 2007 Michael Brown <mebrown at michaels-house.net> - 0.8.13-1
+- brown-paper-bag bug where built rpm didnt work due to lack of path 
+  substitution in mock.py
+
+* Mon Dec 03 2007 Michael Brown <mebrown at michaels-house.net> - 0.8.12-1
+- fix builds of multiple srpms
+- fix 'mock install'
+- use python-decoratortools for better python 2.3 back compat
+
+* Thu Nov 29 2007 Clark Williams <williams at redhat.com> - 0.8.11-1
+- fixes from mebrown:
+-   added back -q and -v flags
+-   print yum output by default
+-   added --offline option
+-   cleaned up uid handling
+
+* Mon Nov 26 2007 Michael Brown <mebrown at michaels-house.net> - 0.8.10-1
+- fix 'shell' command
+- fix a couple different selinux avc denial messages (didnt affect functionality)
+
+* Tue Nov 20 2007 Michael Brown <mebrown at michaels-house.net> - 0.8.9-1
+- Fixes so that mock will run cleanly on RHEL5
+- Add glib-devel.i386, glib2-devel.i386 to yum exclude list as it breaks
+  builds.
+- Add backwards-compatibility code for old-style 'automatically assume rebuild'
+  convention
+- automake symlink accidentally included in tarball rather than file
+  (py-compile)
+- update manpage
+
+* Mon Nov 19 2007 Michael Brown <mebrown at michaels-house.net> - 0.8.8-1
+- make it run correctly when called by the 'root' user
+- internal_setarch: optionally run 'setarch' internally. This
+  eliminates the need to run "setarch i386 mock ..." when building on
+  target_arch != build_arch. This is turned on by default. Limitations:
+  must have 'ctypes' python module available, which is only available
+  by default in python 2.5, or as an extension module in <= 2.4.
+  If the 'ctypes' module is not available, this feature will be
+  disabled and you must manually run 'setarch'.
+- Does not run 'clean' action for 'shell', 'chroot', 'install', or
+  'installdeps' (docs updated)
+- fix build for top_builddir != top_srcdir
+- fix 'installdeps' so that it works with both rpms/srpms
+- missing device file /dev/ptmx was causing 'expect' command to always
+  fail. Affected any SRPM build that used 'expect'.
+- hard spec file dep on python >= 2.4 due to python syntax changes.
+- resultdir can now contain python-string substitutions for any
+  variable in the chroot config.
+  rebuild my.src.rpm
+- add 'dist' variable to all chroot config files so that it is
+  available for resultdir substitutions.
+- give good error message when logging.ini cannot be found.
+- change default logging format to remove verbosity from build.log.
+- make logging format configurable from defaults.cfg or chroot cfg.
+- less verbose state.log format
+
+* Mon Oct 22 2007 Michael Brown <mebrown at michaels-house.net> - 0.8.4-1
+- fix reported 'bad owner/group' from rpm in some configurations.
+
+* Mon Oct 22 2007 Michael Brown <mebrown at michaels-house.net> - 0.8.3-1
+- BZ# 336361 -- cannot su - mockbuild
+- BZ# 326561 -- update manpage
+- BZ# 235141 -- error with immutable bit
+
+* Fri Oct 20 2007 Michael Brown <mebrown at michaels-house.net> - 0.8.0-1
+- huge number of changes upstream
+- convert to setuid wrapper instead of old setuid helper
+- lots of bugfixes and improvements
+- /var/cache/yum now saved and bind-mounted
+- ccache integration
+- rootcache improvements (formerly called autocache)
+
+* Mon Aug 27 2007 Michael Brown <mebrown at michaels-house.net> - 0.7.6-1
+- ensure /etc/hosts is created in chroot properly
+
+* Mon Aug 13 2007 Clark Williams <williams at redhat.com> - 0.7.5-2
+- build fix from Roland McGrath to fix compile of selinux lib
+
+* Wed Aug 8 2007 Clark Williams <williams at redhat.com> - 0.7.5-1
+- orphanskill feature (BZ#221351)
+
+* Wed Aug 8 2007 Michael Brown <mebrown at michaels-house.net> - 0.7.5-1
+- add example configs to defaults.cfg
+- dont rebuild cache if not clean build (BZ#250425)
+
+* Wed Jul 18 2007 Michael Brown <mebrown at michaels-house.net> - 0.7.4-1
+- return child exit status, so we properly report subcommand failures
+
+* Fri Jul  6 2007 Michael Brown <mebrown at michaels-house.net> - 0.7.3-1
+- remove redundant defaults.cfg entries.
+
+* Wed Jun 20 2007 Michael Brown <mebrown at michaels-house.net> - 0.7.2-1
+- fix exclude list
+- remove legacy configs
+- disable 'local' repos by default (koji-repos)
 
 * Wed Jun 13 2007 Michael Brown <mebrown at michaels-house.net> - 0.7.1-1
 - Fix problem with autocache where different users couldnt share same cache


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/mock/EL-4/sources,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- sources	25 Jun 2007 16:03:53 -0000	1.17
+++ sources	5 Sep 2008 01:54:07 -0000	1.18
@@ -1 +1 @@
-1d9ea644d0e48aa251344f619b71ed39  mock-0.7.2.tar.gz
+eec7aa72ba1d4cd92552a73c16d3b44e  mock-0.9.11.tar.gz




More information about the fedora-extras-commits mailing list