Hello,
I tried to build my own package perl-PAR-Packer from Url: http://search.cpan.org/dist/PAR-Packer/ (see rpmfind.net) I run cpanspec and then rpmbuild -bb and I got the following error message: RPM build errors: File not found: /home/pdupre/rpmbuild/BUILDROOT/perl-PAR-Packer-1.035-1.fc24.x86_64/usr/lib64/perl5/vendor_perl/auto/* File not found: /home/pdupre/rpmbuild/BUILDROOT/perl-PAR-Packer-1.035-1.fc24.x86_64/usr/lib64/perl5/vendor_perl/PAR*
Here is the spec file: Name: perl-PAR-Packer Version: 1.035 Release: 1%{?dist} Summary: PAR Packager License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/PAR-Packer/ Source0: http://www.cpan.org/modules/by-module/PAR/PAR-Packer-%%7Bversion%7D.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: perl >= 1:5.8.1 BuildRequires: perl(Archive::Zip) >= 1.02 BuildRequires: perl(Compress::Zlib) >= 1.30 BuildRequires: perl(Digest) BuildRequires: perl(Digest::SHA) BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(File::Temp) >= 0.05 BuildRequires: perl(Getopt::ArgvFile) >= 1.07 BuildRequires: perl(IO::Compress::Gzip) BuildRequires: perl(Module::ScanDeps) >= 1.21 BuildRequires: perl(Module::Signature) BuildRequires: perl(PAR) >= 1.010 BuildRequires: perl(PAR::Dist) >= 0.22 BuildRequires: perl(Text::ParseWords) BuildRequires: perl(Tk) BuildRequires: perl(Tk::ColoredButton) BuildRequires: perl(Tk::EntryCheck) BuildRequires: perl(Tk::Getopt) Requires: perl(Archive::Zip) >= 1.02 Requires: perl(Compress::Zlib) >= 1.30 Requires: perl(Digest) Requires: perl(Digest::SHA) Requires: perl(File::Temp) >= 0.05 Requires: perl(Getopt::ArgvFile) >= 1.07 Requires: perl(IO::Compress::Gzip) Requires: perl(Module::ScanDeps) >= 1.21 Requires: perl(Module::Signature) Requires: perl(PAR) >= 1.010 Requires: perl(PAR::Dist) >= 0.22 Requires: perl(Text::ParseWords) Requires: perl(Tk) Requires: perl(Tk::ColoredButton) Requires: perl(Tk::EntryCheck) Requires: perl(Tk::Getopt) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description This module implements the App::Packer::Backend interface, for generating stand-alone executables, perl scripts and PAR files.
%prep %setup -q -n PAR-Packer-%{version}
%build %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" make %{?_smp_mflags}
%install rm -rf $RPM_BUILD_ROOT
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ; find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} ; find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ;
%{_fixperms} $RPM_BUILD_ROOT/*
%check make test
%clean rm -rf $RPM_BUILD_ROOT
%files %defattr(-,root,root,-) %doc AUTHORS Changes README %{perl_vendorarch}/auto/* %{perl_vendorarch}/PAR* %{_mandir}/man3/*
%changelog * Wed Nov 02 2016 Patrick Dupre pdupre@gmx.com 1.035-1 - Specfile autogenerated by cpanspec 1.78.
Can somebody help me ?
I tried to modify or remove the lines %{perl_vendorarch}/auto/* %{perl_vendorarch}/PAR*
but it did not help.
Thank.
=========================================================================== Patrick DUPRÉ | | email: pdupre@gmx.com Laboratoire de Physico-Chimie de l'Atmosphère | | Université du Littoral-Côte d'Opale | | Tel. (33)-(0)3 28 23 76 12 | | Fax: 03 28 65 82 44 189A, avenue Maurice Schumann | | 59140 Dunkerque, France ===========================================================================
On Wed, 2 Nov 2016 12:58:53 +0100, Patrick Dupre wrote:
rpmbuild -bb and I got the following error message: RPM build errors: File not found: /home/pdupre/rpmbuild/BUILDROOT/perl-PAR-Packer-1.035-1.fc24.x86_64/usr/lib64/perl5/vendor_perl/auto/* File not found: /home/pdupre/rpmbuild/BUILDROOT/perl-PAR-Packer-1.035-1.fc24.x86_64/usr/lib64/perl5/vendor_perl/PAR*
That means that the files found in the buildroot tree don't match what is listed in the %files section within the spec file:
%files %defattr(-,root,root,-) %doc AUTHORS Changes README %{perl_vendorarch}/auto/* %{perl_vendorarch}/PAR* %{_mandir}/man3/*
You need to read the build output carefully, watch out for errors, not limited to verifying that the %install section works and fills the buildroot with files. What do you find in the buildroot? Files with expected paths? No files or missing files? Incorrect paths?
Thank,
Maybe an issue with vendorarch, vs. vendorlib ?
However, I fixed the issue by installing
perl-PAR-Packer-1.035-1.fc25.src.rpm
The spec file was correct.
=========================================================================== Patrick DUPRÉ | | email: pdupre@gmx.com Laboratoire de Physico-Chimie de l'Atmosphère | | Université du Littoral-Côte d'Opale | | Tel. (33)-(0)3 28 23 76 12 | | Fax: 03 28 65 82 44 189A, avenue Maurice Schumann | | 59140 Dunkerque, France ===========================================================================
Sent: Wednesday, November 02, 2016 at 1:48 PM From: "Michael Schwendt" mschwendt@gmail.com To: users@lists.fedoraproject.org Subject: Re: rpmbuild
On Wed, 2 Nov 2016 12:58:53 +0100, Patrick Dupre wrote:
rpmbuild -bb and I got the following error message: RPM build errors: File not found: /home/pdupre/rpmbuild/BUILDROOT/perl-PAR-Packer-1.035-1.fc24.x86_64/usr/lib64/perl5/vendor_perl/auto/* File not found: /home/pdupre/rpmbuild/BUILDROOT/perl-PAR-Packer-1.035-1.fc24.x86_64/usr/lib64/perl5/vendor_perl/PAR*
That means that the files found in the buildroot tree don't match what is listed in the %files section within the spec file:
%files %defattr(-,root,root,-) %doc AUTHORS Changes README %{perl_vendorarch}/auto/* %{perl_vendorarch}/PAR* %{_mandir}/man3/*
You need to read the build output carefully, watch out for errors, not limited to verifying that the %install section works and fills the buildroot with files. What do you find in the buildroot? Files with expected paths? No files or missing files? Incorrect paths? _______________________________________________ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org