debootstrap-vl.spec 4.7 KB

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