[perl-JSON-Path/el6] Initial Packaging of perl-JSON-Path.

Mathieu Bridon bochecha at fedoraproject.org
Wed Nov 2 08:45:03 UTC 2011


commit 9d13f7edb301a5a3eb652835408165485dd2b371
Author: Mathieu Bridon <bochecha at fedoraproject.org>
Date:   Fri Oct 21 12:46:51 2011 +0800

    Initial Packaging of perl-JSON-Path.
    
    This package was submitted for review in Fedora on Fri Oct 21 2011:
        https://bugzilla.redhat.com/show_bug.cgi?id=747834#c0

 perl-JSON-Path.spec |   66 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 66 insertions(+), 0 deletions(-)
---
diff --git a/perl-JSON-Path.spec b/perl-JSON-Path.spec
new file mode 100644
index 0000000..0727fea
--- /dev/null
+++ b/perl-JSON-Path.spec
@@ -0,0 +1,66 @@
+Name:           perl-JSON-Path
+Version:        0.101
+Release:        1%{?dist}
+Summary:        Search nested hashref/arrayref structures using JSONPath
+
+License:        MIT
+URL:            http://search.cpan.org/dist/JSON-Path/
+Source0:        http://www.cpan.org/authors/id/T/TO/TOBYINK/JSON-Path-%{version}.tar.gz
+
+BuildArch:      noarch
+
+BuildRequires:  perl >= 1:5.8.0
+BuildRequires:  perl(common::sense)
+BuildRequires:  perl(Error)
+BuildRequires:  perl(ExtUtils::MakeMaker)
+BuildRequires:  perl(JSON)
+BuildRequires:  perl(Test::More) >= 0.61
+
+# Those are only needed when building for RHEL, on Fedora they come in as
+# dependencies of the above
+%if 0%{?rhel} < 7
+BuildRequires:  perl(CPAN)
+%endif
+
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+Requires:       perl(common::sense)
+Requires:       perl(Error)
+Requires:       perl(JSON)
+
+%description
+This module implements JSONPath, an XPath-like language for searching JSON-
+like structures.
+
+
+%prep
+%setup -q -n JSON-Path-%{version}
+
+
+%build
+%{__perl} Makefile.PL INSTALLDIRS=vendor
+make %{?_smp_mflags}
+
+
+%install
+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
+
+
+%files
+%defattr(-,root,root,-)
+%doc Changes Changes.ttl Changes.xml README TODO
+%{perl_vendorlib}/*
+%{_mandir}/man3/*
+
+
+%changelog
+* Fri Oct 21 2011 Mathieu Bridon <bochecha at fedoraproject.org> 0.101-1
+- Specfile autogenerated by cpanspec 1.78. (with a couple of tweaks)


More information about the scm-commits mailing list