perl-B-C

Matthew Miller mattdm at fedoraproject.org
Tue Sep 22 17:25:27 UTC 2015


On Tue, Sep 22, 2015 at 07:09:54PM +0200, Patrick Dupre wrote:
> I tried to compile (rpmbuild) the package perl-B-C (from cpan)
> because I could find an rpm.
> and I get the following error messages (rpmbuild -bb perl-B-C.spec)
> 
> Processing files: perl-B-C-debuginfo-1.52-1.fc22.x86_64
> Checking for unpackaged file(s): /usr/lib/rpm/check-files /home/pdupre/rpmbuild/BUILDROOT/perl-B-C-1.52-1.fc22.x86_64
> error: Installed (but unpackaged) file(s) found:
>    /usr/bin/assemble
>    /usr/bin/cc_harness
>    /usr/bin/disassemble
>    /usr/bin/perlcc
>    /usr/share/man/man1/assemble.1.gz
>    /usr/share/man/man1/disassemble.1.gz
>    /usr/share/man/man1/perlcc.1.gz

Every file the package installs must be listed in the %files section,
or you'll get this.

Adding these lines under %files should do it. (See the Packging
Guidelines for detail.)


%{_bindir}/assemble
%{_bindir}/cc_harness
%{_bindir}/disassemble
%{_bindir}/perlcc
%{_mandir}/man1/assemble.1*
%{_mandir}/man1/disassemble.1*
%{_mandir}/man1/perlcc.1*



Note that you could also just use wildcards entirely, but listing
individually protects you from a problem where something expected
doesn't get generated after all.




-- 
Matthew Miller
<mattdm at fedoraproject.org>
Fedora Project Leader


More information about the users mailing list