[perl-JSON-Util/f15/master] new package

RĂ¼diger Landmann rlandmann at fedoraproject.org
Mon Mar 14 06:36:45 UTC 2011


commit 11837c1c34fb948f8517d0ee435674ae5a79c6d1
Author: Ruediger Landmann <r.landmann at redhat.com>
Date:   Mon Mar 14 16:38:54 2011 +1000

    new package

 .gitignore          |    1 +
 perl-JSON-Util.spec |   51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 sources             |    1 +
 3 files changed, 53 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..b5684f9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/JSON-Util-0.05.tar.gz
diff --git a/perl-JSON-Util.spec b/perl-JSON-Util.spec
new file mode 100644
index 0000000..46be28e
--- /dev/null
+++ b/perl-JSON-Util.spec
@@ -0,0 +1,51 @@
+Name:           perl-JSON-Util
+Version:        0.05
+Release:        1%{?dist}
+Summary:        Easy and portable encode/decode of JSON
+License:        GPL+ or Artistic
+Group:          Development/Libraries
+URL:            http://search.cpan.org/dist/JSON-Util/
+Source0:        http://www.cpan.org/authors/id/J/JK/JKUTEJ/JSON-Util-%{version}.tar.gz
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildArch:      noarch
+BuildRequires:  perl(IO::Any)
+BuildRequires:  perl(JSON::XS)
+BuildRequires:  perl(Module::Build)
+BuildRequires:  perl(Test::Differences)
+BuildRequires:  perl(Test::Exception)
+BuildRequires:  perl(Test::More)
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
+%description
+Provides methods to encode and decode JSON.
+
+%prep
+%setup -q -n JSON-Util-%{version}
+
+%build
+%{__perl} Build.PL installdirs=vendor
+./Build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
+find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
+
+%{_fixperms} $RPM_BUILD_ROOT/*
+
+%check
+./Build test
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root,-)
+%doc Changes README
+%{perl_vendorlib}/*
+%{_mandir}/man3/*
+
+%changelog
+* Mon Jan 17 2011 RĂ¼diger Landmann <r.landmann at redhat.com> 0.05-1
+- Specfile autogenerated by cpanspec 1.78.
diff --git a/sources b/sources
index e69de29..ee776ed 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+f770285c478750100b6b0765c4a914a6  JSON-Util-0.05.tar.gz



More information about the perl-devel mailing list