summaryrefslogtreecommitdiff
path: root/arch-install-scripts.spec
blob: e3f041a8d3ec0b9ae1b63b98ab6ee0167b829972 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# %%define _git_commit a60ad8036105bd976eeec574497e72168a44759b
Name:           arch-install-scripts
Version:        29
Release:        1
Summary:        Scripts to bootstrap Arch Linux distribution
License:        GPLv2
URL:            https://gitlab.archlinux.org/archlinux/arch-install-scripts
Source0:        https://gitlab.archlinux.org/archlinux/arch-install-scripts/archive/refs/tags/%{name}-%{version}.tar.gz
BuildArch:      noarch

BuildRequires:	make m4 asciidoc git

Requires:	bash >= 4.1
Requires:	coreutils >= 8.15
Requires:	util-linux >= 2.39
Requires:	gawk grep
Requires:	arch-chroot genfstab pacstrap

%description
A small suite of scripts aimed at automating some menial tasks when installing
Arch Linux, most notably including actually performing the installation.

To install and launch Arch in a container:
  pacman-key --init
  pacman-key --populate archlinux
  mkdir -p /var/lib/machines/arch
  pacstrap -G -M -i -c /var/lib/machines/arch base
  systemd-nspawn -bD /var/lib/machines/arch

%package -n arch-chroot
Summary:	The Chroot Helper Script from Arch Linux
%description -n arch-chroot
This package provides arch-chroot, the handy chroot helper script from the inst
-allation scripts of Arch Linux.

%package -n genfstab
Summary:	The Fstab Generator Script from Arch Linux
%description -n genfstab
This package provides genfstab, the handy fstab generator script from the inst
-allation scripts of Arch Linux.

%package -n pacstrap
Summary:	The Bootstrapping Script from Arch Linux
Requires:	archlinux-keyring pacman
%description -n pacstrap
This package provides pacstrap, the script creating new system installations fr
-om scratch from the installation scripts of Arch Linux.

%prep
%setup -q -n %{name}-v%{version}

%build
%make_build PREFIX=%{_prefix}

%install
%make_install PREFIX=%{_prefix}

%check
make check

%files
%license COPYING
%{_mandir}/man8/arch-chroot.8*
%{_mandir}/man8/genfstab.8*
%{_mandir}/man8/pacstrap.8*

%files -n arch-chroot
%{_bindir}/arch-chroot
%{_datadir}/bash-completion/completions/arch-chroot
%{_datadir}/zsh/site-functions/_arch-chroot

%files -n genfstab
%{_bindir}/genfstab
%{_datadir}/bash-completion/completions/genfstab
%{_datadir}/zsh/site-functions/_genfstab

%files -n pacstrap
%{_bindir}/pacstrap
%{_datadir}/bash-completion/completions/pacstrap
%{_datadir}/zsh/site-functions/_pacstrap

%changelog
* Tue Jun 17 2025 jchzhou <zhoujiacheng@iscas.ac.cn> - 29-1
- Update to v29

* Wed Jun 19 2024 jchzhou <zhoujiacheng@iscas.ac.cn> - 28.r58.2767ea5b
- Update to latest commit (2767ea5b)

* Thu Jul 20 2023 misaka00251 <liuxin@iscas.ac.cn> - 28-1
- Init package