forked from pool/perl-JSON-DWIW
Compare commits
10 Commits
fee3ca2652
...
b9b7e51060
Author | SHA256 | Date | |
---|---|---|---|
|
b9b7e51060 | ||
2c29a571cf | |||
7e06154068 | |||
|
ad20846726 | ||
|
32627219d7 | ||
|
803b23e5c8 | ||
|
7b9e7eb8fb | ||
|
69efbcd74c | ||
|
12ae1af1b0 | ||
|
d1e71457b3 |
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:ac95beeb412fb00b91c8627d8ee6d9f326daa4c0e28b5a9b6490ea352e954e80
|
||||
size 67626
|
3
JSON-DWIW-0.47.tar.gz
Normal file
3
JSON-DWIW-0.47.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:46a7cdcb77ceb95f96da53800ce36d21835f7fd25ab15cb45f823dec11213161
|
||||
size 445599
|
26
perl-JSON-DWIW.changes
Normal file
26
perl-JSON-DWIW.changes
Normal file
@@ -0,0 +1,26 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Jul 21 07:40:22 UTC 2011 - coolo@novell.com
|
||||
|
||||
- updated to 0.47, see JSON::DWIW::Changes for newer changes
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 30 19:20:24 UTC 2010 - coolo@novell.com
|
||||
|
||||
- switch to perl_requires macro
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Nov 29 18:30:20 UTC 2010 - coolo@novell.com
|
||||
|
||||
- remove /var/adm/perl-modules
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Oct 19 08:38:42 UTC 2010 - coolo@novell.com
|
||||
|
||||
- add perl as explicit buildrequire
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 26 00:00:00 UTC 2008 - gerrit.beine@gmx.de
|
||||
|
||||
- first release 0.27
|
||||
|
||||
|
@@ -1,53 +1,74 @@
|
||||
%define cpan_name JSON-DWIW
|
||||
#
|
||||
# spec file for package perl-JSON-DWIW
|
||||
#
|
||||
# Copyright (c) 2011 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.
|
||||
|
||||
Name: perl-%cpan_name
|
||||
Version: 0.27
|
||||
Release: 1
|
||||
Provides: %cpan_name
|
||||
Requires: perl = %{perl_version}
|
||||
Group: Development/Libraries/Perl
|
||||
License: Artistic
|
||||
URL: http://search.cpan.org/dist/JSON-DWIW/
|
||||
Summary: JSON converter that Does What I Want
|
||||
Source: %cpan_name-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
|
||||
Name: perl-JSON-DWIW
|
||||
Version: 0.47
|
||||
Release: 1
|
||||
License: GPL-1.0+ or Artistic-1.0
|
||||
%define cpan_name JSON-DWIW
|
||||
Summary: JSON converter that Does What I Want
|
||||
Url: http://search.cpan.org/dist/JSON-DWIW/
|
||||
Group: Development/Libraries/Perl
|
||||
Source: http://www.cpan.org/authors/id/D/DO/DOWENS/%{cpan_name}-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
%{perl_requires}
|
||||
|
||||
%description
|
||||
Other JSON modules require setting several parameters before calling the
|
||||
conversion methods to do what I want. This module does things by default
|
||||
that I think should be done when working with JSON in Perl. This module
|
||||
also encodes and decodes faster than JSON.pm and JSON::Syck in my benchmarks.
|
||||
also encodes and decodes faster than the JSON manpage.pm and the JSON::Syck
|
||||
manpage in my benchmarks.
|
||||
|
||||
This means that any piece of data in Perl (assuming it's valid unicode) will
|
||||
get converted to something in JSON instead of throwing an exception. It also
|
||||
means that output will be strict JSON, while accepted input will be flexible,
|
||||
without having to set any options.
|
||||
This means that any piece of data in Perl (assuming it's valid unicode)
|
||||
will get converted to something in JSON instead of throwing an exception.
|
||||
It also means that output will be strict JSON, while accepted input will be
|
||||
flexible, without having to set any options.
|
||||
|
||||
For a list of changes in recent versions, see the documentation for the
|
||||
JSON::DWIW::Changes manpage.
|
||||
|
||||
This module can be downloaded from the
|
||||
http://www.cpan.org/authors/id/D/DO/DOWENS/ manpage.
|
||||
|
||||
%prep
|
||||
%setup -q -n %cpan_name-%{version}
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
|
||||
%build
|
||||
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
|
||||
make
|
||||
make test
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
||||
%{__make} %{?_smp_mflags}
|
||||
|
||||
%check
|
||||
%{__make} test
|
||||
|
||||
%install
|
||||
make DESTDIR=$RPM_BUILD_ROOT install_vendor
|
||||
%perl_make_install
|
||||
%perl_process_packlist
|
||||
%perl_gen_filelist
|
||||
|
||||
%clean
|
||||
# clean up the hard disc after build
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
%{__rm} -rf %{buildroot}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc %{_mandir}/man?/*
|
||||
%{perl_vendorarch}/JSON
|
||||
%{perl_vendorarch}/auto/JSON
|
||||
/var/adm/perl-modules/%{name}
|
||||
%doc WhatsNew README
|
||||
|
||||
%changelog -n %{name}
|
||||
* Sun Oct 26 2008 - gerrit.beine@gmx.de
|
||||
- first release 0.27
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root,755)
|
||||
%doc Artistic README WhatsNew
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user