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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



commit 9d13f7edb301a5a3eb652835408165485dd2b371
Author: Mathieu Bridon <bochecha@xxxxxxxxxxxxxxxxx>
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@xxxxxxxxxxxxxxxxx> 0.101-1
+- Specfile autogenerated by cpanspec 1.78. (with a couple of tweaks)
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/perl-devel



[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux