smeserver-pxe/smeserver-pxe.spec

77 lines
2.1 KiB
RPMSpec

# $Id: smeserver-pxe.spec,v 1.0 2022/04/28 18:45:26 brianr Exp $
# Authority: nocvs
# Name: Trevor Batley
Summary: Allow pxeboot of client machines over network
%define name smeserver-pxe
Name: %{name}
%define version 0.1
%define release 6
Version: %{version}
Release: %{release}%{?dist}
License: GPL
Group: Network
Source: %{name}-%{version}.tar.xz
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
BuildArch: noarch
Requires: smeserver-base
BuildRequires: smeserver-devtools >= 1.13.1-03
AutoReq: yes
%description
Global settings for dhcp to allow clients to network boot.
Assumes sme server is acting as dhcp server.
%changelog
* Sun Sep 08 2024 fix-e-smith-pkg.sh by Trevor Batley <trevor@batley.id.au> 0.1-6.sme
- Fix e-smith references in smeserver-pxe [SME: 12732]
* Sat Sep 07 2024 cvs2git.sh aka Brian Read <brianr@koozali.org> 0.1-5.sme
- Roll up patches and move to git repo [SME: 12338]
* Sat Sep 07 2024 BogusDateBot
- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday,
by assuming the date is correct and changing the weekday.
* Sat Jul 2 2022 Trevor Batley ,trevor@batley.id.au> 0.1-4.sme
- add event smeserver-pxe-update to trigger dhcpd restart via creatlinks [12087]
* Sat May 28 2022 Trevor Batley <trevor@batley.id.au> 0.1-3.sme
- Remove incorrect = sign from nextserver parameter and enclsing "'s
* Mon May 09 2022 Trevor Batley <trevor@batley.id.au> 0.1-2.sme
- Set default architecture executables to Centos 7 defaults [SME 11969]
* Thu Apr 28 2022 Trevor Batley <trevor@batley.id.au> 0.1-1.sme
- Initial release [SME 10821]
- Split of PXE Global parameters out of smeserver-thinclient
- Allow for different architectures (including UEFI booting)
%prep
%setup -q -n %{name}-%{version}
%build
perl createlinks
%install
/bin/rm -rf $RPM_BUILD_ROOT
(cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT)
/bin/rm -f %{name}-%{version}-filelist
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist
%clean
rm -rf $RPM_BUILD_ROOT
%files -f %{name}-%{version}-filelist
%defattr(-,root,root)
%pre
%preun
%post
%postun