diff --git a/debootstrap.spec b/debootstrap.spec new file mode 100644 index 0000000..af9c67f --- /dev/null +++ b/debootstrap.spec @@ -0,0 +1,53 @@ +Name: debootstrap +Version: 1.0.109 +Release: 3 +Summary: Debian base system maintainer tool +License: MIT +URL: https://wiki.debian.org/Debootstrap +Source0: https://launchpad.net/debian/+archive/primary/+sourcefiles/debootstrap/1.0.109/debootstrap_1.0.109.tar.gz +BuildArch: noarch +BuildRequires: fakeroot +Requires: gettext perl-interpreter wget tar gzip dpkg xz +Recommends: ubu-keyring debian-keyring + +%description +Debootstrap is a tool which will install a Debian base system into a subdirectory of another, +already installed system. +It doesn't require an installation CD, just access to a Debian repository. It can also be installed +and run from another operating system, so, for instance, you can use debootstrap to install Debian +onto an unused partition from a running Gentoo system. It can also be used to create a rootfs for a +machine of a different architecture, which is known as "cross-debootstrapping". + +%package help +Summary: Help document for debootstrap + +%description help +Help document debootstrap. + +%prep +%autosetup -n %{name}-%{version} -p1 + +sed -i -e 's;/usr/sbin;%{_sbindir};' Makefile +mv debootstrap debootstrap.orig +sed -e 's;/usr/share;%{_datadir};' debootstrap.orig > debootstrap +touch -r debootstrap.orig debootstrap +rm debootstrap.orig + +%build + +%install +fakeroot make install DESTDIR=%{buildroot} VERSION="%{version}-%{release}" +install -Dp -m0644 debootstrap.8 %{buildroot}%{_mandir}/man8/debootstrap.8 + +%files +%license debian/copyright +%{_datadir}/debootstrap +%{_sbindir}/debootstrap + +%files help +%doc debian/changelog README +%{_mandir}/man8/debootstrap.8* + +%changelog +* Tue Feb 18 2020 shijian - 1.0.109-3 +- Package init diff --git a/debootstrap_1.0.109.tar.gz b/debootstrap_1.0.109.tar.gz new file mode 100644 index 0000000..2f1106b Binary files /dev/null and b/debootstrap_1.0.109.tar.gz differ