From Bugzilla Helper: User-Agent: Mozilla/5.0 Galeon/1.2.0 (X11; Linux i586; U;) Gecko/20020408 Description of problem: - cpanflute2 needs Archive::Tar, but rpm-build does not depend on perl-Archive-Tar - cpanflute2 needs Compress::Zlib, which is not availble in RedHat Linux 7.3 (valhalla) (but is of course installable with cpanflute) - cpanflute2 does not run with LANG set to a local like mine (no_NO). The script should set LANG locally to 'C', or behave. - cpanflute (_not_ cpanflute2) does not work with default options because it lacks a standard working directory in /tmp. A workaround is to run the following commands prior to running cpanflute for the first time: mkdir -p /tmp/cpan/temp ln -s /tmp/cpan /tmp/cpan/junk Version-Release number of selected component (if applicable): 4.0.4-7x.18 How reproducible: Always Steps to Reproduce: 1. As described above 2. 3. Additional info:
Yup, all bugs, and part of the rationale for removing cpanflute and cpanflute2 and rpm-perl from rpm. You might try using the Perl-RPM2. From all reports I've seen, Perl-RPM2 does a better job than cpanflute, and is actively being maintained.
Still on that cpanflute-thing. I looked at RedHat 8.0. Cpanflute is (obviously from your earlier comments) supplied, and you say perl-RPM2 should be able to replace it. I'm no real perl programmer, but looking at the source, I really have no idea on how to use the perl-RPM2 module for creating rpms from cpan tarballs. Is it really possible? If it is, one should really have a wrapper script. Could you provide some simple pseudo-code or links or anything? Regards, and wishing a merry Christmas, Ingvar Hagelund $ cat /etc/redhat-release Red Hat Linux release 8.0 (Psyche) $ rpm -ql perl-RPM2 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/RPM2.pm /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/RPM2/RPM2.bs /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/RPM2/RPM2.so /usr/share/man/man3/RPM2.3pm.gz $ grep sub /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/RPM2.pm sub rpmvercmp { sub add_macro { sub delete_macro { sub open_rpm_db { sub open_package { sub close_rpm_db { sub find_all_iter { sub find_all { sub find_by_name_iter { sub find_by_name { sub find_by_provides_iter { sub find_by_provides { sub find_by_requires_iter { sub find_by_requires { sub find_by_file_iter { sub find_by_file { sub iterator { sub DESTROY { sub _new_raw { sub tag { sub compare { sub op_bool { sub op_spaceship { sub is_source_package { sub as_nvre { my $sub = q { sub [[method]] { $sub =~ s/\[\[method\]\]/$method/g; $sub =~ s/\[\[tag\]\]/$tag/g; eval $sub; sub files { sub DESTROY { sub new_iterator { sub next { sub expand_iter { sub DESTROY {
do you have a pointer to "Perl-RPM2"? searching cpan I find the RPm2 module, but that is for manipulating various rpm items, not for turning a CPAN tarball into a SRPM.