[perl-JSON-XS] Update to 2.3 from cpan. Change in rpm to 2.30.
Marcela Mašláňová
mmaslano at fedoraproject.org
Mon Oct 11 12:07:12 UTC 2010
commit 7cb38dbfe8a8729f97a724774f6e79943066fccf
Author: Marcela Mašláňová <mmaslano at redhat.com>
Date: Mon Oct 11 14:05:13 2010 +0200
Update to 2.3 from cpan. Change in rpm to 2.30.
.gitignore | 1 +
perl-JSON-XS.spec | 17 +++++++++++------
sources | 2 +-
3 files changed, 13 insertions(+), 7 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 7d5f6fc..ec93d93 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
JSON-XS-2.27.tar.gz
+/JSON-XS-2.3.tar.gz
diff --git a/perl-JSON-XS.spec b/perl-JSON-XS.spec
index bd1713a..a0a8633 100644
--- a/perl-JSON-XS.spec
+++ b/perl-JSON-XS.spec
@@ -1,13 +1,14 @@
+%define real_version 2.3
Name: perl-JSON-XS
Summary: JSON serialising/deserialising, done correctly and fast
Epoch: 1
-Version: 2.27
-Release: 2%{?dist}
+# previous version was 2.27
+Version: 2.30
+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/
-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))
BuildRequires: perl(common::sense)
@@ -15,7 +16,8 @@ BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::More)
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_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.
%prep
-%setup -q -n JSON-XS-%{version}
+%setup -q -n JSON-XS-%{real_version}
sed -i 's/\r//' t/*
perl -pi -e 's|^#!/opt/bin/perl|#!%{__perl}|' eg/*
@@ -62,6 +64,9 @@ rm -rf %{buildroot}
%{_mandir}/man[13]/*
%changelog
+* Mon Oct 11 2010 Marcela Mašláňová <mmaslano at redhat.com> - 1:2.30-1
+- update
+
* Sun May 02 2010 Marcela Maslanova <mmaslano at redhat.com> - 1:2.27-2
- Mass rebuild with perl-5.12.0
diff --git a/sources b/sources
index 943ea61..0fe43fe 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-d7a4f92f2e497281f2a8f535fbe9783a JSON-XS-2.27.tar.gz
+4dc2a968e41f8cf330d46be12f221a12 JSON-XS-2.3.tar.gz
More information about the scm-commits
mailing list