commit 60c24d88cba2f85449ad4ea5fc25473578a6d277
Author: Emmanuel Seyman <emmanuel.sey...@club-internet.fr>
Date:   Thu Oct 27 22:42:17 2011 +0200

    Split out the server part in its own sub-package

 perl-JSON-RPC.spec |   31 +++++++++++++++++++++++--------
 1 files changed, 23 insertions(+), 8 deletions(-)
---
diff --git a/perl-JSON-RPC.spec b/perl-JSON-RPC.spec
index eb0b0a4..80ce9bc 100644
--- a/perl-JSON-RPC.spec
+++ b/perl-JSON-RPC.spec
@@ -1,12 +1,11 @@
 Name:           perl-JSON-RPC
 Version:        0.96
-Release:        9%{?dist}
+Release:        10%{?dist}
 Summary:        Perl implementation of JSON-RPC 1.1 protocol
 License:        GPL+ or Artistic
 Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/JSON-RPC/
 Source0:        
http://www.cpan.org/authors/id/M/MA/MAKAMAKA/JSON-RPC-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:      noarch
 BuildRequires:  perl(CGI) >= 2.92
 BuildRequires:  perl(ExtUtils::MakeMaker)
@@ -26,6 +25,16 @@ protocol for inter-networking applications over HTTP. It 
uses JSON as the
 data format for of all facets of a remote procedure call, including all
 application data carried in parameters.
 
+
+%package server
+Summary: The server part of JSON::RPC
+
+%description server
+JSON-RPC is a stateless and light-weight remote procedure call (RPC)
+protocol for inter-networking applications over HTTP. It uses JSON as the
+data format for of all facets of a remote procedure call, including all
+application data carried in parameters. This is a server-side implementation.
+
 %prep
 %setup -q -n JSON-RPC-%{version}
 
@@ -38,7 +47,6 @@ make %{?_smp_mflags}
 
 %install
 rm ex/MyApp.pm
-rm -rf $RPM_BUILD_ROOT
 
 make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
 
@@ -50,16 +58,23 @@ find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 
2>/dev/null \;
 %check
 make test
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
 %files
-%defattr(-,root,root,-)
 %doc Changes ex README
-%{perl_vendorlib}/*
+%{perl_vendorlib}/JSON/RPC.pm
+%{perl_vendorlib}/JSON/RPC/Client.pm
+%{perl_vendorlib}/JSON/RPC/Procedure.pm
+%{perl_vendorlib}/JSONRPC.pm
 %{_mandir}/man3/*
 
+%files server
+%{perl_vendorlib}/JSON/RPC/Server
+%{perl_vendorlib}/JSON/RPC/Server.pm
+
 %changelog
+* Thu Oct 27 2011 Emmanuel Seyman <emmanuel.sey...@club-internet.fr> - 0.96-10
+- Split out the server part in its own sub-package
+- Tidy up the spec file
+
 * Tue Jul 19 2011 Petr Sabata <con...@redhat.com> - 0.96-9
 - Perl mass rebuild
 
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/perl-devel

Reply via email to