debootstrap-vl.spec 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. Name: debootstrap
  2. Version: 1.0.38
  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 -n debootstrap
  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. * Tue Dec 13 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.38-1
  54. - new upstram release
  55. * Tue Feb 22 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.27-1
  56. - initial build for Vine Linux
  57. * Wed Feb 09 2011 Jan Vcelak <jvcelak@redhat.com> 1.0.27-1
  58. - new upstream release (typo in --private-key, improve Hurd support)
  59. * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.26-2
  60. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  61. * Mon Nov 22 2010 Jan Vcelak <jvcelak@redhat.com> 1.0.26-1
  62. - new upstream release (fix typos and remove old workaround for md5sum)
  63. * Mon Oct 25 2010 Jan Vcelak <jvcelak@redhat.com> 1.0.25-1
  64. - new upstream release (support for HTTPS, added Ubuntu Nanty, added Debian Wheezy)
  65. * Wed May 26 2010 Jan Zeleny <jzeleny@redhat.com> - 1.0.23-1
  66. - rebased to 1.0.23 (Add ${misc:Depends}, Add (Ubuntu) maverick as symlink to gutsy)
  67. * Fri Mar 05 2010 Jan Zeleny <jzeleny@redhat.com> - 1.0.22-1
  68. - rebased to 1.0.22
  69. * Wed Sep 30 2009 Adam Goode <adam@spicenitz.org> - 1.0.19-2
  70. - Make sure to create /dev/console in devices.tar.gz
  71. * Wed Sep 30 2009 Adam Goode <adam@spicenitz.org> - 1.0.19-1
  72. - New upstream release
  73. + Many bugfixes
  74. + Support for new distributions
  75. - Arch patch no longer needed
  76. - Rebase other patches
  77. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.10-3
  78. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  79. * Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.10-2
  80. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  81. * Tue Jul 15 2008 Lubomir Rintel <lkundrak@v3.sk> - 1.0.10-1
  82. - New upstream version
  83. * Sun Jun 15 2008 Adam Goode <adam@spicenitz.org> - 1.0.9-1
  84. - 1.0.9
  85. * Fri Feb 22 2008 Lubomir Kundrak <lkundrak@redhat.com> - 1.0.8-1
  86. - 1.0.8
  87. * Sun Nov 18 2007 Patrice Dumas <pertusus@free.fr> 1.0.7-2
  88. - keep timestamps
  89. - use rpm macros instead of hardcoded paths
  90. * Sat Nov 17 2007 Lubomir Kundrak <lkundrak@redhat.com> 1.0.7-1
  91. - Version bump
  92. * Thu Nov 15 2007 Lubomir Kundrak <lkundrak@redhat.com> 1.0.3-2
  93. - Some more fixes, thanks to Patrice Dumas (#329291)
  94. * Fri Oct 12 2007 Lubomir Kundrak <lkundrak@redhat.com> 1.0.3-1
  95. - Incorporating advises from Patrice Dumas (#329291) in account
  96. * Fri Oct 12 2007 Lubomir Kundrak <lkundrak@redhat.com> 0.3.3.2etch1-1
  97. - Initial package