Hi
I have a rpm.spec with 2 Sources, one for the source code named Source0
and the second for the documentation named Source1 -- see below snippet
of the spec --. The execution of the %doc directive jumps into the
Source0 directory -- rendered in bold in the log below -- while it
should jumps into the Source1 directory _poco-1.7.0-all-doc_ in as
specified by the second %setup
So how could I fix this directory change?
Source0:
file://localhost/home/fandre/poco/releases/%{name}-%{version}-all.tar.gz
Source1:
file://localhost/home/fandre/poco/releases/%{name}-%{version}-all-doc.tar.gz
...
%prep
#%setup -qn %{name}-%{gittag0}
%setup -T -b 0 -qn %{name}-%{version}-all
%setup -T -b 1 -qn %{name}-%{version}-all-doc
...
%files doc
%defattr(-, root, root, -)
%doc %{name}-%{version}-all-doc/*
Traitement des fichiers : poco-doc-1.7.0-1.fc22.10.x86_64
Exécution_de(%doc) : /bin/sh -e /var/tmp/rpm-tmp.yRJjf1
+ umask 022
+ cd /home/fandre/distro/Linux/Fedora/gcc-5.1/rpmbuild/BUILD
+ *cd poco-1.7.0-all*
+
DOCDIR=/home/fandre/distro/Linux/Fedora/gcc-5.1/rpmbuild/BUILDROOT/poco-1.7.0-1.fc22.10.x86_64/usr/share/doc/poco-doc
+ export DOCDIR
+ /usr/bin/mkdir -p
/home/fandre/distro/Linux/Fedora/gcc-5.1/rpmbuild/BUILDROOT/poco-1.7.0-1.fc22.10.x86_64/usr/share/doc/poco-doc
+ cp -pr 'poco-1.7.0-all-doc/*'
/home/fandre/distro/Linux/Fedora/gcc-5.1/rpmbuild/BUILDROOT/poco-1.7.0-1.fc22.10.x86_64/usr/share/doc/poco-doc
cp: cannot stat 'poco-1.7.0-all-doc/*': No such file or directory
Show replies by thread