1 |
trevorb |
1.1 |
# $Id: smeserver-pxe.spec,v 1.0 2022/04/28 18:45:26 brianr Exp $ |
2 |
|
|
# Authority: nocvs |
3 |
|
|
# Name: Trevor Batley |
4 |
|
|
|
5 |
|
|
Summary: Allow pxeboot of client machines over network |
6 |
|
|
%define name smeserver-pxe |
7 |
|
|
Name: %{name} |
8 |
|
|
%define version 0.1 |
9 |
trevorb |
1.2 |
%define release 2 |
10 |
trevorb |
1.1 |
Version: %{version} |
11 |
|
|
Release: %{release}%{?dist} |
12 |
|
|
License: GPL |
13 |
|
|
Group: Network |
14 |
|
|
Source: %{name}-%{version}.tar.xz |
15 |
|
|
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
16 |
|
|
BuildArch: noarch |
17 |
|
|
Requires: e-smith-base |
18 |
|
|
BuildRequires: e-smith-devtools >= 1.13.1-03 |
19 |
|
|
AutoReq: yes |
20 |
trevorb |
1.2 |
Patch1: smeserver-pxe-0.1-update_default_arch.patch |
21 |
trevorb |
1.1 |
|
22 |
|
|
%description |
23 |
|
|
Global settings for dhcp to allow clients to network boot. |
24 |
|
|
Assumes sme server is acting as dhcp server. |
25 |
|
|
|
26 |
|
|
%changelog |
27 |
trevorb |
1.2 |
* Mon May 09 2022 Trevor Batley <trevor@batley.id.au> 0.1-2.sme |
28 |
|
|
- Set default architecture executables to Centos 7 defaults [SME 11969] |
29 |
|
|
|
30 |
|
|
* Thu Apr 28 2022 Trevor Batley <trevor@batley.id.au> 0.1-1.sme |
31 |
|
|
- Initial release [SME 10821] |
32 |
trevorb |
1.1 |
- Split of PXE Global parameters out of smeserver-thinclient |
33 |
|
|
- Allow for different architectures (including UEFI booting) |
34 |
|
|
|
35 |
|
|
%prep |
36 |
trevorb |
1.2 |
|
37 |
trevorb |
1.1 |
%setup -q -n %{name}-%{version} |
38 |
trevorb |
1.2 |
%patch1 -p1 |
39 |
trevorb |
1.1 |
|
40 |
|
|
%build |
41 |
|
|
|
42 |
|
|
%install |
43 |
|
|
/bin/rm -rf $RPM_BUILD_ROOT |
44 |
|
|
(cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
45 |
|
|
/bin/rm -f %{name}-%{version}-filelist |
46 |
|
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
47 |
|
|
|
48 |
|
|
%clean |
49 |
|
|
rm -rf $RPM_BUILD_ROOT |
50 |
|
|
|
51 |
|
|
%files -f %{name}-%{version}-filelist |
52 |
|
|
|
53 |
|
|
%defattr(-,root,root) |
54 |
|
|
|
55 |
|
|
%pre |
56 |
|
|
|
57 |
|
|
%preun |
58 |
|
|
|
59 |
|
|
%post |
60 |
|
|
|
61 |
|
|
%postun |