aboutsummaryrefslogtreecommitdiffstats
path: root/mageia4arm.spec
blob: 66cf93b6ee742362fe94cf1aed92e752ca13bd7d (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
# Run tests in check section
%bcond_without check

%global gitsystem       gitweb.mageia.org
%global gitowners       software
%global gitreposi       mageia4arm
# https://gitweb.mageia.org/software/mageia4arm

Version:    0.1.0


%global common_description %{expand:
This package enables you to build Mageia images for arm devices.}


Name:       mageia4arm
Release:    %mkrel 1
BuildArch:	noarch
Summary:    script to make arm based systems images for Mageia
License:    GPL-v2
Group:      Development/Other

URL:        https://%{gitsystem}/%{gitowners}/%{gitreposi}
Source0:    https://%{gitsystem}/%{gitowners}/%{gitreposi}/snapshot/%{version}.tar.gz#/mageia4arm.tar.gz
# Source1:    https://%{gitsystem}/%{gitowners}/%{gitreposi}/snapshot/%{version}.tar.gz
# Patch0:    name.patch


Requires:   coreutils
Requires:   systemd-units
Requires:   urpmi
Requires:   dnf
Requires:   sed
Requires:   util-linux
Requires:   bash
Requires:   udisks2
Requires:   e2fsprogs
Requires:   rsync
Requires:   pv
Requires:   gzip


%description
%{common_description}



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


%build



%install
install -d -p %{buildroot}%{_bindir}
install -d -p %{buildroot}%{_datadir}/%{name}
install -d -p %{buildroot}%{_sysconfdir}/bash_completion.d
install -p -m 0555 build_all.cfg %{buildroot}%{_datadir}/%{name}/
install -p -m 0755 build_all.sh %{buildroot}%{_datadir}/%{name}/
install -p -m 0755 create_arm_image.sh %{buildroot}%{_datadir}/%{name}/
install -p -m 0755 functions.sh %{buildroot}%{_datadir}/%{name}/
install -d -p %{buildroot}%{_datadir}/%{name}/platforms
cp -r platforms/* %{buildroot}%{_datadir}/%{name}/platforms/
ln -sr %{buildroot}%{_datadir}/%{name}/create_arm_image.sh %{buildroot}%{_bindir}/mageia4arm
install -p -m 0444 mageia4arm.bashcompletion %{buildroot}%{_sysconfdir}/bash_completion.d



# %post
# patch -i ./%{SOURCE1}



%files
%license LICENSE
%doc README.md
%{_bindir}/mageia4arm
%{_datadir}/%{name}/*
%{_sysconfdir}/bash_completion.d/mageia4arm.bashcompletion