blob: fa7eb748e1e3a6a9cd5cc67f48d28b0ac3eeecbb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
Summary: Builds packages inside chroots
Name: mock
Version: 0.2
Release: 2
License: GPL
Group: Development/Tools
Source: http://linux.duke.edu/~skvidal/mock/%{name}-%{version}.tar.gz
URL: http://linux.duke.edu/~skvidal/mock/
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: python, yum >= 2.2.1
Requires(pre): shadow-utils
%description
Mock takes a srpm and builds it in a chroot
%prep
%setup -q
%build
make
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
# make the default.cfg link
cd $RPM_BUILD_ROOT/%{_sysconfdir}/%{name}
ln -s fedora-development-i386-core.cfg default.cfg
%clean
rm -rf $RPM_BUILD_ROOT
%pre
if [ $1 -eq 1 ]; then
groupadd -r mock >/dev/null 2>&1 || :
fi
%files
%defattr(-, root, root)
%doc README ChangeLog
%dir %{_sysconfdir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}/*.cfg
%{_bindir}/%{name}
%attr(04750, root, mock) %{_sbindir}/mock-helper
%attr(02775, root, mock) %dir /var/lib/mock
%changelog
* Sun Jun 5 2005 Seth Vidal <skvidal@phy.duke.edu>
- clean up packaging for fedora extras
* Thu May 19 2005 Seth Vidal <skvidal@phy.duke.edu>
- second packaging and backing down the yum ver req
* Sun May 15 2005 Seth Vidal <skvidal@phy.duke.edu>
- first version/packaging
|