package init

This commit is contained in:
seki099 2020-02-29 15:53:21 +08:00
parent 863e0f9894
commit 5898b1338c
2 changed files with 53 additions and 0 deletions

53
debootstrap.spec Normal file
View File

@ -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 <shijian16@huawei.com> - 1.0.109-3
- Package init

BIN
debootstrap_1.0.109.tar.gz Normal file

Binary file not shown.