silug / cpanspec Goto Github PK
View Code? Open in Web Editor NEWGenerate a spec file for a CPAN module
Home Page: http://cpanspec.sourceforge.net
License: Other
Generate a spec file for a CPAN module
Home Page: http://cpanspec.sourceforge.net
License: Other
just need a definition in the %build section, harmless if perl doesn't remove '.'
(see: http://blogs.perl.org/users/todd_rinaldo/2016/11/what-happened-to-dot-in-inc.html)
Pretty sure that other 'build perl module' packages have this problem as well, but
when they fail I prefer to fall back to simpler tools like cpanspec.
diff -up ./cpanspec-1.78/cpanspec.orig ./cpanspec-1.78/cpanspec
--- ./cpanspec-1.78/cpanspec.orig 2020-12-26 10:40:41.443813026 -0500
+++ ./cpanspec-1.78/cpanspec 2020-12-26 10:42:08.183698533 -0500
@@ -1083,6 +1083,7 @@ END
print $spec <<END;
%build
+declare -x PERL_USE_UNSAFE_INC=1
END
if ($usebuildpl) {
recommends
EUMM entries get compiled into hard requirements.
This should not happen
See https://bugzilla.redhat.com/show_bug.cgi?id=552105
Some modules don't have any /bin/ or /man3/ entries. The previous release didn't cause any troubles but the latest (taken from master branch) causes the spec file to include too many entries in the %files
section, which causes rpmbuild
to error out:
RPM build errors:
File not found by glob: /home/rpmbuild/rpmbuild/BUILDROOT/perl-Mojolicious-Plugin-TtRenderer-1.56-1.el7.centos.x86_64/usr/bin/*
File not found by glob: /home/rpmbuild/rpmbuild/BUILDROOT/perl-Mojolicious-Plugin-TtRenderer-1.56-1.el7.centos.x86_64/usr/share/man/man1/*
With latest version:
%files
%defattr(-,root,root,-)
%doc Changes cpanfile example LICENSE README
%{_bindir}/*
%{_mandir}/man1/*
%{perl_vendorlib}/*
%{_mandir}/man3/*
%changelog
- Specfile autogenerated by cpanspec 1.79.
And with the previous:
%files
%defattr(-,root,root,-)
%doc Changes cpanfile dist.ini example LICENSE META.json README
%{perl_vendorlib}/*
%{_mandir}/man3/*
%changelog
- Specfile autogenerated by cpanspec 1.78.
I didn't have time to investigate the issue further but will try to make a PR later this week if no fix is made meanwhile.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.