]>
Commit | Line | Data |
---|---|---|
0f915043 | 1 | # TODO: |
2 | # - optional package with dev files / links to dev | |
b0588a94 | 3 | # - still problems on amd64:/ |
0f915043 | 4 | Summary: Bootstrap a basic Debian system |
847697a1 | 5 | Summary(pl.UTF-8): Zainstaluj Debiana |
0f915043 | 6 | Name: debootstrap |
4b5c7edb | 7 | Version: 1.0.1 |
26c9d730 | 8 | Release: 0.3 |
0f915043 | 9 | License: Freeware |
10 | Group: Applications/File | |
4b5c7edb | 11 | Source0: http://archive.ubuntulinux.org/ubuntu/pool/main/d/debootstrap/%{name}_%{version}.tar.gz |
12 | # Source0-md5: afa00d6362c8246560797cb54c502908 | |
b0588a94 | 13 | Source1: devices.tar.gz |
26c9d730 | 14 | BuildRequires: dpkg |
8f025928 | 15 | BuildRequires: sed >= 4.0 |
0f915043 | 16 | Requires: binutils |
17 | Requires: wget | |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
20 | %description | |
21 | Debootstrap is used to create a Debian base system from scratch, | |
22 | without requiring the availability of dpkg or apt. It does this by | |
23 | downloading .deb files from a mirror site, and carefully unpacking | |
24 | them into a directory which can eventually be chrooted into. | |
25 | ||
9cd39d08 | 26 | %description -l pl.UTF-8 |
0f915043 | 27 | Debootstrap jest wykorzystywany do tworzenia podstawowego systemu |
9cd39d08 JR |
28 | Debiana od podstaw, bez potrzeby dostępności dpkg lub apt. Ściąga |
29 | pliki .deb z serwera i ostrożnie rozpakowuje je do katalogu, dokąd | |
30 | możesz się następnie chrootować. | |
0f915043 | 31 | |
32 | %prep | |
4b5c7edb | 33 | %setup -q -n %{name} |
0f915043 | 34 | |
35 | %build | |
36 | %{__make} pkgdetails | |
37 | sed -i -e "s@/usr/lib/@%{_libdir}/@g" %{name} | |
38 | ||
39 | %install | |
40 | rm -rf $RPM_BUILD_ROOT | |
41 | install -D %{name} $RPM_BUILD_ROOT%{_sbindir}/%{name} | |
42 | install -D %{name}.8 $RPM_BUILD_ROOT%{_mandir}/man8/%{name}.8 | |
43 | ||
44 | install -d $RPM_BUILD_ROOT%{_libdir}/%{name}/scripts | |
4b5c7edb | 45 | install scripts/debian/* $RPM_BUILD_ROOT%{_libdir}/%{name}/scripts |
46 | install scripts/ubuntu/* $RPM_BUILD_ROOT%{_libdir}/%{name}/scripts | |
0f915043 | 47 | install pkgdetails functions $RPM_BUILD_ROOT%{_libdir}/%{name} |
b0588a94 | 48 | install %{SOURCE1} $RPM_BUILD_ROOT%{_libdir}/%{name}/ |
0f915043 | 49 | echo %{_arch} >$RPM_BUILD_ROOT%{_libdir}/%{name}/arch |
50 | ||
51 | %clean | |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | ||
54 | %files | |
55 | %defattr(644,root,root,755) | |
56 | %doc debian/README.Debian debian/copyright | |
57 | %attr(755,root,root) %{_sbindir}/%{name} | |
58 | %attr(755,root,root) %{_libdir}/%{name}/pkgdetails | |
59 | %{_mandir}/man?/%{name}.* | |
8f025928 | 60 | %dir %{_libdir}/%{name} |
0f915043 | 61 | %{_libdir}/%{name}/scripts |
62 | %{_libdir}/%{name}/functions | |
63 | %{_libdir}/%{name}/arch | |
b0588a94 | 64 | %{_libdir}/%{name}/devices.tar.gz |