[perl-JSON-Pointer] Import

Petr Pisar ppisar at fedoraproject.org
Thu Apr 18 14:36:27 UTC 2013


commit a5934d90830ed56b288ac5664021f17d8a277335
Author: Petr Písař <ppisar at redhat.com>
Date:   Thu Apr 18 16:35:47 2013 +0200

    Import

 .gitignore             |    1 +
 perl-JSON-Pointer.spec |   67 ++++++++++++++++++++++++++++++++++++++++++++++++
 sources                |    1 +
 3 files changed, 69 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..704ba12 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/JSON-Pointer-0.01.tar.gz
diff --git a/perl-JSON-Pointer.spec b/perl-JSON-Pointer.spec
new file mode 100644
index 0000000..bd42016
--- /dev/null
+++ b/perl-JSON-Pointer.spec
@@ -0,0 +1,67 @@
+Name:           perl-JSON-Pointer
+Version:        0.01
+Release:        1%{?dist}
+Summary:        Perl implementation of JSON Pointer
+License:        GPL+ or Artistic
+Group:          Development/Libraries
+URL:            http://search.cpan.org/dist/JSON-Pointer/
+Source0:        http://www.cpan.org/authors/id/Z/ZI/ZIGOROU/JSON-Pointer-%{version}.tar.gz
+BuildArch:      noarch
+BuildRequires:  perl
+BuildRequires:  perl(Module::Build)
+BuildRequires:  perl(strict)
+BuildRequires:  perl(warnings)
+# Run-time:
+BuildRequires:  perl(B)
+BuildRequires:  perl(Carp)
+BuildRequires:  perl(Class::Accessor::Lite) >= 0.05
+BuildRequires:  perl(Data::Clone) >= 0.003
+BuildRequires:  perl(Exporter)
+BuildRequires:  perl(JSON) >= 2.53
+BuildRequires:  perl(overload)
+BuildRequires:  perl(URI::Escape) >= 3.31
+# Tests:
+BuildRequires:  perl(Test::Exception) >= 0.31
+BuildRequires:  perl(Test::More) >= 0.98
+Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
+Requires:       perl(Class::Accessor::Lite) >= 0.05
+Requires:       perl(Data::Clone) >= 0.003
+Requires:       perl(JSON) >= 2.53
+Requires:       perl(URI::Escape) >= 3.31
+
+# Filter under-specified dependencies
+%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\((Class::Accessor::Lite|Data::Clone|JSON|URI::Escape)\\)$
+
+%description
+This library is implemented JSON Pointer draft version 9
+<http://tools.ietf.org/html/draft-ietf-appsawg-json-pointer-09> and some
+useful operators from JSON Patch draft version 10
+<http://tools.ietf.org/html/draft-ietf-appsawg-json-patch-10>. JSON Pointer is
+available to identify a specified value, and it is similar to XPath. Please
+see the both of specifications for details.
+
+%prep
+%setup -q -n JSON-Pointer-%{version}
+# Remove bundled modules
+rm -rf inc/*
+sed -i -e '/^inc\//d' MANIFEST
+
+%build
+perl Build.PL installdirs=vendor
+./Build
+
+%install
+./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
+%{_fixperms} $RPM_BUILD_ROOT/*
+
+%check
+./Build test
+
+%files
+%doc Changes LICENSE README
+%{perl_vendorlib}/*
+%{_mandir}/man3/*
+
+%changelog
+* Fri Apr 12 2013 Petr Pisar <ppisar at redhat.com> 0.01-1
+- Specfile autogenerated by cpanspec 1.78.
diff --git a/sources b/sources
index e69de29..199273a 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+24bbbdc31d5ff67f2430f60186249117  JSON-Pointer-0.01.tar.gz


More information about the scm-commits mailing list