|
|
|
@ -139,12 +139,9 @@ make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
|
# perlmagick: fix perl path of demo files
|
|
|
|
|
%{__perl} -MExtUtils::MakeMaker -e 'MY->fixin(@ARGV)' PerlMagick/demo/*.pl
|
|
|
|
|
|
|
|
|
|
# perlmagick: remove special files
|
|
|
|
|
find $RPM_BUILD_ROOT%{_libdir} -name perllocal.pod -o -name .packlist \
|
|
|
|
|
-o -name "*.bs" | xargs -ri rm -f {}
|
|
|
|
|
|
|
|
|
|
# perlmagick: no empty directories
|
|
|
|
|
find $RPM_BUILD_ROOT%{_libdir} -depth -type d -a -empty -exec rmdir {} \;
|
|
|
|
|
find $RPM_BUILD_ROOT -name "*.bs" |xargs rm -f
|
|
|
|
|
find $RPM_BUILD_ROOT -name ".packlist" |xargs rm -f
|
|
|
|
|
find $RPM_BUILD_ROOT -name "perllocal.pod" |xargs rm -f
|
|
|
|
|
|
|
|
|
|
# perlmagick: build files list
|
|
|
|
|
echo "%defattr(-,root,root)" > perl-pkg-files
|
|
|
|
|