2013-03-19 03:16:30 +00:00
|
|
|
%if 0%{?qubes_builder}
|
|
|
|
%define _builddir %(pwd)/lorax-templates-qubes
|
|
|
|
%endif
|
|
|
|
|
2013-01-24 10:50:02 +00:00
|
|
|
Name: lorax-templates-qubes
|
2014-04-08 20:13:03 +00:00
|
|
|
Version: 2.1
|
2013-01-24 10:50:02 +00:00
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: Lorax templates for Qubes installation ISO
|
|
|
|
|
|
|
|
Group: Applications/System
|
|
|
|
License: GPLv2+
|
|
|
|
URL: http://www.qubes-os.org/
|
|
|
|
Source0: %{name}-%{version}.tar.bz2
|
|
|
|
|
|
|
|
#BuildRequires:
|
|
|
|
Requires: lorax
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
|
|
|
Lorax templates for Qubes installation ISO.
|
|
|
|
|
|
|
|
%prep
|
2013-03-19 03:16:30 +00:00
|
|
|
%if ! 0%{?qubes_builder}
|
2013-01-24 10:50:02 +00:00
|
|
|
%setup -q
|
2013-03-19 03:16:30 +00:00
|
|
|
%endif
|
2013-01-24 10:50:02 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
install -d $RPM_BUILD_ROOT/usr/share/lorax-qubes
|
|
|
|
cp -r templates/* $RPM_BUILD_ROOT/usr/share/lorax-qubes/
|
|
|
|
|
|
|
|
%post
|
|
|
|
# pungi does not allow to specify alternative config, so must override the default one
|
|
|
|
if [ -r /etc/lorax/lorax.conf -a ! -r /etc/lorax/lorax-pre-qubes.conf ]; then
|
|
|
|
mv /etc/lorax/lorax.conf /etc/lorax/lorax-pre-qubes.conf
|
|
|
|
fi
|
|
|
|
|
|
|
|
cat > /etc/lorax/lorax.conf << EOF
|
|
|
|
# Lorax configuration file
|
|
|
|
[lorax]
|
|
|
|
sharedir: /usr/share/lorax-qubes
|
|
|
|
EOF
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
/usr/share/lorax-qubes
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|