diff --git a/debootstrap.spec b/debootstrap.spec index 440a374..69c637a 100644 --- a/debootstrap.spec +++ b/debootstrap.spec @@ -1,6 +1,6 @@ Name: debootstrap Version: 1.0.59 -Release: 1%{?dist} +Release: 1%{?dist}.1 Summary: Debian GNU/Linux bootstrapper Group: System Environment/Base @@ -12,7 +12,7 @@ Patch1: debootstrap-perms.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch -BuildRequires: fakeroot, MAKEDEV +BuildRequires: fakeroot Requires: gettext, wget, tar, gzip, binutils @@ -37,7 +37,26 @@ Debian GNU/Linux guest system. sed -i -e 's;/usr/sbin;%{_sbindir};' Makefile # _smp_mflags would make no sense at all -fakeroot make +# Also, el7 does not ship MAKEDEV anymore. +# Let's create useful devices ourselves +fakeroot make MAKEDEV=' + mkdir -p dev dev/fd + mknod dev/console c 5 1 + mknod dev/core c 1 6 + mknod dev/full c 1 7 + mknod dev/mem c 1 1 + mknod dev/null c 1 3 + mknod dev/port c 1 4 + mknod dev/ptmx c 5 2 + mknod dev/random c 1 8 + mknod dev/tty c 5 0 + mknod dev/urandom c 1 9 + mknod dev/zero c 1 5 + ln -sf ../proc/self/fd dev/fd + ln -sf ../proc/self/fd/0 dev/fd/stdin + ln -sf ../proc/self/fd/1 dev/fd/stdout + ln -sf ../proc/self/fd/2 dev/fd/stderr +:' %install @@ -68,6 +87,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Tue Apr 29 2014 Lubomir Rintel 1.0.59-1.1 +- RHEL 7 does not ship MAKEDEV anymore + * Fri Feb 14 2014 Jan Vcelak 1.0.59-1 - new upstream release: + install ca-certificates as well as apt-transport-https for https installations