[prev in list] [next in list] [prev in thread] [next in thread] 

List:       rpmorg-list
Subject:    %files deletes files installed into $DOCDIR in %install section???
From:       Simon J Mudd <sjmudd () pobox ! com>
Date:       2004-04-17 19:41:25
Message-ID: 20040417203453.R95969 () unicorn ! wl0 ! org
[Download RAW message or body]

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic