Thread: [Perlgssapi-developer] GSSAPI and cpan2rpm
Brought to you by:
achimgrolms
From: Dax K. <da...@gu...> - 2006-02-16 22:11:00
|
Is there some metadata missing? $ cpan2rpm GSSAPI-0.18.tar.gz CPAN+ not found - using old interface -- module: GSSAPI-0.18.tar.gz -- Metadata retrieval Tarball extraction: [/data/home/dkelson/redhat/SOURCES/GSSAPI-0.18.tar.gz] No version found, please use --version option. Stopped at /usr/bin/cpan2rpm line 577. -- Done -- For most all CPAN modules I create RPMs from, I do not have to supply --version. Dax Kelson Guru Labs |
From: Dax K. <da...@gu...> - 2006-02-16 22:13:13
|
On Thu, 2006-02-16 at 15:11 -0700, Dax Kelson wrote: > Is there some metadata missing? According to the man page for cpan2rpm: "The script determines the version number of the module by consulting the Makefile.PL=E2=80=99s VERSION or VERSION_FROM fields." Dax Kelson Guru Labs |
From: Achim G. <per...@gr...> - 2006-02-16 22:14:53
|
On Thursday 16 February 2006 23:11, Dax Kelson wrote: > Is there some metadata missing? Maybe... I've not thought on that. What Metadata in what format has to be added? (I am not using CPAN+). Thank you, Achim |
From: Achim G. <per...@gr...> - 2006-02-16 22:18:34
|
On Thursday 16 February 2006 23:13, Dax Kelson wrote: > On Thu, 2006-02-16 at 15:11 -0700, Dax Kelson wrote: > > Is there some metadata missing? > > According to the man page for cpan2rpm: > > "The script determines the version number of the module by consulting > the Makefile.PL=E2=80=99s VERSION or VERSION_FROM fields." The Makefile goes like this: >WriteMakefile( LIBS =3D> join (' ', @GSSLIBS), 'NAME' =3D> 'GSSAPI', 'VERSION_FROM' =3D> 'GSSAPI.pm', 'PREREQ_PM' =3D> { 'Test::More' =3D> 0 }, @LDDLFLAGS, 'DEFINE' =3D> join (' ', @EXTRADEFINES), 'INC' =3D> $incconf, 'macro' =3D> { OTHER_XS =3D> $otherxs }, 'depend' =3D> { 'GSSAPI.c' =3D> '$(OTHER_XS)' } ); Try what happens if you change that to >WriteMakefile( LIBS =3D> join (' ', @GSSLIBS), 'NAME' =3D> 'GSSAPI', 'VERSION' =3D> '0.18', 'PREREQ_PM' =3D> { 'Test::More' =3D> 0 }, @LDDLFLAGS, 'DEFINE' =3D> join (' ', @EXTRADEFINES), 'INC' =3D> $incconf, 'macro' =3D> { OTHER_XS =3D> $otherxs }, 'depend' =3D> { 'GSSAPI.c' =3D> '$(OTHER_XS)' } ); and let me know, i will change that in distribution if that breaks things. Achim |
From: Dax K. <da...@gu...> - 2006-02-16 22:31:14
|
On Thu, 2006-02-16 at 23:18 +0100, Achim Grolms wrote: > Try what happens if you change that to > > >WriteMakefile( > LIBS => join (' ', @GSSLIBS), > 'NAME' => 'GSSAPI', > 'VERSION' => '0.18', > 'PREREQ_PM' => { 'Test::More' => 0 }, > @LDDLFLAGS, > 'DEFINE' => join (' ', @EXTRADEFINES), > 'INC' => $incconf, > 'macro' => { OTHER_XS => $otherxs }, > 'depend' => { 'GSSAPI.c' => '$(OTHER_XS)' } > ); > > > and let me know, i will change that in distribution if that > breaks things. That didn't seem to work. I'm not sure why the original doesn't work either. You can get a copy of cpan2rpm from: http://perl.arix.com/cpan2rpm/ Dax Kelson Guru Labs |
From: Achim G. <per...@gr...> - 2006-02-16 22:39:05
|
On Thursday 16 February 2006 23:31, Dax Kelson wrote: > You can get a copy of cpan2rpm from: > > http://perl.arix.com/cpan2rpm/ from the manual: --version=float-value The script determines the version number of the module by consulting the Makefile.PL's VERSION or VERSION_FROM fields. If neither is specified, it parses the tarball name. Hmm. First - what happens if your run cpan2rpm with option --version? Does that find the version number? Achim |
From: Dax K. <da...@gu...> - 2006-02-16 22:44:48
|
On Thu, 2006-02-16 at 23:38 +0100, Achim Grolms wrote: > On Thursday 16 February 2006 23:31, Dax Kelson wrote: > > > You can get a copy of cpan2rpm from: > > > > http://perl.arix.com/cpan2rpm/ > > from the manual: > > --version=float-value > > The script determines the version number of the module by consulting the > Makefile.PL's VERSION or VERSION_FROM fields. If neither is specified, it > parses the tarball name. > > Hmm. > > First - what happens if your run > cpan2rpm with option --version? > > Does that find the version number? > > Achim It works if you do: cpan2rpm --version 0.18 GSSAPI-0.18.tar.gz It is just that the --version really shouldn't be needed. Dax Kelson Guru Labs |
From: Achim G. <per...@gr...> - 2006-02-16 22:50:01
|
On Thursday 16 February 2006 23:45, Dax Kelson wrote: > On Thu, 2006-02-16 at 23:38 +0100, Achim Grolms wrote: > It works if you do: > > cpan2rpm --version 0.18 GSSAPI-0.18.tar.gz > > It is just that the --version really shouldn't be needed. But that means that my module provides the version number where cpan2rpm is searching. I dont't *know* where to put additionally information. I don't know where the cpan2rpm is searching for it. I will have a look into cpan2rpm, but maybe it is faster if you tell me where your cpan2rpm is searching for information ;-) Achim |