This question is somewhat basic; I am attempting to compile and install an Apache so module via rpm. This as much is accomplished when the rpm is built but when the rpm itself is installed, nothing occurs because I have incorrectly ennumerated the %files section of the spec file.
My question is, how are the files supposed to be listed in the %files section so that they are copied to their proper location? It seems that all the files are processed with $RPM_BUILD_ROOT appended to their location?
Here is the relevant portion of my spec file.
Code:
%description
%prep
%setup -q -n mod_authz_svn_eecs
%{__mkdir_p} -m 755 $RPM_BUILD_ROOT
%install
apxs -i -c mod_authz_svn_eecs.c
cp /usr/lib/httpd/modules/mod_authz_svn_eecs.so $RPM_BUILD_ROOT/mod_authz_svn_eecs.so
%files
%{_libdir}/httpd/modules/mod_authz_svn_eecs.so
%clean
%post
%changelog
Here are the errors that result from rpmbuild
Code:
chmod 755 /usr/lib/httpd/modules/mod_authz_svn_eecs.so
+ cp /usr/lib/httpd/modules/mod_authz_svn_eecs.so /home/test/rpmbuild/BUILDROOT/mod_authz_svn_eecs-0-0.i386/mod_authz_svn_eecs.so
+ /usr/lib/rpm/brp-compress
+ /usr/lib/rpm/brp-strip
+ /usr/lib/rpm/brp-strip-static-archive
+ /usr/lib/rpm/brp-strip-comment-note
Processing files: mod_authz_svn_eecs-0-0.i686
error: File not found: /home/test/rpmbuild/BUILDROOT/mod_authz_svn_eecs-0-0.i386/usr/lib/mod_authz_svn_eecs.so
RPM build errors:
File not found: /home/test/rpmbuild/BUILDROOT/mod_authz_svn_eecs-0-0.i386/usr/lib/mod_authz_svn_eecs.so