Hello,
Can somebody tell me whatis wrong in the spec file
Name: perl-Graphics-Primitive Version: 0.67 Release: 1%{?dist} Summary: Device and library agnostic graphic primitives License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/Graphics-Primitive/ Source0: http://www.cpan.org/modules/by-module/Graphics/Graphics-Primitive-%%7Bversio... BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: perl(Data::Visitor::Callback) >= 0.30 BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Forest) >= 0.06 BuildRequires: perl(Geometry::Primitive) >= 0.16 BuildRequires: perl(Graphics::Color) >= 0.20 BuildRequires: perl(JSON::Any) >= 1.22 BuildRequires: perl(Moose) >= 0.90 BuildRequires: perl(MooseX::Clone) >= 0.04 BuildRequires: perl(MooseX::Storage) >= 0.17 BuildRequires: perl(Test::More) Requires: perl(Data::Visitor::Callback) >= 0.30 Requires: perl(Forest) >= 0.06 Requires: perl(Geometry::Primitive) >= 0.16 Requires: perl(Graphics::Color) >= 0.20 Requires: perl(JSON::Any) >= 1.22 Requires: perl(Moose) >= 0.90 Requires: perl(MooseX::Clone) >= 0.04 Requires: perl(MooseX::Storage) >= 0.17 Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description Graphics::Primitive is library agnostic system for drawing things.
%prep %setup -q -n Graphics-Primitive-%{version}
%build %{__perl} Makefile.PL INSTALLDIRS=vendor 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 -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 Changes README %{perl_vendorlib}/* %{_mandir}/man3/*
%changelog * Sun Sep 17 2017 Patrick Dupre pdupre@gmx.com 0.67-1 - Specfile autogenerated by cpanspec 1.78.
I get: rpmbuild -bb perl-Graphics-Primitive.spec error: Failed build dependencies: perl(Forest) >= 0.06 is needed by perl-Graphics-Primitive-0.67-1.fc26.noarch perl(Geometry::Primitive) >= 0.16 is needed by perl-Graphics-Primitive-0.67-1.fc26.noarch perl(Graphics::Color) >= 0.20 is needed by perl-Graphics-Primitive-0.67-1.fc26.noarch
while rpm -q perl-Forest perl-Forest-0.10-1.fc26.noarch rpm -q perl-Geometry-Primitive perl-Geometry-Primitive-0.24-1.fc26.noarch rpm -q perl-Graphics-Color perl-Graphics-Color-0.31-1.fc26.noarch
=========================================================================== 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 Sun, 17 Sep 2017 21:48:26 +0200, Patrick Dupre wrote:
Hello,
Can somebody tell me whatis wrong in the spec file
I get: rpmbuild -bb perl-Graphics-Primitive.spec error: Failed build dependencies: perl(Forest) >= 0.06 is needed by perl-Graphics-Primitive-0.67-1.fc26.noarch perl(Geometry::Primitive) >= 0.16 is needed by perl-Graphics-Primitive-0.67-1.fc26.noarch perl(Graphics::Color) >= 0.20 is needed by perl-Graphics-Primitive-0.67-1.fc26.noarch
while rpm -q perl-Forest perl-Forest-0.10-1.fc26.noarch rpm -q perl-Geometry-Primitive perl-Geometry-Primitive-0.24-1.fc26.noarch rpm -q perl-Graphics-Color perl-Graphics-Color-0.31-1.fc26.noarch
Your query is insufficient. Query what the installed packages provide, so you can check that they provide what's needed to satisfy the BuildRequires in the spec file. You can use the --whatprovides option to test against the local RPM DB. Or you can list a package's full Provides like
rpm -q --provides perl-Forest
and if "perl(Forest)" is not in the output, the perl-Forest package does not provide what's needed.
Sent: Sunday, September 17, 2017 at 10:14 PM From: "Michael Schwendt" mschwendt@gmail.com To: users@lists.fedoraproject.org Subject: Re: rpmbuild
On Sun, 17 Sep 2017 21:48:26 +0200, Patrick Dupre wrote:
Hello,
Can somebody tell me whatis wrong in the spec file
I get: rpmbuild -bb perl-Graphics-Primitive.spec error: Failed build dependencies: perl(Forest) >= 0.06 is needed by perl-Graphics-Primitive-0.67-1.fc26.noarch perl(Geometry::Primitive) >= 0.16 is needed by perl-Graphics-Primitive-0.67-1.fc26.noarch perl(Graphics::Color) >= 0.20 is needed by perl-Graphics-Primitive-0.67-1.fc26.noarch
while rpm -q perl-Forest perl-Forest-0.10-1.fc26.noarch rpm -q perl-Geometry-Primitive perl-Geometry-Primitive-0.24-1.fc26.noarch rpm -q perl-Graphics-Color perl-Graphics-Color-0.31-1.fc26.noarch
Your query is insufficient. Query what the installed packages provide, so you can check that they provide what's needed to satisfy the BuildRequires in the spec file. You can use the --whatprovides option to test against the local RPM DB. Or you can list a package's full Provides like
rpm -q --provides perl-Forest
and if "perl(Forest)" is not in the output, the perl-Forest package does not provide what's needed.
It seems to me that every thing is provided:
rpm -q --provides perl-Forest perl-Forest = 0.10-1.fc26
rpm -q --provides perl-Geometry-Primitive perl-Geometry-Primitive = 0.24-1.fc26
rpm -q --provides perl-Graphics-Color perl-Graphics-Color = 0.31-1.fc26
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
On Sun, 17 Sep 2017 22:42:47 +0200, Patrick Dupre wrote:
Can somebody tell me whatis wrong in the spec file
I get: rpmbuild -bb perl-Graphics-Primitive.spec error: Failed build dependencies: perl(Forest) >= 0.06 is needed by perl-Graphics-Primitive-0.67-1.fc26.noarch perl(Geometry::Primitive) >= 0.16 is needed by perl-Graphics-Primitive-0.67-1.fc26.noarch perl(Graphics::Color) >= 0.20 is needed by perl-Graphics-Primitive-0.67-1.fc26.noarch
while rpm -q perl-Forest perl-Forest-0.10-1.fc26.noarch rpm -q perl-Geometry-Primitive perl-Geometry-Primitive-0.24-1.fc26.noarch rpm -q perl-Graphics-Color perl-Graphics-Color-0.31-1.fc26.noarch
Your query is insufficient. Query what the installed packages provide, so you can check that they provide what's needed to satisfy the BuildRequires in the spec file. You can use the --whatprovides option to test against the local RPM DB. Or you can list a package's full Provides like
rpm -q --provides perl-Forest
and if "perl(Forest)" is not in the output, the perl-Forest package does not provide what's needed.
It seems to me that every thing is provided:
rpm -q --provides perl-Forest perl-Forest = 0.10-1.fc26
rpm -q --provides perl-Geometry-Primitive perl-Geometry-Primitive = 0.24-1.fc26
rpm -q --provides perl-Graphics-Color perl-Graphics-Color = 0.31-1.fc26
Read the error message more carefully. Pay attention to the spelling of what's needed. Your query does not show what's needed. Where do you see 'perl(Forest)' in the output, for example?
Sent: Sunday, September 17, 2017 at 10:49 PM From: "Michael Schwendt" mschwendt@gmail.com To: users@lists.fedoraproject.org Subject: Re: rpmbuild
On Sun, 17 Sep 2017 22:42:47 +0200, Patrick Dupre wrote:
Can somebody tell me whatis wrong in the spec file
I get: rpmbuild -bb perl-Graphics-Primitive.spec error: Failed build dependencies: perl(Forest) >= 0.06 is needed by perl-Graphics-Primitive-0.67-1.fc26.noarch perl(Geometry::Primitive) >= 0.16 is needed by perl-Graphics-Primitive-0.67-1.fc26.noarch perl(Graphics::Color) >= 0.20 is needed by perl-Graphics-Primitive-0.67-1.fc26.noarch
while rpm -q perl-Forest perl-Forest-0.10-1.fc26.noarch rpm -q perl-Geometry-Primitive perl-Geometry-Primitive-0.24-1.fc26.noarch rpm -q perl-Graphics-Color perl-Graphics-Color-0.31-1.fc26.noarch
Your query is insufficient. Query what the installed packages provide, so you can check that they provide what's needed to satisfy the BuildRequires in the spec file. You can use the --whatprovides option to test against the local RPM DB. Or you can list a package's full Provides like
rpm -q --provides perl-Forest
and if "perl(Forest)" is not in the output, the perl-Forest package does not provide what's needed.
It seems to me that every thing is provided:
rpm -q --provides perl-Forest perl-Forest = 0.10-1.fc26
rpm -q --provides perl-Geometry-Primitive perl-Geometry-Primitive = 0.24-1.fc26
rpm -q --provides perl-Graphics-Color perl-Graphics-Color = 0.31-1.fc26
Read the error message more carefully. Pay attention to the spelling of what's needed. Your query does not show what's needed. Where do you see 'perl(Forest)' in the output, for example?
If you go on rpmfind.net
perl-Forest is supposed to provides perl-Forest perl(Forest)
Since fedora does not offer perl-Forest, I have to build it from the tar file Forest-0.10 There is probably an issue with the spec? because it does not say that it will provide perl(Forest)
Actually it would be good if somedoby decided to generate the perl for the fedora distribution. I generate the file by myself but there are plenty of issues with the dependences. It is not professional.
users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org
On Sun, 17 Sep 2017 23:31:50 +0200, Patrick Dupre wrote:
If you go on rpmfind.net
perl-Forest is supposed to provides perl-Forest perl(Forest)
Since fedora does not offer perl-Forest, I have to build it from the tar file Forest-0.10 There is probably an issue with the spec? because it does not say that it will provide perl(Forest)
Those are _automatic_ Provides adding during rpmbuild. Whether or not those automatic Provides are added depends on the build environment contents. And sometimes it can happen that the automatic dependencies are lost due to bugs or missing BuildRequires. In this case it could be due to missing "BuildRequires: perl-generators" before building those Fedora Perl packages.
Actually it would be good if somedoby decided to generate the perl for the fedora distribution. I generate the file by myself but there are plenty of issues with the dependences. It is not professional.
Install the "perl-generators" package, then try rebuilding the Fedora src.rpm packages. If that fixes them, somebody may need to file bug reports about those packages or sign up as co-maintainer and contribute updates to fix the packages.
On Sun, Sep 17, 2017 at 09:48:26PM +0200, Patrick Dupre wrote:
Hello,
Can somebody tell me whatis wrong in the spec file
In addition to the other reply, some stylistic points ...
Group: Development/Libraries
This is not needed.
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
This is not needed.
BuildRequires: perl(Data::Visitor::Callback) >= 0.30 BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Forest) >= 0.06 BuildRequires: perl(Geometry::Primitive) >= 0.16 BuildRequires: perl(Graphics::Color) >= 0.20 BuildRequires: perl(JSON::Any) >= 1.22 BuildRequires: perl(Moose) >= 0.90 BuildRequires: perl(MooseX::Clone) >= 0.04 BuildRequires: perl(MooseX::Storage) >= 0.17 BuildRequires: perl(Test::More)
You'll likely want to add:
BuildRequires: perl-interpreter BuildRequires: perl-devel BuildRequires: perl-generators
However this has changed recently, so check the Perl packaging guidelines against your version of Fedora.
Requires: perl(Data::Visitor::Callback) >= 0.30 Requires: perl(Forest) >= 0.06 Requires: perl(Geometry::Primitive) >= 0.16 Requires: perl(Graphics::Color) >= 0.20 Requires: perl(JSON::Any) >= 1.22 Requires: perl(Moose) >= 0.90 Requires: perl(MooseX::Clone) >= 0.04 Requires: perl(MooseX::Storage) >= 0.17
These should be generated automatically, although if you really need to specify minimum version numbers then I suppose you do need them.
%{__perl} Makefile.PL INSTALLDIRS=vendor
I usually ignore the ‘__perl’ macro and similar ones. Plain old ‘perl’ should work and is less obtuse. However it's a matter of style.
%install rm -rf $RPM_BUILD_ROOT
You don't need the rm command here.
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ;
‘-delete’ is simpler and better than ‘-exec rm -f {} ;’
%clean rm -rf $RPM_BUILD_ROOT
You can completely delete the ‘%clean’ section. It is not needed.
%files %defattr(-,root,root,-)
You can delete all ‘%defattr’ lines. They are not needed in almost all circumstances.
Rich.