From 0be4bdae116f8ca49ff2b77e64a465fc428e32acd4af31fe3ed934b87c4061fe Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Thu, 3 May 2012 07:44:03 +0000 Subject: [PATCH] Accepting request 116306 from home:flichtenheld I would like to get this package into factory. devel:tools seemed like the best devel project for it. OBS-URL: https://build.opensuse.org/request/show/116306 OBS-URL: https://build.opensuse.org/package/show/devel:tools/debootstrap?expand=0&rev=1 --- .gitattributes | 23 +++++++ _service | 13 ++++ ...ice:download_url:debootstrap_1.0.40.tar.gz | 3 + debootstrap-norootforbuild.patch | 20 ++++++ debootstrap.changes | 61 +++++++++++++++++++ debootstrap.spec | 51 ++++++++++++++++ devices.tar.gz | 3 + 7 files changed, 174 insertions(+) create mode 100644 .gitattributes create mode 100644 _service create mode 100644 _service:download_url:debootstrap_1.0.40.tar.gz create mode 100644 debootstrap-norootforbuild.patch create mode 100644 debootstrap.changes create mode 100644 debootstrap.spec create mode 100644 devices.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/_service b/_service new file mode 100644 index 0000000..2b2d37d --- /dev/null +++ b/_service @@ -0,0 +1,13 @@ + + + + http + ftp.de.debian.org + /debian/pool/main/d/debootstrap/debootstrap_1.0.40.tar.gz + + + _service:download_url:debootstrap_1.0.40.tar.gz + sha256 + edc3c6c6d8c107d02064418b8205667e68cb4464a99c540421c4bbcfdb3bf3c6 + + diff --git a/_service:download_url:debootstrap_1.0.40.tar.gz b/_service:download_url:debootstrap_1.0.40.tar.gz new file mode 100644 index 0000000..1aec3a0 --- /dev/null +++ b/_service:download_url:debootstrap_1.0.40.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:edc3c6c6d8c107d02064418b8205667e68cb4464a99c540421c4bbcfdb3bf3c6 +size 55961 diff --git a/debootstrap-norootforbuild.patch b/debootstrap-norootforbuild.patch new file mode 100644 index 0000000..394a5e7 --- /dev/null +++ b/debootstrap-norootforbuild.patch @@ -0,0 +1,20 @@ +diff -ur debootstrap.orig/Makefile debootstrap/Makefile +--- debootstrap.orig/Makefile 2011-08-10 13:59:34.000000000 +0200 ++++ debootstrap/Makefile 2011-08-12 21:57:41.329074862 +0200 +@@ -19,14 +19,13 @@ + mkdir -p $(DESTDIR)/usr/sbin + + cp -a scripts/* $(DSDIR)/scripts/ +- install -o root -g root -m 0644 functions $(DSDIR)/ ++ install -m 0644 functions $(DSDIR)/ + + sed 's/@VERSION@/$(VERSION)/g' debootstrap >$(DESTDIR)/usr/sbin/debootstrap +- chown root:root $(DESTDIR)/usr/sbin/debootstrap + chmod 0755 $(DESTDIR)/usr/sbin/debootstrap + + ifeq ($(shell uname),Linux) +- install -o root -g root -m 0644 devices.tar.gz $(DSDIR)/ ++ install -m 0644 devices.tar.gz $(DSDIR)/ + endif + + devices.tar.gz: diff --git a/debootstrap.changes b/debootstrap.changes new file mode 100644 index 0000000..34df80a --- /dev/null +++ b/debootstrap.changes @@ -0,0 +1,61 @@ +------------------------------------------------------------------- +Sat Apr 28 17:07:00 UTC 2012 - frank.lichtenheld@sophos.com + +- update to 1.0.40 + +------------------------------------------------------------------- +Tue Mar 13 21:21:09 UTC 2012 - frank.lichtenheld@sophos.com + +- update to 1.0.39 + +------------------------------------------------------------------- +Fri Nov 25 21:46:23 UTC 2011 - frank.lichtenheld@sophos.com + +- update to 1.0.38 + +------------------------------------------------------------------- +Mon Oct 24 21:20:04 UTC 2011 - frank.lichtenheld@sophos.com + +- update to 1.0.37 + +------------------------------------------------------------------- +Tue Sep 20 12:53:03 UTC 2011 - frank.lichtenheld@sophos.com + +- update to 1.0.36 + +------------------------------------------------------------------- +Fri Aug 12 19:52:00 UTC 2011 - flichtenheld@astaro.com + +- update to 1.0.35 + +------------------------------------------------------------------- +Fri Jul 29 18:26:55 UTC 2011 - flichtenheld@astaro.com + +- update to 1.0.34 + +------------------------------------------------------------------- +Thu Jun 2 10:56:08 UTC 2011 - flichtenheld@astaro.com + +- update to 1.0.32 + +------------------------------------------------------------------- +Tue Mar 22 21:09:26 UTC 2011 - flichtenheld@astaro.com + +- update to 1.0.29 + +------------------------------------------------------------------- +Tue Feb 22 18:57:34 UTC 2011 - flichtenheld@astaro.com + +- update to 1.0.28 + +------------------------------------------------------------------- +Mon Feb 14 23:23:28 UTC 2011 - flichtenheld@astaro.com + +- update to 1.0.27 + +------------------------------------------------------------------- +Sat Jan 15 00:00:00 UTC 2011 - flichtenheld@astaro.com + +- initial packaging + + diff --git a/debootstrap.spec b/debootstrap.spec new file mode 100644 index 0000000..06df2d3 --- /dev/null +++ b/debootstrap.spec @@ -0,0 +1,51 @@ +# +# This file and all modifications and additions to the pristine +# package are under the same license as the package itself. +# + +# norootforbuild + +Name: debootstrap +Version: 1.0.40 +Release: 1 +Summary: Bootstrap a basic Debian system +Group: Development/Tools/Other +Url: http://packages.debian.org/debootstrap +License: MIT +Source0: %{name}_%{version}.tar.gz +Source1: devices.tar.gz +Patch0: %{name}-norootforbuild.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-build +AutoReqProv: on +BuildArch: noarch + +%description +debootstrap is used to create a Debian base system from scratch, without requiring the availability of dpkg or apt. It does this by downloading .deb files from a mirror site, and carefully unpacking them into a directory which can eventually be chrooted into. + +Authors: +-------- + Anthony Towns + +%prep +%setup +%patch0 -p1 + +%build +cp %{SOURCE1} . + +%install +%{__make} install DESTDIR=%{?buildroot} +gzip -9 debootstrap.8 +install -D -m644 debootstrap.8.gz %{buildroot}/%{_mandir}/man8/debootstrap.8.gz + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,0755) +%doc README TODO debian/changelog debian/copyright +%{_sbindir}/debootstrap +%{_datadir}/debootstrap +%{_mandir}/man8/debootstrap.8.gz + +%changelog diff --git a/devices.tar.gz b/devices.tar.gz new file mode 100644 index 0000000..7acab01 --- /dev/null +++ b/devices.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dbb8d5752451ef7beaeaaaab4eb1f5b8dbb8d44378c4520d9c4fa03b915c8936 +size 775