# vim: set sw=4 ts=4 et nu: # norootforbuild Name: perl-Test-JSON Version: 0.11 Release: 0 Summary: Test JSON Data Source: http://search.cpan.org/CPAN/authors/id/O/OV/OVID/Test-JSON-%{version}.tar.gz URL: http://search.cpan.org/dist/Test-JSON/ Group: Development/Libraries/Perl License: Perl License BuildRoot: %{_tmppath}/build-%{name}-%{version} Requires: perl = %{perl_version} BuildRequires: make perl BuildRequires: perl(Test::Differences) BuildRequires: perl(Test::Tester) BuildRequires: perl(Test::Pod::Coverage) BuildRequires: perl(JSON::Any) Requires: perl(Test::Differences) Requires: perl(Test::Tester) Requires: perl(JSON::Any) %description 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. %prep %setup -q -n "Test-JSON-%{version}" %__sed -i '/^auto_install/d' Makefile.PL %build %__perl Makefile.PL PREFIX="%{_prefix}" %__make %{?jobs:-j%{jobs}} %install %perl_make_install %perl_process_packlist %check %__make test %clean %{?buildroot:%__rm -rf "%{buildroot}"} %files %defattr(-,root,root) %doc Changes README %dir %{perl_vendorlib}/Test %{perl_vendorlib}/Test/JSON.pm %dir %{perl_vendorarch}/auto/Test %{perl_vendorarch}/auto/Test/JSON %doc %{perl_man3dir}/Test::JSON.%{perl_man3ext}%{ext_man} /var/adm/perl-modules/%{name}