packages: mock/mock.spec - up to 1.1.17; register mock user
glen
glen at pld-linux.org
Sun Apr 22 22:51:27 CEST 2012
Author: glen Date: Sun Apr 22 20:51:27 2012 GMT
Module: packages Tag: HEAD
---- Log message:
- up to 1.1.17; register mock user
---- Files affected:
packages/mock:
mock.spec (1.2 -> 1.3)
---- Diffs:
================================================================
Index: packages/mock/mock.spec
diff -u packages/mock/mock.spec:1.2 packages/mock/mock.spec:1.3
--- packages/mock/mock.spec:1.2 Sat Jan 22 20:26:49 2011
+++ packages/mock/mock.spec Sun Apr 22 22:51:22 2012
@@ -1,31 +1,35 @@
# $Revision$, $Date$
# TODO
-# - add system user
# - pldize (drop usermode/consoleapps), check deps
# - kill configure bashism
+# - bash completion subpackage
Summary: Builds packages inside chroots
Name: mock
-Version: 1.0.3
-Release: 0.1
+Version: 1.1.17
+Release: 0.3
License: GPL v2+
Group: Development/Tools
-Source0: https://fedorahosted.org/mock/attachment/wiki/MockTarballs/%{name}-%{version}.tar.gz?format=raw
-# Source0-md5: 6a7f44a5ad8358e0111f76f4ad1234d2
-URL: http://fedoraproject.org/wiki/Projects/Mock
+Source0: https://fedorahosted.org/mock/raw-attachment/wiki/MockTarballs/%{name}-%{version}.tar.xz
+# Source0-md5: a07e7fd3c212c75f9b9e640e96a7bdbe
+URL: https://fedoraproject.org/wiki/Projects/Mock
BuildRequires: perl-base
BuildRequires: python-devel
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.219
+BuildRequires: xz
+Requires(postun): /usr/sbin/groupdel
+Requires(pre): /usr/bin/getgid
+Requires(pre): /usr/sbin/groupadd
Requires: bash
Requires: createrepo
Requires: pigz
-Requires: python >= 1:2.4
-Requires: python-ctypes
+Requires: python >= 1:2.6
Requires: python-decoratortools
-Requires: python-hashlib
Requires: tar
Requires: usermode
Requires: yum >= 2.4
+Requires: yum-utils >= 1.1.9
+Provides: group(mock)
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -37,6 +41,10 @@
%prep
%setup -q
+# keep for reference to build pld files
+install -d sample-configs
+mv etc/mock/{fedora,epel}-*.cfg sample-configs
+
%build
bash %configure
%{__make}
@@ -56,11 +64,16 @@
rm -rf $RPM_BUILD_ROOT
%pre
-%groupadd -r mock
+%groupadd -r -g 208 mock
+
+%postun
+if [ "$1" = "0" ]; then
+ %groupremove mock
+fi
%files
%defattr(644,root,root,755)
-%doc ChangeLog
+%doc AUTHORS ChangeLog sample-configs
%attr(755,root,root) %{_bindir}/mock
%attr(755,root,root) %{_sbindir}/mock
%{_mandir}/man1/mock.1*
@@ -70,12 +83,12 @@
%config(noreplace) %{_sysconfdir}/%{name}/*.ini
%config(noreplace) /etc/pam.d/%{name}
%config(noreplace) /etc/security/console.apps/%{name}
-#/etc/bash_completion.d/*
+/etc/bash_completion.d/mock.bash
-%dir %{py_sitescriptdir}/%{name}
-%dir %{py_sitescriptdir}/%{name}/plugins
-%{py_sitescriptdir}/%{name}/plugins/*.py[co]
-%{py_sitescriptdir}/%{name}/*.py[co]
+%dir %{py_sitescriptdir}/mockbuild
+%{py_sitescriptdir}/mockbuild/*.py[co]
+%dir %{py_sitescriptdir}/mockbuild/plugins
+%{py_sitescriptdir}/mockbuild/plugins/*.py[co]
# build dir
%attr(2775, root, mock) %dir /var/lib/mock
@@ -89,6 +102,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.3 2012/04/22 20:51:22 glen
+- up to 1.1.17; register mock user
+
Revision 1.2 2011/01/22 19:26:49 sparky
- BR: perl-base
================================================================
---- CVS-web:
http://cvs.pld-linux.org/packages/mock/mock.spec?r1=1.2&r2=1.3
More information about the pld-cvs-commit
mailing list