In the %install section I am installing files into the build root. I specify documentation which has to be installed into subdirectories of ${RPM_BUILD_ROOT}%{_docdir}/%{name}-%{version}. This documentation was previously incorrectly located in a configuration directory. However I see the %files processing appears to delete all the newly installed files: ... Processing files: <name>-<version>-<release> Executing(%doc): /bin/sh -e /home/sjmudd/rpm/tmp/rpm-tmp.67752 + umask 022 + cd /home/sjmudd/rpm/BUILD + cd <name>-<version> + DOCDIR=/home/sjmudd/rpm/tmp/<name>-<version>-buildroot/usr/share/doc/<name>-<version> + export DOCDIR + rm -rf /home/sjmudd/rpm/tmp/<name>-<version>-buildroot/usr/share/doc/<name>-<version> + /bin/mkdir -p /home/sjmudd/rpm/tmp/<name>-<version>-buildroot/usr/share/doc/<name>-<version> ... My %files section has the following format: %files %defattr(-, root, root) ... %doc COPYRIGHT %doc COMPATIBILITY %doc HISTORY %doc INSTALL %doc PORTING ... %doc %dir %{_docdir}/%{name}-{version}/html %doc %{_docdir}/%{name}-{version}/html/* %doc %dir %{_docdir}/%{name}-{version}/README_FILES %doc %{_docdir}/%{name}-{version}/README_FILES/* What am I doing wrong? As far as I can see looking at the rpm-4.2.1 source rpm this behaviour is "fixed" and seems contrary to what is mentioned in the RedHat RPM Guide p. 196 which mentions the possibility of providing full path names to documentation. How can I install the documentation files from the %install section providing the full path (with build root) to the documentation? Thanks for any pointers, Simon _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list