Blob Blame History Raw
[add_build_requires]
perl(Test::Pod)=0

[spec_description]
content= <<EOT
JavaScript Object Notation (JSON) is a lightweight data interchange format.
Test::JSON makes it easy to verify that you have built valid JSON and that
it matches your expected output.

EOT

[spec_prep]
setup_line=%setup -q -n Test-JSON-%{version}
use_custom_prep=0
custom_prep= <<EOT

EOT

[spec_build]
; Set to 0 or delete section to use the default
use_custom=0
custom= <<EOT
%{__perl} Build.PL installdirs=vendor
./Build

EOT

[spec_install]
; Set to 0 or delete section to use the default
use_custom=0
custom= <<EOT
rm -rf $RPM_BUILD_ROOT

./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;

%{_fixperms} $RPM_BUILD_ROOT/*

EOT

[spec_check]
; Set to 0 or delete section to use the default
use_custom=0
custom= <<EOT
./Build test

EOT

[spec_clean]
; Set to 0 or delete section to use the default
use_custom=0
custom= <<EOT
rm -rf $RPM_BUILD_ROOT

EOT

[spec_files]
; Set to 0 or delete section to use the default
use_custom=0
custom= <<EOT
%defattr(-,root,root,-)
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*

EOT

[common]
; Set to 0 to DISABLE all description/prep/build/etc management.
is_fully_managed=1