[suggest] perl-JSON

Al Pacifico adpacifico at users.sourceforge.net
Tue Sep 26 19:12:05 CEST 2006


Name:           perl-JSON
Version:        1.07
Release:        1%{?dist}
Summary:        Converts Perl data to and from JavaScript Object Notation

Group:          Development/Libraries
License:        GPL or Artistic
URL:            http://search.cpan.org/dist/JSON/
Source0:
http://search.cpan.org/CPAN/authors/id/M/MA/MAKAMAKA/JSON-1.07.tar.gz

BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u}
-n)

BuildArch:      noarch
BuildRequires:  perl
BuildRequires:  perl(HTTP::Request)
BuildRequires:  perl(HTTP::Response)
BuildRequires:  dos2unix
Requires:  perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo
$version))
Requires:  perl(HTTP::Request)
Requires:  perl(HTTP::Response)

%description
JSON (JavaScript Object Notation) is a lightweight data-interchange format.
It
is easy for humans to read and write. It is easy for machines to parse and
generate. It is based on a subset of the JavaScript Programming Language,
Standard ECMA-262 3rd Edition - December 1999. JSON is a text format that is

completely language independent but uses conventions that are familiar to
programmers of the C-family of languages, including C, C++, C#, Java,
JavaScript, Perl, Python, and many others. These properties make JSON an
ideal
data-interchange language.

This module converts between JSON (JavaScript Object Notation) and Perl data
structure into each other. For JSON, see http://www.json.org/

%prep
%setup -q -n JSON-%{version}
# directories have wrong permissions, as this tarball was created on Win32
find ./ -type d -exec chmod go=rx {} \;
# files have execute bit set, as this tarball was created on Win32
# rpmlint complains about it, so fix it
find ./ -type f -exec chmod a-x {} \;
# make end-of-line encoding Unix-ish, for top-level text files only
find ./ -maxdepth 1 -type f -exec dos2unix {} \;


%build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
make %{?_smp_mflags}


%install
rm -rf $RPM_BUILD_ROOT
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
find $RPM_BUILD_ROOT -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
chmod -R u+w $RPM_BUILD_ROOT/*


%check
make test


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc README Changes
%{perl_vendorlib}/*
%doc %{_mandir}/man3/*.3*


%changelog
* Sun Sep 03 2006 Al Pacifico < adpacifico at users.sourceforge.net> - 1.07-1
- Initial packaging, using fedora-newrpmspec to generate .spec template


-- 
Al Pacifico
Seattle, WA
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.repoforge.org/pipermail/users/attachments/20060926/f754aac1/attachment-0004.html>


More information about the users mailing list