|
|
|
Name: perl-JSON-Any
|
|
|
|
Version: 1.21
|
|
|
|
Release: 2%{?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://search.cpan.org/CPAN/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))
|
|
|
|
|
|
|
|
Patch0: with_older_json.patch
|
|
|
|
|
|
|
|
# JSON::XS is fastest, so we require it
|
|
|
|
Requires: perl(JSON::XS)
|
|
|
|
|
|
|
|
# core
|
|
|
|
BuildRequires: perl(Carp)
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42
|
|
|
|
# testing
|
|
|
|
BuildRequires: perl(Test::More) >= 0.42
|
|
|
|
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)
|
|
|
|
|
|
|
|
|
|
|
|
### auto-added reqs!
|
|
|
|
Requires: perl(Carp)
|
|
|
|
|
|
|
|
### auto-added brs!
|
|
|
|
BuildRequires: perl(CPAN)
|
|
|
|
|
|
|
|
%description
|
|
|
|
JSON::Any provides a coherent API to bring together the various JSON modules
|
|
|
|
currently on CPAN.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n JSON-Any-%{version}
|
|
|
|
%patch0 -p1
|
|
|
|
|
|
|
|
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
|
|
|
|
* Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 1.21-2
|
|
|
|
- rebuild against perl 5.10.1
|
|
|
|
|
|
|
|
* Tue Aug 11 2009 Chris Weyl <cweyl@alumni.drew.edu> 1.21-1
|
|
|
|
- auto-update to 1.21 (by cpan-spec-update 0.01)
|
|
|
|
- altered br on perl(ExtUtils::MakeMaker) (0 => 6.42)
|
|
|
|
- altered br on perl(Test::More) (0.62 => 0.42)
|
|
|
|
- added a new br on CPAN (inc::Module::AutoInstall found)
|
|
|
|
- added a new req on perl(Carp) (version 0)
|
|
|
|
|
|
|
|
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.19-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
|
|
|
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.19-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
|
|
|
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.19-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
|
|
|
* Wed Feb 11 2009 Chris Weyl <cweyl@alumni.drew.edu> 1.19-1
|
|
|
|
- update to 1.19
|
|
|
|
|
|
|
|
* Sun Sep 21 2008 Ville Skyttä <ville.skytta at iki.fi> - 1.16-4
|
|
|
|
- Fix Patch:/%%patch0 mismatch.
|
|
|
|
|
|
|
|
* Sat Mar 22 2008 Chris Weyl <cweyl@alumni.drew.edu> 1.16-3
|
|
|
|
- patch to allow utf8 to work properly with JSON::XS earlier than version 2
|
|
|
|
- patch to skip JSON when JSON is earlier than version 2
|
|
|
|
|
|
|
|
* Wed Mar 12 2008 Chris Weyl <cweyl@alumni.drew.edu> 1.16-2
|
|
|
|
- bump
|
|
|
|
|
|
|
|
* Sun Mar 09 2008 Chris Weyl <cweyl@alumni.drew.edu> 1.16-1
|
|
|
|
- Specfile autogenerated by cpanspec 1.74.
|