forked from pool/perl-JSON-RPC
cpanspec, fix deps, noarch pkg
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-JSON-RPC?expand=0&rev=3
This commit is contained in:
committed by
Git OBS Bridge
parent
5fff41af0c
commit
b6584d959f
@@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Nov 11 15:09:30 UTC 2010 - chris@computersalat.de
|
||||||
|
|
||||||
|
- created by cpanspec 1.78
|
||||||
|
o fixed deps
|
||||||
|
- noarch pkg
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Aug 7 15:24:05 CEST 2009 - lars@linux-schulserver.de
|
Fri Aug 7 15:24:05 CEST 2009 - lars@linux-schulserver.de
|
||||||
|
|
||||||
|
@@ -1,5 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package perl-JSON-RPC
|
# spec file for package perl-JSON-RPC (Version 0.96)
|
||||||
|
#
|
||||||
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -10,53 +12,89 @@
|
|||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
# norootforbuild
|
||||||
|
|
||||||
|
%bcond_with pod
|
||||||
|
|
||||||
Name: perl-JSON-RPC
|
Name: perl-JSON-RPC
|
||||||
|
%define cpan_name JSON-RPC
|
||||||
Summary: Perl implementation of JSON-RPC 1.1 protocol
|
Summary: Perl implementation of JSON-RPC 1.1 protocol
|
||||||
%define _real_name JSON-RPC
|
|
||||||
Version: 0.96
|
Version: 0.96
|
||||||
Release: 1
|
Release: 2
|
||||||
License: Artistic License
|
License: GPL+ or Artistic
|
||||||
BuildRequires: perl-JSON perl-libwww-perl
|
|
||||||
Requires: perl-JSON perl-libwww-perl
|
|
||||||
Group: Development/Libraries/Perl
|
Group: Development/Libraries/Perl
|
||||||
Url: http://search.cpan.org/perldoc?JSON::RPC
|
Url: http://search.cpan.org/dist/JSON-RPC/
|
||||||
Source: %{_real_name}-%{version}.tar.bz2
|
#Source: http://www.cpan.org/modules/by-module/JSON/JSON-RPC-%{version}.tar.gz
|
||||||
|
Source: %{cpan_name}-%{version}.tar.bz2
|
||||||
|
BuildArch: noarch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
BuildRequires: perl
|
||||||
|
%if 0%{?suse_version} < 1120
|
||||||
|
BuildRequires: perl-macros
|
||||||
|
%endif
|
||||||
|
%if %{with pod}
|
||||||
|
BuildRequires: perl(Test::Pod) >= 1.00
|
||||||
|
%endif
|
||||||
|
BuildRequires: perl(Test::More)
|
||||||
|
BuildRequires: perl(CGI) >= 2.92
|
||||||
|
BuildRequires: perl(JSON) >= 2
|
||||||
|
BuildRequires: perl(LWP::UserAgent) >= 2.001
|
||||||
|
## coming with LWP::UserAgent
|
||||||
|
#BuildRequires: perl(HTTP::Request)
|
||||||
|
#BuildRequires: perl(HTTP::Response)
|
||||||
|
#
|
||||||
|
Requires: perl = %{perl_version}
|
||||||
|
Requires: perl(CGI) >= 2.92
|
||||||
|
Requires: perl(JSON) >= 2
|
||||||
|
Requires: perl(LWP::UserAgent) >= 2.001
|
||||||
|
## coming with LWP::UserAgent
|
||||||
|
#Requires: perl(HTTP::Request)
|
||||||
|
#Requires: perl(HTTP::Response)
|
||||||
|
|
||||||
%description
|
%description
|
||||||
JSON-RPC is a stateless and light-weight remote procedure call (RPC)
|
JSON-RPC is a stateless and light-weight remote procedure call (RPC)
|
||||||
protocol for inter-networking applications over HTTP. It uses JSON
|
protocol for inter-networking applications over HTTP. It uses JSON as the
|
||||||
as the data format for of all facets of a remote procedure call,
|
data format for of all facets of a remote procedure call, including all
|
||||||
including all application data carried in parameters.
|
application data carried in parameters.
|
||||||
|
|
||||||
The old modules - JSONRPC::Transport::HTTP and Apache::JSONRPC are deprecated.
|
The old modules - JSONRPC::Transport::HTTP and Apache::JSONRPC are deprecated.
|
||||||
Please try to use JSON::RPC::Server and JSON::RPC::Client which support both
|
Please try to use JSON::RPC::Server and JSON::RPC::Client which support both
|
||||||
JSON-RPC protocol version 1.1 and 1.0.
|
JSON-RPC protocol version 1.1 and 1.0.
|
||||||
|
|
||||||
|
Authors:
|
||||||
|
--------
|
||||||
|
Makamaka Hannyaharamitu, <makamaka[at]cpan.org>
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -n %{_real_name}-%{version}
|
%setup -q -n %{cpan_name}-%{version}
|
||||||
|
### rpmlint:
|
||||||
|
# wrong-file-end-of-line-encoding
|
||||||
|
%{__perl} -pi -e 's|\r\n|\n|' ex/jsonrpc.conf
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{__perl} Makefile.PL INSTALLDIRS="vendor" destdir="%{buildroot}"
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||||
%{__make} %{?jobs:-j%jobs}
|
%{__make} %{?_smp_mflags}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%{__make} test
|
%{__make} test
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%{makeinstall}
|
%perl_make_install
|
||||||
%{__rm} -rf %{buildroot}%{perl_archlib}/perllocal.pod
|
# do not perl_process_packlist (noarch)
|
||||||
find %{buildroot} -name .packlist -exec %{__rm} {} \;
|
# remove .packlist file
|
||||||
|
%{__rm} -rf $RPM_BUILD_ROOT%perl_vendorarch
|
||||||
|
# remove perllocal.pod file
|
||||||
|
%{__rm} -rf $RPM_BUILD_ROOT%perl_archlib
|
||||||
|
%perl_gen_filelist
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
%{__rm} -rf %{buildroot}
|
%{__rm} -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%files
|
%files -f %{name}.files
|
||||||
%defattr(-, root, root, 0755)
|
%defattr(-,root,root,-)
|
||||||
%{_mandir}/man3/*.gz
|
%doc Changes ex README
|
||||||
%dir %{perl_vendorlib}/JSON/
|
|
||||||
%{perl_vendorlib}/JSON/*
|
|
||||||
%{perl_vendorlib}/*.pm
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user