On 12/04/2012 01:59 AM, Orion Poplawski wrote:
Looks like some packages make use of:

%doc --parents Copyright.txt README.html vtkLogo.jpg vtkBanner.gif
Wrapping/*/README*

To pass "--parents" to the cp command.  This appears to no longer work:

Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.SeYbFF
+ umask 022
+ cd /builddir/build/BUILD
+ cd VTK5.10.1
+
DOCDIR=/builddir/build/BUILDROOT/vtk-5.10.1-2.fc19.x86_64/usr/share/doc/vtk-5.10.1

+ export DOCDIR
+ /usr/bin/mkdir -p
/builddir/build/BUILDROOT/vtk-5.10.1-2.fc19.x86_64/usr/share/doc/vtk-5.10.1
+ cp -pr --parents
/builddir/build/BUILDROOT/vtk-5.10.1-2.fc19.x86_64/usr/share/doc/vtk-5.10.1
cp: missing destination file operand after
'/builddir/build/BUILDROOT/vtk-5.10.1-2.fc19.x86_64/usr/share/doc/vtk-5.10.1'

Try 'cp --help' for more information.

Now, this seems like very much a hack that only accidentally worked.

Ugh, the tricks people come up with...

That said, can this functionality be restored somehow?

There's no need for such %doc abuses. Construct a temporary directory with the structure of your liking in %install and use that for %doc, something like

%install
[...]
mkdir _wrappingdocs
cp -pr --parents Wrapping/*/README* _wrappingdocs/

%files
%doc _wrappingdocs/*

        - Panu -
--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel

Reply via email to