commit 7c46ef964f475cdac841d0b41c5b0cdd5992ca79 Author: Paul Howarth <paul@xxxxxxxxxxxx> Date: Thu Jan 27 16:43:06 2011 +0000 Initial import (perl-JSON-PP-2.27104-3) JSON::XS is the fastest and most proper JSON module on CPAN. It is written by Marc Lehmann in C, so must be compiled and installed in the used environment. JSON::PP is a pure-Perl module and is compatible with JSON::XS. .gitignore | 1 + perl-JSON-PP.spec | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 63 insertions(+), 0 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..3441914 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/JSON-PP-2.27104.tar.gz diff --git a/perl-JSON-PP.spec b/perl-JSON-PP.spec new file mode 100644 index 0000000..3d56b04 --- /dev/null +++ b/perl-JSON-PP.spec @@ -0,0 +1,61 @@ +Name: perl-JSON-PP +Version: 2.27104 +Release: 3%{?dist} +Summary: JSON::XS compatible pure-Perl module +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/CPAN-Meta-YAML/ +Source0: http://search.cpan.org/CPAN/authors/id/M/MA/MAKAMAKA/JSON-PP-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(Test::More) +BuildRequires: perl(Test::Pod) +BuildRequires: perl(Tie::IxHash) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +Conflicts: perl-JSON < 2.50 + +%description +JSON::XS is the fastest and most proper JSON module on CPAN. It is written by +Marc Lehmann in C, so must be compiled and installed in the used environment. + +JSON::PP is a pure-Perl module and is compatible with JSON::XS. + +%prep +%setup -q -n JSON-PP-%{version} + +%build +perl Makefile.PL INSTALLDIRS=perl +make %{?_smp_mflags} + +%install +rm -rf %{buildroot} +make pure_install DESTDIR=%{buildroot} +find %{buildroot} -type f -name .packlist -exec rm -f {} \; +find %{buildroot} -depth -type d -exec rmdir {} \; 2>/dev/null +%{_fixperms} %{buildroot} + +%check +make test + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%doc Changes README +%{_bindir}/json_pp +%{perl_privlib}/JSON/ +%{_mandir}/man1/json_pp.1* +%{_mandir}/man3/JSON::PP.3pm* +%{_mandir}/man3/JSON::PP::Boolean.3pm* + +%changelog +* Thu Jan 27 2011 Paul Howarth <paul@xxxxxxxxxxxx> - 2.27104-3 +- Conflict with perl-JSON < 2.50 (#672764) + +* Wed Jan 26 2011 Paul Howarth <paul@xxxxxxxxxxxx> - 2.27104-2 +- Sanitize for Fedora submission + +* Tue Jan 25 2011 Paul Howarth <paul@xxxxxxxxxxxx> - 2.27104-1 +- Initial RPM version diff --git a/sources b/sources index e69de29..f5d8ecb 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +45094c4030d67701b1af513b06913ead JSON-PP-2.27104.tar.gz -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel