openSUSE / cpanspec

Create openSUSE spec files form cpan tar files
Other
8 stars 10 forks source link

Release procedures #10

Open jayvdb opened 5 years ago

jayvdb commented 5 years ago

Currently the opensuse rpm is failing with

Can't locate PodViewSpec.pm in @INC (you may need to install the PodViewSpec module) (@INC contains: /usr/bin/lib /usr/bin /usr/lib/perl5/site_perl/5.28.1/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.28.1 /usr/lib/perl5/vendor_perl/5.28.1/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.28.1 /usr/lib/perl5/5.28.1/x86_64-linux-thread-multi /usr/lib/perl5/5.28.1 /usr/lib/perl5/site_perl) at /usr/bin/cpanspec line 211.

The tarball is OBS is missing PodViewSpec.pm in this repo.

And there are no GitHub release tags, or any other releasing mechanisms in effect, afaics.

As a temporary/hacky solution I did https://build.opensuse.org/request/show/689812 . Happy to revise it, or drop it if the devs have a better solution.

While I am here, the first thing I find after getting it fixed is

read_file '/home/jayvdb/.cpan/sources/modules/02packages.details.txt.gz' - open: No such file or directory at /usr/lib/perl5/vendor_perl/5.28.1/Parse/CPAN/Packages.pm line 56.
Aborting: service call failed:  /usr/lib/obs/service/cpanspec --outdir /home/jayvdb/projects/osc/home:jayvdb:branches:devel:languages:perl/perl-WWW-OpenSearch/tmptZ4tYx.cpanspec.service

That can be avoided quite easily by initialising cpan, or at least advising the user how to do it.

A README that explains usage would also be very helpful. The wiki is also quite sparse.