packages: perl-JSON-RPC/perl-JSON-RPC.spec (NEW)=?UTF-8?Q?=20?=- new (by pldcpan)

sls sls at pld-linux.org
Mon May 7 13:27:33 CEST 2012


Author: sls                          Date: Mon May  7 11:27:33 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new (by pldcpan)

---- Files affected:
packages/perl-JSON-RPC:
   perl-JSON-RPC.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/perl-JSON-RPC/perl-JSON-RPC.spec
diff -u /dev/null packages/perl-JSON-RPC/perl-JSON-RPC.spec:1.1
--- /dev/null	Mon May  7 13:27:33 2012
+++ packages/perl-JSON-RPC/perl-JSON-RPC.spec	Mon May  7 13:27:28 2012
@@ -0,0 +1,80 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	tests		# do not perform "make test"
+#
+%define		pdir	JSON
+%define		pnam	RPC
+%include	/usr/lib/rpm/macros.perl
+Summary:	JSON::RPC - JSON RPC 2.0 Server Implementation
+#Summary(pl.UTF-8):	
+Name:		perl-JSON-RPC
+Version:	1.01
+Release:	0.1
+# same as perl
+License:	GPL v1+ or Artistic
+Group:		Development/Languages/Perl
+Source0:	http://www.cpan.org/modules/by-module/JSON/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5:	802d5bb488f3587f16aa69e8c002132b
+URL:		http://search.cpan.org/dist/JSON-RPC/
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires:	perl(Class::Accessor::Lite)
+BuildRequires:	perl(JSON)
+BuildRequires:	perl(Plack)
+BuildRequires:	perl(Router::Simple)
+BuildRequires:	perl-libwww
+BuildRequires:	perl(Plack::Request)
+BuildRequires:	perl(Plack::Test)
+%endif
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+JSON::RPC is a set of modules that implment JSON RPC 2.0 protocol.
+
+    If you are using old JSON::RPC code (up to 0.96), DO NOT EXPECT
+    YOUR CODE TO WORK WITH THIS VERSION. THIS VERSION IS 
+    ****BACKWARDS INCOMPATIBLE****
+
+
+
+# %description -l pl.UTF-8
+# TODO
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+	INSTALLDIRS=vendor
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} pure_install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%{perl_vendorlib}/JSON/*.pm
+%{perl_vendorlib}/JSON/RPC
+%{_mandir}/man3/*
+
+%define	date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2012/05/07 11:27:28  sls
+- new (by pldcpan)
+
================================================================


More information about the pld-cvs-commit mailing list