SOURCES: pldcpan.pl - when module name consist of more than two pa...
migo
migo at pld-linux.org
Fri Nov 11 20:54:06 CET 2005
Author: migo Date: Fri Nov 11 19:54:06 2005 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- when module name consist of more than two parts then use more intresting
paths in %files
---- Files affected:
SOURCES:
pldcpan.pl (1.26 -> 1.27)
---- Diffs:
================================================================
Index: SOURCES/pldcpan.pl
diff -u SOURCES/pldcpan.pl:1.26 SOURCES/pldcpan.pl:1.27
--- SOURCES/pldcpan.pl:1.26 Fri Nov 11 20:51:34 2005
+++ SOURCES/pldcpan.pl Fri Nov 11 20:54:01 2005
@@ -659,8 +659,9 @@
%{perl_vendorarch}/auto/[% pdir %]/[% pnam %]/*.bs
%attr(755,root,root) %{perl_vendorarch}/auto/[% pdir %]/[% pnam %]/*.so
[% ELSE -%]
-%{perl_vendorlib}/[% pdir %]/*.pm
-%{perl_vendorlib}/[% pdir %]/[% pnam %]
+[%- number = parts.size - 1 -%]
+%{perl_vendorlib}/[% parts.first(number).join('/') %]/*.pm
+%{perl_vendorlib}/[% pdir %]/[% parts.last(number).join('/') %]
[% END -%]
%{_mandir}/man3/*
[% IF test_has_examples -%]
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SOURCES/pldcpan.pl?r1=1.26&r2=1.27&f=u
More information about the pld-cvs-commit
mailing list