debootstrap-vl.spec 4.2 KB

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