]> TLD Linux GIT Repositories - packages/debootstrap.git/blob - debootstrap.spec
- R dpkg, not binutils (debootsrap prefers dpkg-deb over ar for ages)
[packages/debootstrap.git] / debootstrap.spec
1 Summary:        Bootstrap a basic Debian system
2 Summary(pl.UTF-8):      Instalator podstawowego systemu opartego o pakiety deb
3 Name:           debootstrap
4 Version:        1.0.72
5 Release:        2
6 License:        MIT-like
7 Group:          Applications/File
8 Source0:        http://ftp.debian.org/debian/pool/main/d/debootstrap/%{name}_%{version}.tar.gz
9 # Source0-md5:  0cacf6e3bd8b566e921d2a326d6fd2bd
10 Source1:        devices.tar.gz
11 # Source1-md5:  8c12b8d845b32080c6c769afb3376ada
12 URL:            https://wiki.debian.org/Debootstrap
13 BuildRequires:  sed >= 4.0
14 BuildRequires:  tar >= 1:1.22
15 BuildRequires:  xz
16 Requires:       dpkg
17 Requires:       wget
18 BuildArch:      noarch
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 Debootstrap is used to create a Debian base system from scratch,
23 without requiring the availability of dpkg or apt. It does this by
24 downloading .deb files from a mirror site, and carefully unpacking
25 them into a directory which can eventually be chrooted into.
26
27 %description -l pl.UTF-8
28 Debootstrap jest wykorzystywany do tworzenia podstawowego systemu
29 Debiana od podstaw, bez potrzeby dostępności dpkg lub apt. Ściąga
30 pliki .deb z serwera i ostrożnie rozpakowuje je do katalogu, dokąd
31 możesz się następnie chrootować.
32
33 %prep
34 %setup -q
35 sed -i -e "s|@VERSION@|%{version}|g" %{name}
36
37 %install
38 rm -rf $RPM_BUILD_ROOT
39
40 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8,%{_datadir}/%{name}}
41
42 install %{name} $RPM_BUILD_ROOT%{_sbindir}/%{name}
43 install %{name}.8 $RPM_BUILD_ROOT%{_mandir}/man8/%{name}.8
44
45 cp -a scripts $RPM_BUILD_ROOT%{_datadir}/%{name}/scripts
46
47 install functions $RPM_BUILD_ROOT%{_datadir}/%{name}
48 install %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/%{name}
49
50 %clean
51 rm -rf $RPM_BUILD_ROOT
52
53 %files
54 %defattr(644,root,root,755)
55 %doc README TODO debian/copyright debian/changelog
56 %attr(755,root,root) %{_sbindir}/%{name}
57 %{_mandir}/man8/%{name}.8*
58 %dir %{_datadir}/%{name}
59 %{_datadir}/%{name}/scripts
60 %{_datadir}/%{name}/functions
61 %{_datadir}/%{name}/devices.tar.gz