From 7ddeb13765ed16057ae9b7ca0a7b768fa9893887 Mon Sep 17 00:00:00 2001 From: Chris Weyl Date: Wed, 12 Mar 2008 19:03:34 +0000 Subject: [PATCH] initial import --- .cvsignore | 1 + perl-JSON-Any.spec | 73 ++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 75 insertions(+) create mode 100644 perl-JSON-Any.spec diff --git a/.cvsignore b/.cvsignore index e69de29..46b0610 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +JSON-Any-1.16.tar.gz diff --git a/perl-JSON-Any.spec b/perl-JSON-Any.spec new file mode 100644 index 0000000..0c71f2d --- /dev/null +++ b/perl-JSON-Any.spec @@ -0,0 +1,73 @@ +Name: perl-JSON-Any +Version: 1.16 +Release: 1%{?dist} +Summary: A meta-module to make working with JSON easier +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/JSON-Any/ +Source0: http://www.cpan.org/authors/id/P/PE/PERIGRIN/JSON-Any-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +# JSON::XS is fastest, so we require it +Requires: perl(JSON::XS) + +# core +BuildRequires: perl(Carp) +BuildRequires: perl(ExtUtils::MakeMaker) +# testing +BuildRequires: perl(Test::More) >= 0.62 +BuildRequires: perl(JSON::XS) >= 1.52 +# optional tests -- JSON::Any can handle any of the following to actually do +# the JSON parsing. We use JSON::XS above, as it's both already in Fedora and +# the fastest of the following. As other JSON modules are added to Fedora, +# we'll uncomment the tests below. +BuildRequires: perl(JSON) +#BuildRequires: perl(JSON::DWIM) +#BuildRequires: perl(JSON::PC) +BuildRequires: perl(JSON::Syck) + + +%description +JSON::Any provides a coherent API to bring together the various JSON modules +currently on CPAN. + +%prep +%setup -q -n JSON-Any-%{version} + +find . -type f -exec chmod -c -x {} + +find t/ -type f -exec perl -pi -e 's|^#!perl|#!/usr/bin/perl|' {} + + +cat Changes | iconv -f ISO-8859-1 -t UTF-8 > Changes.foo +mv Changes.foo Changes + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor --default +make + +%install +rm -rf %{buildroot} + +make pure_install PERL_INSTALL_ROOT=%{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 t/ +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Sun Mar 09 2008 Chris Weyl 1.16-1 +- Specfile autogenerated by cpanspec 1.74. diff --git a/sources b/sources index e69de29..d87986a 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +37325d39aa62b291d05b9e90d2df12a0 JSON-Any-1.16.tar.gz