On 16 Feb 2015, at 3:20 AM, 河本和彦 <[email protected] <mailto:[email protected]>> wrote:
> I wonder if this error has been already known or reported, in the following > conditions, rpmbuild does not work well. > > CentOS Linux release 7.0.1406 (Core) > kernel 3.10.0-123.20.1.el7.x86_64 > > After the following operation, > $rpmbuild -tb --clean apr-1.5.1.tar.bz2 > > 'cp: missing destination file operand after....' > message appears and rpmbuilding stops. > > At this point, in apr.spec file, I correct the line showing > '%doc --parents html' to '%doc html'. And also copy the source > to /SOURCES. After this, > > $rpmbuild -bb --clean SPECS/apr.spec > > By this operations, I received the correct apr-1.5.1-1.x86_64.rpm. > > reference: > http://www.kakiro-web.com/linux/apache-install.html > <http://www.kakiro-web.com/linux/apache-install.html> > (in Japanese, sorry) > > PS: > I encountered the same error in rpmbuilding apr-util-1.5.4.tar.bz2 > in the same conditions. Just tripped over the same error, and have updated the spec file to remove the —parents flag. APR builds clean on both CentOS6 and CentOS7. Regards, Graham —
