Description of problem: AUTHORS does not exist in the tarball, that causes building RPM package fails. Version-Release number of selected component (if applicable): How reproducible: 100% Actual results: failure happens when handle %files section, logs here ... (ignore previous lines generated by rpmbuild) + /usr/bin/mkdir -p /builddir/build/BUILDROOT/rpmgrill-0.28-1.fc21.x86_64/usr/share/doc/rpmgrill + cp -pr README.AAA_FIRST /builddir/build/BUILDROOT/rpmgrill-0.28-1.fc21.x86_64/usr/share/doc/rpmgrill + cp -pr LICENSE /builddir/build/BUILDROOT/rpmgrill-0.28-1.fc21.x86_64/usr/share/doc/rpmgrill + cp -pr AUTHORS /builddir/build/BUILDROOT/rpmgrill-0.28-1.fc21.x86_64/usr/share/doc/rpmgrill cp: cannot stat 'AUTHORS': No such file or directory error: Bad exit status from /var/tmp/rpm-tmp.2UnLiE (%doc) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.2UnLiE (%doc) ERROR: Exception(/project/rpmgrill-0.28-1.fc19.src.rpm) Config(fedora-21-x86_64) 0 minutes 28 seconds INFO: Results and/or logs in: /var/lib/mock/fedora-21-x86_64/result ERROR: Command failed. See logs for output. Expected results: AUTHORS is put into the tarball Additional info:
how did you get your src rpm file, here is my testing, works, [larry@dhcp-140-104 rpmgrill]$ make srpm perl Build.PL Created MYMETA.yml and MYMETA.json Creating new 'Build' script for 'rpmgrill' version '0.0' ./Build distdir Created META.yml and META.json Creating rpmgrill-0.0 test -d rpmgrill-0.0 || exit 1 find rpmgrill-0.0 -type f | xargs perl -pi -e "s/VERSION\s+=\s+'.*?';/VERSION = '0.28';/" rm -f rpmgrill-0.0/doc/tooltips.txt perl -Ilib bin/make-tooltips >| rpmgrill-0.0/doc/tooltips.txt mv rpmgrill-0.0 rpmgrill-0.28 tar cjf rpmgrill-0.28.tar.bz2 rpmgrill-0.28 rm -rf rpmgrill-0.28 rpmbuild -bs --nodeps --define "_sourcedir ." --define "_srcrpmdir ." --define "dist .fc19" rpmgrill.spec Wrote: ./rpmgrill-0.28-1.fc19.src.rpm tips [larry@dhcp-140-104 rpmgrill]$ pwd /home/larry/pnt/dev/rpmgrill [larry@dhcp-140-104 rpmgrill]$ uname -a Linux dhcp-140-104.nay.redhat.com 4.1.2-200.fc22.x86_64 #1 SMP Wed Jul 15 20:12:12 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux [larry@dhcp-140-104 rpmgrill]$ git remote show origin * remote origin Fetch URL: https://github.com/larry-shi/rpmgrill.git Push URL: https://github.com/larry-shi/rpmgrill.git anything wrong with me?
(In reply to yashi from comment #1) > how did you get your src rpm file, here is my testing, works, > This bug happens when build a binary RPM package.
(In reply to cqi from comment #2) > (In reply to yashi from comment #1) > > how did you get your src rpm file, here is my testing, works, > > > > This bug happens when build a binary RPM package. thanks
deep into https://kojipkgs.fedoraproject.org//packages/rpmgrill/0.28/1.fc22/noarch/rpmgrill-0.28-1.fc22.noarch.rpm find the reason is because AUTHORS file (./usr/share/doc/rpmgrill/AUTHORS) is not committed into our source tree.
(In reply to yashi from comment #4) > deep into > https://kojipkgs.fedoraproject.org//packages/rpmgrill/0.28/1.fc22/noarch/ > rpmgrill-0.28-1.fc22.noarch.rpm > > find the reason is because AUTHORS file (./usr/share/doc/rpmgrill/AUTHORS) > is not committed into our source tree. No. %doc AUTHORS this line in %files results in the existence of ./usr/share/doc/rpmgrill/AUTHORS Refer to http://fedoraproject.org/wiki/How_to_create_an_RPM_package#.25files_prefixes
This has been released with rpmgrill-0.30.