diff --git a/.cvsignore b/.cvsignore index 4756a8b..7d5f6fc 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -JSON-XS-2.24.tar.gz +JSON-XS-2.27.tar.gz diff --git a/auto.ini b/auto.ini new file mode 100644 index 0000000..5e31e2d --- /dev/null +++ b/auto.ini @@ -0,0 +1,2 @@ +[add_build_requires] +perl(Test::More)=0 diff --git a/perl-JSON-XS.spec b/perl-JSON-XS.spec index d57b049..25fbb20 100644 --- a/perl-JSON-XS.spec +++ b/perl-JSON-XS.spec @@ -1,24 +1,24 @@ Name: perl-JSON-XS -Epoch: 1 -Version: 2.24 -Release: 3%{?dist} Summary: JSON serialising/deserialising, done correctly and fast +Epoch: 1 +Version: 2.27 +Release: 1%{?dist} License: GPL+ or Artistic Group: Development/Libraries +Source0: http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/JSON-XS-%{version}.tar.gz URL: http://search.cpan.org/dist/JSON-XS/ -Source0: http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/JSON-XS-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) -# core +BuildRequires: perl(common::sense) BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Test::More) -# don't "provide" private Perl libs -%global _use_internal_dependency_generator 0 -%global __deploop() while read FILE; do /usr/lib/rpm/rpmdeps -%{1} ${FILE}; done | /bin/sort -u -%global __find_provides /bin/sh -c "%{__grep} -v '%_docdir' | %{__grep} -v '%{perl_vendorarch}/.*\\.so$' | %{__deploop P}" -%global __find_requires /bin/sh -c "%{__grep} -v '%_docdir' | %{__deploop R}" +Requires: perl(common::sense) + + +%{?perl_default_filter} +%{?perl_default_subpackage_tests} %description This module converts Perl data structures to JSON and vice versa. Its @@ -29,8 +29,7 @@ reach the latter goal it was written in C. %setup -q -n JSON-XS-%{version} sed -i 's/\r//' t/* -perl -pi -e 's|^#! ?perl|#!/usr/bin/perl|' t/* -perl -pi -e 's|^#!/opt/bin/perl|#!/usr/bin/perl|' eg/* +perl -pi -e 's|^#!/opt/bin/perl|#!%{__perl}|' eg/* chmod -c -x eg/* %build @@ -40,7 +39,7 @@ make %{?_smp_mflags} %install rm -rf %{buildroot} -make pure_install PERL_INSTALL_ROOT=%{buildroot} +make pure_install DESTDIR=%{buildroot} find %{buildroot} -type f -name .packlist -exec rm -f {} + find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} + @@ -56,13 +55,19 @@ rm -rf %{buildroot} %files %defattr(-,root,root,-) -%doc Changes COPYING README t/ eg/ +%doc Changes COPYING README eg/ %{perl_vendorarch}/* %exclude %dir %{perl_vendorarch}/auto %{_bindir}/* %{_mandir}/man[13]/* %changelog +* Sat Feb 27 2010 Chris Weyl 1:2.27-1 +- update by Fedora::App::MaintainerTools 0.004 +- PERL_INSTALL_ROOT => DESTDIR +- added a new br on perl(common::sense) (version 0) +- added a new req on perl(common::sense) (version 0) + * Mon Dec 7 2009 Stepan Kasal - 1:2.24-3 - rebuild against perl 5.10.1 diff --git a/sources b/sources index ec57796..943ea61 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -8821744b35260f4712a28ed68afcd2b6 JSON-XS-2.24.tar.gz +d7a4f92f2e497281f2a8f535fbe9783a JSON-XS-2.27.tar.gz