2007-04-25 20:22:31 +00:00
|
|
|
Name: perl-JSON
|
2007-05-09 14:43:33 +00:00
|
|
|
Version: 1.13
|
2007-05-05 20:23:14 +00:00
|
|
|
Release: 1%{?dist}
|
2007-04-25 20:22:31 +00:00
|
|
|
Summary: Parse and convert to JSON (JavaScript Object Notation)
|
|
|
|
License: GPL or Artistic
|
|
|
|
Group: Development/Libraries
|
|
|
|
URL: http://search.cpan.org/dist/JSON/
|
|
|
|
Source0: http://www.cpan.org/authors/id/M/MA/MAKAMAKA/JSON-%{version}.tar.gz
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
BuildArch: noarch
|
2007-05-05 20:23:14 +00:00
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
|
|
|
|
|
# core
|
2007-04-25 20:22:31 +00:00
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
2007-05-05 20:23:14 +00:00
|
|
|
# cpan
|
2007-04-25 20:22:31 +00:00
|
|
|
BuildRequires: perl(HTTP::Request)
|
|
|
|
BuildRequires: perl(HTTP::Response)
|
|
|
|
# tests, etc
|
|
|
|
BuildRequires: perl(CGI)
|
|
|
|
BuildRequires: perl(LWP::UserAgent)
|
|
|
|
BuildRequires: perl(HTTP::Daemon)
|
|
|
|
BuildRequires: perl(Test::More)
|
|
|
|
BuildRequires: perl(Scalar::Util)
|
|
|
|
|
|
|
|
# not picked up due to eval { requires ... } constructs
|
|
|
|
Requires: perl(Scalar::Util)
|
|
|
|
Requires: perl(LWP::UserAgent)
|
|
|
|
Requires: perl(HTTP::Daemon)
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
This module converts between JSON (JavaScript Object Notation) and Perl
|
|
|
|
data structure into each other. For JSON, See to
|
|
|
|
http://www.crockford.com/JSON/.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n JSON-%{version}
|
|
|
|
|
2007-05-05 20:23:14 +00:00
|
|
|
# make rpmlint happy...
|
2007-04-25 20:22:31 +00:00
|
|
|
find . -type f -exec chmod -c -x {} \;
|
2007-05-05 20:23:14 +00:00
|
|
|
sed -i 's/\r//' README t/*.t
|
2007-04-25 20:22:31 +00:00
|
|
|
|
2007-05-05 20:23:14 +00:00
|
|
|
# Filter unwanted Provides:
|
|
|
|
cat << \EOF > %{name}-prov
|
|
|
|
#!/bin/sh
|
|
|
|
%{__perl_provides} $* |\
|
|
|
|
sed -e '/perl(My.*)/d'
|
|
|
|
EOF
|
|
|
|
|
|
|
|
%define __perl_provides %{_builddir}/JSON-%{version}/%{name}-prov
|
|
|
|
chmod +x %{__perl_provides}
|
2007-04-25 20:22:31 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
make pure_install PERL_INSTALL_ROOT=%{buildroot}
|
|
|
|
|
|
|
|
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
|
|
|
|
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
|
|
|
|
|
|
|
|
%{_fixperms} %{buildroot}/*
|
|
|
|
|
|
|
|
%check
|
|
|
|
make test
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2007-05-05 20:23:14 +00:00
|
|
|
%doc Changes README t/
|
2007-04-25 20:22:31 +00:00
|
|
|
%{perl_vendorlib}/*
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
|
|
|
%changelog
|
2007-05-09 14:43:33 +00:00
|
|
|
* Wed May 09 2007 Chris Weyl <cweyl@alumni.drew.edu> 1.13-1
|
|
|
|
- update to 1.13
|
|
|
|
|
2007-05-05 20:23:14 +00:00
|
|
|
* Fri May 04 2007 Chris Weyl <cweyl@alumni.drew.edu> 1.12-1
|
|
|
|
- update to 1.12
|
|
|
|
- add t/ to %%doc
|
|
|
|
|
2007-04-25 20:24:26 +00:00
|
|
|
* Wed Apr 25 2007 Chris Weyl <cweyl@alumni.drew.edu> 1.11-2
|
|
|
|
- bump
|
|
|
|
|
2007-04-25 20:22:31 +00:00
|
|
|
* Tue Apr 24 2007 Chris Weyl <cweyl@alumni.drew.edu> 1.11-1
|
|
|
|
- update to 1.11
|
|
|
|
|
|
|
|
* Wed Apr 18 2007 Chris Weyl <cweyl@alumni.drew.edu> 1.10-1
|
|
|
|
- Specfile autogenerated by cpanspec 1.69.1.
|