Other than strange things like I had to manually define %{buildroot}, I've managed to get the package to build. However, when it's "Processing file(s)" I get the following error
My %install and %files sectionsChecking for unpackaged file(s): /usr/lib/rpm/check-files /root/eth1_network_changes/pkg/rpmbuild/BUILDROOT/eth1_network_changes-0.0.1-1.x86_64
error: Installed (but unpackaged) file(s) found:
/sbin/ifup-local
RPM build errors:
Installed (but unpackaged) file(s) found:
/sbin/ifup-local
Like I said, I had to define %{buildroot}, that's why it's echoed. I defined it according to this https://docs.fedoraproject.org/en-US/pa ... ld_process definition (which is what it is on my CentOS 6 and 7 boxes). I have tried setting _unpackaged_files_terminate_build to 0, but this did nothing for me either. What is broken in this (or what am I missing in my spec file)? Is there some sort of different magic at work in EL5? In case it matters, rpmbuild is version 4.4.2.3.%install
echo %{buildroot}
mkdir -p %{buildroot}/sbin
install --mode=u+rwx,go+rx %{_builddir}/%{name}-%{version}/src/ifup-local %{buildroot}/sbin
%files
%attr(-,root,root) /sbin/ifup-local
Oh, you'll notice that "root" appears in the paths above. This error occurs whether root or not. The package will not be built by root when distributed. This was my testing.