new version 2.15
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-JSON?expand=0&rev=7
This commit is contained in:
parent
0406f5b59c
commit
f155a4e78b
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:70dac48c91d0c0012ffe5329915c1f9960d80469b2ed63c24da7894a14cd4822
|
||||
size 49790
|
3
JSON-2.15.tar.bz2
Normal file
3
JSON-2.15.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:60753f111a84c4d3683571e7fda0685ff5b66519ca943d318f8a7afcd30ca884
|
||||
size 50589
|
10
perl-JSON.changes
Normal file
10
perl-JSON.changes
Normal file
@ -0,0 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Jun 20 19:09:23 CEST 2009 - chris@computersalat.de
|
||||
|
||||
- update to 2.15
|
||||
- added perl-macros
|
||||
o autogen filelist with perl_gen_filelist
|
||||
- spec mods
|
||||
o added header
|
||||
o fixed deps
|
||||
|
108
perl-JSON.spec
108
perl-JSON.spec
@ -1,51 +1,105 @@
|
||||
%define modname JSON
|
||||
Name: perl-%{modname}
|
||||
Version: 2.12
|
||||
#
|
||||
# spec file for package perl-JSON
|
||||
#
|
||||
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
# norootforbuild
|
||||
|
||||
#Distribution: %dist
|
||||
#Packager: %packager
|
||||
#Vendor: %vendor
|
||||
|
||||
Name: perl-JSON
|
||||
%define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' )
|
||||
Summary: JSON (JavaScript Object Notation) encoder/decoder
|
||||
Version: 2.15
|
||||
Release: 1
|
||||
Summary: Parse and Convert to JSON
|
||||
Requires: perl = %{perl_version} perl-libwww-perl
|
||||
BuildRequires: perl perl-libwww-perl
|
||||
License: GPL/Artistic
|
||||
Group: Development/Libraries/Perl
|
||||
Source: %{modname}-%{version}.tar.bz2
|
||||
BuildRoot: %{_tmppath}/%{name}-root
|
||||
URL: http://search.cpan.org/dist/JSON/
|
||||
Source: %{cpan_name}-%{version}.tar.bz2
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: perl(Test::More)
|
||||
BuildRequires: perl(Test::Pod) >= 1.00
|
||||
# other not perl || perl-base
|
||||
BuildRequires: perl(JSON::XS)
|
||||
#BuildRequires: perl-libwww-perl
|
||||
Requires: perl = %{perl_version}
|
||||
#Requires: perl-libwww-perl
|
||||
# other not perl || perl-base
|
||||
Requires: perl(JSON::XS)
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
%description
|
||||
This module converts between JSON (JavaScript Object Notation) and Perl data
|
||||
structures.
|
||||
#-------------------------------------------------------------------------------
|
||||
%{cpan_name} module for perl
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Makamaka Hannyaharamitu <makamaka[at]cpan.org>
|
||||
JSON (JavaScript Object Notation) is a simple data format.
|
||||
See to http://www.json.org/ and RFC4627(http://www.ietf.org/rfc/rfc4627.txt).
|
||||
|
||||
This module converts Perl data structures to JSON and vice versa using
|
||||
either JSON::XS or JSON::PP.
|
||||
|
||||
JSON::XS is the fastest and most proper JSON module on CPAN which must be
|
||||
compiled and installed in your environment.
|
||||
JSON::PP is a pure-Perl module which is bundled in this distribution and has
|
||||
a strong compatibility to JSON::XS.
|
||||
|
||||
This module try to use JSON::XS by default and fail to it, use JSON::PP instead.
|
||||
So its features completely depend on JSON::XS or JSON::PP.
|
||||
|
||||
Author: Makamaka Hannyaharamitu, <makamaka (at) cpan.org>
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
%prep
|
||||
%setup -q -n %{modname}-%{version}
|
||||
chmod a-x README
|
||||
#-------------------------------------------------------------------------------
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
%build
|
||||
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
|
||||
make
|
||||
#-------------------------------------------------------------------------------
|
||||
CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL
|
||||
%{__make}
|
||||
|
||||
%check
|
||||
make test
|
||||
%{__make} test
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
%install
|
||||
make DESTDIR=$RPM_BUILD_ROOT install_vendor
|
||||
#-------------------------------------------------------------------------------
|
||||
%perl_make_install
|
||||
%perl_process_packlist
|
||||
%perl_gen_filelist
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
#-------------------------------------------------------------------------------
|
||||
%{__rm} -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
#-------------------------------------------------------------------------------
|
||||
%files -f %{name}.files
|
||||
#-------------------------------------------------------------------------------
|
||||
%defattr(-,root,root)
|
||||
%doc Changes README
|
||||
%doc %{_mandir}/man?/*
|
||||
%{perl_vendorlib}/JSON.pm
|
||||
%{perl_vendorlib}/JSON
|
||||
%{perl_vendorarch}/auto/JSON
|
||||
/var/adm/perl-modules/%{name}
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
%changelog
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
* Tue Sep 18 2007 - James Oakley <jfunk@funktronics.ca> - 1.14-1
|
||||
- Initial release
|
||||
|
Loading…
x
Reference in New Issue
Block a user