diff options
Diffstat (limited to 'mageia4arm.spec')
-rw-r--r-- | mageia4arm.spec | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/mageia4arm.spec b/mageia4arm.spec new file mode 100644 index 0000000..66cf93b --- /dev/null +++ b/mageia4arm.spec @@ -0,0 +1,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 + |