1 |
Summary: Builds packages inside chroots |
2 |
Name: mock |
3 |
Version: 0.7.1 |
4 |
Release: 1%{?dist} |
5 |
License: GPL |
6 |
Group: Development/Tools |
7 |
Source: http://fedoraproject.org/projects/mock/releases/%{name}-%{version}.tar.gz |
8 |
URL: http://fedoraproject.org/wiki/Projects/Mock |
9 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
10 |
Requires: python, yum >= 3.0 |
11 |
Requires(pre): shadow-utils |
12 |
BuildRequires: libselinux-devel |
13 |
|
14 |
|
15 |
%description |
16 |
Mock takes a srpm and builds it in a chroot |
17 |
|
18 |
%prep |
19 |
%setup -q |
20 |
|
21 |
%build |
22 |
make |
23 |
|
24 |
%install |
25 |
rm -rf $RPM_BUILD_ROOT |
26 |
make DESTDIR=$RPM_BUILD_ROOT install |
27 |
# make the default.cfg link |
28 |
cd $RPM_BUILD_ROOT/%{_sysconfdir}/%{name} |
29 |
|
30 |
%if 0%{?fedora:1} |
31 |
if [ -f fedora-%{fedora}-%{_target_cpu}-core.cfg ]; then |
32 |
ln -s fedora-%{fedora}-%{_target_cpu}-core.cfg default.cfg |
33 |
fi |
34 |
%endif |
35 |
|
36 |
# if we haven't created a default link yet, try to do so as devel |
37 |
if [ ! -f default.cfg ]; then |
38 |
if [ -f fedora-development-%{_target_cpu}-core.cfg ]; then |
39 |
ln -s fedora-development-%{_target_cpu}-core.cfg default.cfg |
40 |
elif [ -f fedora-devel-%{_target_cpu}-core.cfg ]; then |
41 |
ln -s fedora-devel-%{_target_cpu}-core.cfg default.cfg |
42 |
elif [ -f fedora-development-i386-core.cfg ]; then |
43 |
ln -s fedora-development-i386-core.cfg default.cfg |
44 |
elif [ -f fedora-devel-i386-core.cfg ]; then |
45 |
ln -s fedora-devel-i386-core.cfg default.cfg |
46 |
fi |
47 |
fi |
48 |
|
49 |
%clean |
50 |
rm -rf $RPM_BUILD_ROOT |
51 |
|
52 |
%pre |
53 |
if [ $1 -eq 1 ]; then |
54 |
groupadd -r mock >/dev/null 2>&1 || : |
55 |
fi |
56 |
|
57 |
%files |
58 |
%defattr(-, root, root) |
59 |
%doc README ChangeLog buildsys-build.spec |
60 |
%dir %{_sysconfdir}/%{name} |
61 |
%config(noreplace) %{_sysconfdir}/%{name}/*.cfg |
62 |
%attr(04750, root, mock) %{_bindir}/%{name} |
63 |
%{_libexecdir}/mock* |
64 |
%{_mandir}/man1/mock.1* |
65 |
%attr(02775, root, mock) %dir /var/lib/mock |
66 |
%{_libdir}/libselinux-mock.so |
67 |
|
68 |
%changelog |
69 |
* Mon Jan 8 2007 Clark Williams <williams@redhat.com> |
70 |
- Added Josh Boyer's EPEL config files |
71 |
|
72 |
* Wed Jan 3 2007 Clark Williams <williams@redhat.com> |
73 |
- Merged mock-0.6 BZ fixes into head |
74 |
|
75 |
* Fri Sep 8 2006 Clark Williams <williams@redhat.com> - 0.7.1-1 |
76 |
- Change mock.py to /usr/libexec |
77 |
|
78 |
* Wed Aug 16 2006 Clark Williams <williams@redhat.com> - 0.7-2 |
79 |
- Added buildsys-build.spec to docs |
80 |
- Added disttag |
81 |
- Bumped release number |
82 |
|
83 |
* Wed Jun 28 2006 Clark Williams <williams@redhat.com> - 0.7-1 |
84 |
- updated version to 0.7 |
85 |
- removed /usr/sbin/mock-helper |
86 |
- added /usr/bin/mock launcher |
87 |
|
88 |
* Wed Jun 7 2006 Seth Vidal <skvidal at linux.duke.edu> |
89 |
- version update |
90 |
|
91 |
* Tue Apr 11 2006 Seth Vidal <skvidal at linux.duke.edu> |
92 |
- specfile version iterate |
93 |
|
94 |
* Tue Dec 27 2005 Seth Vidal <skvidal@phy.duke.edu> |
95 |
- add patch from Andreas Thienemann - adds man page |
96 |
|
97 |
* Sat Jun 11 2005 Seth Vidal <skvidal@phy.duke.edu> |
98 |
- security fix in mock-helper |
99 |
|
100 |
* Sun Jun 5 2005 Seth Vidal <skvidal@phy.duke.edu> |
101 |
- clean up packaging for fedora extras |
102 |
|
103 |
* Thu May 19 2005 Seth Vidal <skvidal@phy.duke.edu> |
104 |
- second packaging and backing down the yum ver req |
105 |
|
106 |
* Sun May 15 2005 Seth Vidal <skvidal@phy.duke.edu> |
107 |
- first version/packaging |