%define cpan_name JSON-Any Name: perl-JSON-Any Version: 1.22 Release: 0 Requires: perl perl-JSON perl-YAML-Syck %if 0%{?suse_version} < 1100 Requires: perl-JSON-PC %endif Requires: perl-JSON-DWIW Group: Development/Libraries/Perl License: Perl License URL: http://search.cpan.org/dist/JSON-Any/ Summary: Wrapper Class for the various JSON classes Source: http://search.cpan.org/CPAN/authors/id/P/PE/PERIGRIN/JSON-Any-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build Requires: perl = %{perl_version} BuildRequires: perl(YAML::Syck) BuildRequires: perl(JSON::DWIW) BuildRequires: perl-JSON >= 2.02 BuildRequires: perl(JSON::XS) %description Wrapper Class for the various JSON classes. This module will provide a coherent API to bring together the various JSON modules currently on CPAN. This module will allow you to code to any JSON API and have it work regardless of which JSON module is actually installed. %prep %setup -q -n %cpan_name-%{version} %__sed -i '/^auto_install/d' Makefile.PL %__chmod 0644 lib/JSON/Any.pm %build %__perl Makefile.PL PREFIX="%{_usr}" %__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 MANIFEST README %dir %{perl_vendorlib}/JSON %{perl_vendorlib}/JSON/Any.pm %dir %{perl_vendorarch}/auto/JSON %dir %{perl_vendorarch}/auto/JSON/Any %doc %{perl_man3dir}/JSON::Any.%{perl_man3ext}%{ext_man} %changelog * Sun Jul 25 2010 Pascal Bleser - 1.22 - update to 1.22 * Thu Apr 9 2009 - pascal.bleser@opensuse.org 1.19 - update to 1.19 - spec file pimping * Sun Oct 26 2008 - gerrit.beine@gmx.de 1.17 - first release 1.17