]> git.pld-linux.org Git - packages/debootstrap.git/blob - debootstrap.spec
38ff3cfa840ae76647b45e44013e529ef7ace922
[packages/debootstrap.git] / debootstrap.spec
1 # TODO:
2 # - optional package with dev files / links to dev
3 # - still problems on amd64:/
4 Summary:        Bootstrap a basic Debian system
5 Summary(pl.UTF-8):      Zainstaluj Debiana
6 Name:           debootstrap
7 Version:        1.0.1
8 Release:        0.3
9 License:        Freeware
10 Group:          Applications/File
11 Source0:        http://archive.ubuntulinux.org/ubuntu/pool/main/d/debootstrap/%{name}_%{version}.tar.gz
12 # Source0-md5:  afa00d6362c8246560797cb54c502908
13 Source1:        devices.tar.gz
14 BuildRequires:  dpkg
15 BuildRequires:  sed >= 4.0
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
26 %description -l pl.UTF-8
27 Debootstrap jest wykorzystywany do tworzenia podstawowego systemu
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ć.
31
32 %prep
33 %setup -q -n %{name}
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
45 install scripts/debian/* $RPM_BUILD_ROOT%{_libdir}/%{name}/scripts
46 install scripts/ubuntu/* $RPM_BUILD_ROOT%{_libdir}/%{name}/scripts
47 install pkgdetails functions $RPM_BUILD_ROOT%{_libdir}/%{name}
48 install %{SOURCE1} $RPM_BUILD_ROOT%{_libdir}/%{name}/
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}.*
60 %dir %{_libdir}/%{name}
61 %{_libdir}/%{name}/scripts
62 %{_libdir}/%{name}/functions
63 %{_libdir}/%{name}/arch
64 %{_libdir}/%{name}/devices.tar.gz
This page took 0.047259 seconds and 2 git commands to generate.