forked from pool/perl-JSON
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:
committed by
Git OBS Bridge
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
|
||||||
|
|
112
perl-JSON.spec
112
perl-JSON.spec
@@ -1,51 +1,105 @@
|
|||||||
%define modname JSON
|
#
|
||||||
Name: perl-%{modname}
|
# spec file for package perl-JSON
|
||||||
Version: 2.12
|
#
|
||||||
|
# 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
|
Release: 1
|
||||||
Summary: Parse and Convert to JSON
|
|
||||||
Requires: perl = %{perl_version} perl-libwww-perl
|
|
||||||
BuildRequires: perl perl-libwww-perl
|
|
||||||
License: GPL/Artistic
|
License: GPL/Artistic
|
||||||
Group: Development/Libraries/Perl
|
Group: Development/Libraries/Perl
|
||||||
Source: %{modname}-%{version}.tar.bz2
|
URL: http://search.cpan.org/dist/JSON/
|
||||||
BuildRoot: %{_tmppath}/%{name}-root
|
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
|
%description
|
||||||
This module converts between JSON (JavaScript Object Notation) and Perl data
|
#-------------------------------------------------------------------------------
|
||||||
structures.
|
%{cpan_name} module for perl
|
||||||
|
|
||||||
Authors:
|
JSON (JavaScript Object Notation) is a simple data format.
|
||||||
--------
|
See to http://www.json.org/ and RFC4627(http://www.ietf.org/rfc/rfc4627.txt).
|
||||||
Makamaka Hannyaharamitu <makamaka[at]cpan.org>
|
|
||||||
|
|
||||||
|
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
|
%prep
|
||||||
%setup -q -n %{modname}-%{version}
|
#-------------------------------------------------------------------------------
|
||||||
chmod a-x README
|
%setup -q -n %{cpan_name}-%{version}
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
%build
|
%build
|
||||||
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
|
#-------------------------------------------------------------------------------
|
||||||
make
|
CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL
|
||||||
|
%{__make}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make test
|
%{__make} test
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
%install
|
%install
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install_vendor
|
#-------------------------------------------------------------------------------
|
||||||
|
%perl_make_install
|
||||||
%perl_process_packlist
|
%perl_process_packlist
|
||||||
|
%perl_gen_filelist
|
||||||
|
|
||||||
%clean
|
#-------------------------------------------------------------------------------
|
||||||
rm -rf %{buildroot}
|
%clean
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
%{__rm} -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%files
|
#-------------------------------------------------------------------------------
|
||||||
%defattr(-, root, root)
|
%files -f %{name}.files
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
%defattr(-,root,root)
|
||||||
%doc Changes README
|
%doc Changes README
|
||||||
%doc %{_mandir}/man?/*
|
|
||||||
%{perl_vendorlib}/JSON.pm
|
|
||||||
%{perl_vendorlib}/JSON
|
|
||||||
%{perl_vendorarch}/auto/JSON
|
|
||||||
/var/adm/perl-modules/%{name}
|
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
%changelog
|
%changelog
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
* Tue Sep 18 2007 - James Oakley <jfunk@funktronics.ca> - 1.14-1
|
* Tue Sep 18 2007 - James Oakley <jfunk@funktronics.ca> - 1.14-1
|
||||||
- Initial release
|
- Initial release
|
||||||
|
Reference in New Issue
Block a user