debootstrap-vl.spec 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. Name: debootstrap
  2. Version: 1.0.42
  3. Release: 1%{?_dist_release}
  4. Summary: Debian GNU/Linux bootstrapper
  5. Group: System Environment/Base
  6. License: MIT
  7. URL: http://code.erisian.com.au/Wiki/debootstrap
  8. Source0: http://ftp.debian.org/debian/pool/main/d/debootstrap/debootstrap_%{version}.tar.gz
  9. Patch0: debootstrap-devices.patch
  10. Patch1: debootstrap-perms.patch
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  12. BuildArch: noarch
  13. BuildRequires: fakeroot, MAKEDEV
  14. Requires: gettext, wget, tar, gzip, binutils
  15. %description
  16. debootstrap is used to create a Debian base system from scratch, without
  17. requiring the availability of dpkg or apt. It does this by downloading
  18. .deb files from a mirror site, and carefully unpacking them into a
  19. directory which can eventually be chrooted into.
  20. This might be often useful coupled with virtualization techniques to run
  21. Debian GNU/Linux guest system.
  22. %prep
  23. %setup -q
  24. %patch0 -p1 -b .devices
  25. %patch1 -p1 -b .perms
  26. %build
  27. # in Makefile, path is hardcoded, modify it to take rpm macros into account
  28. sed -i -e 's;/usr/sbin;%{_sbindir};' Makefile
  29. # _smp_mflags would make no sense at all
  30. fakeroot make
  31. %install
  32. rm -rf $RPM_BUILD_ROOT
  33. install -d $RPM_BUILD_ROOT%{_datadir}/debootstrap/scripts/
  34. install -d $RPM_BUILD_ROOT%{_sbindir}
  35. install -d $RPM_BUILD_ROOT%{_mandir}/man8
  36. install -p -m 0644 debootstrap.8 $RPM_BUILD_ROOT%{_mandir}/man8
  37. make install DESTDIR=$RPM_BUILD_ROOT \
  38. VERSION="%{version}-%{release}" \
  39. DSDIR=$RPM_BUILD_ROOT%{_datadir}/debootstrap
  40. # substitute the rpm macro path
  41. sed -i -e 's;/usr/share;%{_datadir};' $RPM_BUILD_ROOT%{_sbindir}/debootstrap
  42. # correct the debootstrap script timestamp
  43. touch -r debootstrap $RPM_BUILD_ROOT%{_sbindir}/debootstrap
  44. %clean
  45. rm -rf $RPM_BUILD_ROOT
  46. %files
  47. %defattr(-,root,root,-)
  48. %{_datadir}/debootstrap
  49. %{_sbindir}/debootstrap
  50. %{_mandir}/man8/debootstrap.8*
  51. %doc debian/changelog debian/copyright README
  52. %changelog
  53. * Sat Aug 18 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.42-1
  54. - new upstream release
  55. * Tue Dec 13 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.38-1
  56. - new upstram release
  57. * Tue Feb 22 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.27-1
  58. - initial build for Vine Linux
  59. * Wed Feb 09 2011 Jan Vcelak <jvcelak@redhat.com> 1.0.27-1
  60. - new upstream release (typo in --private-key, improve Hurd support)
  61. * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.26-2
  62. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  63. * Mon Nov 22 2010 Jan Vcelak <jvcelak@redhat.com> 1.0.26-1
  64. - new upstream release (fix typos and remove old workaround for md5sum)
  65. * Mon Oct 25 2010 Jan Vcelak <jvcelak@redhat.com> 1.0.25-1
  66. - new upstream release (support for HTTPS, added Ubuntu Nanty, added Debian Wheezy)
  67. * Wed May 26 2010 Jan Zeleny <jzeleny@redhat.com> - 1.0.23-1
  68. - rebased to 1.0.23 (Add ${misc:Depends}, Add (Ubuntu) maverick as symlink to gutsy)
  69. * Fri Mar 05 2010 Jan Zeleny <jzeleny@redhat.com> - 1.0.22-1
  70. - rebased to 1.0.22
  71. * Wed Sep 30 2009 Adam Goode <adam@spicenitz.org> - 1.0.19-2
  72. - Make sure to create /dev/console in devices.tar.gz
  73. * Wed Sep 30 2009 Adam Goode <adam@spicenitz.org> - 1.0.19-1
  74. - New upstream release
  75. + Many bugfixes
  76. + Support for new distributions
  77. - Arch patch no longer needed
  78. - Rebase other patches
  79. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.10-3
  80. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  81. * Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.10-2
  82. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  83. * Tue Jul 15 2008 Lubomir Rintel <lkundrak@v3.sk> - 1.0.10-1
  84. - New upstream version
  85. * Sun Jun 15 2008 Adam Goode <adam@spicenitz.org> - 1.0.9-1
  86. - 1.0.9
  87. * Fri Feb 22 2008 Lubomir Kundrak <lkundrak@redhat.com> - 1.0.8-1
  88. - 1.0.8
  89. * Sun Nov 18 2007 Patrice Dumas <pertusus@free.fr> 1.0.7-2
  90. - keep timestamps
  91. - use rpm macros instead of hardcoded paths
  92. * Sat Nov 17 2007 Lubomir Kundrak <lkundrak@redhat.com> 1.0.7-1
  93. - Version bump
  94. * Thu Nov 15 2007 Lubomir Kundrak <lkundrak@redhat.com> 1.0.3-2
  95. - Some more fixes, thanks to Patrice Dumas (#329291)
  96. * Fri Oct 12 2007 Lubomir Kundrak <lkundrak@redhat.com> 1.0.3-1
  97. - Incorporating advises from Patrice Dumas (#329291) in account
  98. * Fri Oct 12 2007 Lubomir Kundrak <lkundrak@redhat.com> 0.3.3.2etch1-1
  99. - Initial package