Update to 2.3 from cpan. Change in rpm to 2.30.

This commit is contained in:
Marcela Mašláňová 2010-10-11 14:05:13 +02:00
parent 6673f36a57
commit 7cb38dbfe8
3 changed files with 13 additions and 7 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
JSON-XS-2.27.tar.gz JSON-XS-2.27.tar.gz
/JSON-XS-2.3.tar.gz

View File

@ -1,13 +1,14 @@
%define real_version 2.3
Name: perl-JSON-XS Name: perl-JSON-XS
Summary: JSON serialising/deserialising, done correctly and fast Summary: JSON serialising/deserialising, done correctly and fast
Epoch: 1 Epoch: 1
Version: 2.27 # previous version was 2.27
Release: 2%{?dist} Version: 2.30
Release: 1%{?dist}
License: GPL+ or Artistic License: GPL+ or Artistic
Group: Development/Libraries 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/ URL: http://search.cpan.org/dist/JSON-XS/
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: http://www.cpan.org/authors/id/M/ML/MLEHMANN/JSON-XS-%{real_version}.tar.gz
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
BuildRequires: perl(common::sense) BuildRequires: perl(common::sense)
@ -15,7 +16,8 @@ BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::More) BuildRequires: perl(Test::More)
Requires: perl(common::sense) Requires: perl(common::sense)
# because of 2.3 upstream version and 2.30 rpm version
Provides: perl(JSON::XS) = 2.30
%{?perl_default_filter} %{?perl_default_filter}
%{?perl_default_subpackage_tests} %{?perl_default_subpackage_tests}
@ -26,7 +28,7 @@ primary goal is to be correct and its secondary goal is to be fast. To
reach the latter goal it was written in C. reach the latter goal it was written in C.
%prep %prep
%setup -q -n JSON-XS-%{version} %setup -q -n JSON-XS-%{real_version}
sed -i 's/\r//' t/* sed -i 's/\r//' t/*
perl -pi -e 's|^#!/opt/bin/perl|#!%{__perl}|' eg/* perl -pi -e 's|^#!/opt/bin/perl|#!%{__perl}|' eg/*
@ -62,6 +64,9 @@ rm -rf %{buildroot}
%{_mandir}/man[13]/* %{_mandir}/man[13]/*
%changelog %changelog
* Mon Oct 11 2010 Marcela Mašláňová <mmaslano@redhat.com> - 1:2.30-1
- update
* Sun May 02 2010 Marcela Maslanova <mmaslano@redhat.com> - 1:2.27-2 * Sun May 02 2010 Marcela Maslanova <mmaslano@redhat.com> - 1:2.27-2
- Mass rebuild with perl-5.12.0 - Mass rebuild with perl-5.12.0

View File

@ -1 +1 @@
d7a4f92f2e497281f2a8f535fbe9783a JSON-XS-2.27.tar.gz 4dc2a968e41f8cf330d46be12f221a12 JSON-XS-2.3.tar.gz