Chris Weyl d540c20
Name:           perl-JSON-XS
Chris Weyl 98eb6eb
Version:        1.43
Chris Weyl 9c2474e
Release:        1%{?dist}
Chris Weyl d540c20
Summary:        JSON serialising/deserialising, done correctly and fast
Chris Weyl d540c20
License:        GPL or Artistic 
Chris Weyl d540c20
Group:          Development/Libraries
Chris Weyl d540c20
URL:            http://search.cpan.org/dist/JSON-XS/
Chris Weyl d540c20
Source0:        http://www.cpan.org/authors/id/M/ML/MLEHMANN/JSON-XS-%{version}.tar.gz
Chris Weyl d540c20
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Chris Weyl d540c20
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Chris Weyl d540c20
Chris Weyl d540c20
# core
Chris Weyl d540c20
BuildRequires:  perl(ExtUtils::MakeMaker)
Chris Weyl d540c20
BuildRequires:  perl(Test::More)
Chris Weyl d540c20
Chris Weyl d540c20
Chris Weyl d540c20
%description
Chris Weyl d540c20
This module converts Perl data structures to JSON and vice versa. Its
Chris Weyl d540c20
primary goal is to be correct and its secondary goal is to be fast. To
Chris Weyl d540c20
reach the latter goal it was written in C.
Chris Weyl d540c20
Chris Weyl d540c20
%prep
Chris Weyl d540c20
%setup -q -n JSON-XS-%{version}
Chris Weyl d540c20
Chris Weyl d540c20
sed -i 's/\r//' t/*
Chris Weyl d540c20
perl -pi -e 's|^#! ?perl|#!/usr/bin/perl|' t/*
Chris Weyl d540c20
perl -pi -e 's|^#!/opt/bin/perl|#!/usr/bin/perl|' eg/*
Chris Weyl d540c20
chmod -c -x eg/*
Chris Weyl d540c20
Chris Weyl d540c20
%build
Chris Weyl d540c20
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
Chris Weyl d540c20
make %{?_smp_mflags}
Chris Weyl d540c20
Chris Weyl d540c20
%install
Chris Weyl d540c20
rm -rf %{buildroot}
Chris Weyl d540c20
Chris Weyl d540c20
make pure_install PERL_INSTALL_ROOT=%{buildroot}
Chris Weyl d540c20
Chris Weyl d540c20
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
Chris Weyl d540c20
find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} \;
Chris Weyl d540c20
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
Chris Weyl d540c20
Chris Weyl d540c20
%{_fixperms} %{buildroot}/*
Chris Weyl d540c20
Chris Weyl d540c20
%check
Chris Weyl d540c20
make test
Chris Weyl d540c20
Chris Weyl d540c20
%clean
Chris Weyl d540c20
rm -rf %{buildroot}
Chris Weyl d540c20
Chris Weyl d540c20
%files
Chris Weyl d540c20
%defattr(-,root,root,-)
Chris Weyl d540c20
%doc Changes COPYING README t/ eg/
Chris Weyl d540c20
%{perl_vendorarch}/auto/*
Chris Weyl d540c20
%{perl_vendorarch}/JSON*
Chris Weyl d540c20
%{_mandir}/man3/*
Chris Weyl d540c20
Chris Weyl d540c20
%changelog
Chris Weyl 98eb6eb
* Thu Aug 09 2007 Chris Weyl <cweyl@alumni.drew.edu> 1.43-1
Chris Weyl 98eb6eb
- update to 1.43
Chris Weyl 98eb6eb
Chris Weyl 9c2474e
* Fri Jun 01 2007 Chris Weyl <cweyl@alumni.drew.edu> 1.22-1
Chris Weyl 9c2474e
- update to 1.22
Chris Weyl 9c2474e
Chris Weyl 08f551e
* Mon May 14 2007 Chris Weyl <cweyl@alumni.drew.edu> 1.21-3
Chris Weyl 08f551e
- bump
Chris Weyl 08f551e
Chris Weyl d540c20
* Mon May 14 2007 Chris Weyl <cweyl@alumni.drew.edu> 1.21-2
Chris Weyl d540c20
- add eg/ to doc
Chris Weyl d540c20
Chris Weyl d540c20
* Sun May 13 2007 Chris Weyl <cweyl@alumni.drew.edu> 1.21-1
Chris Weyl d540c20
- Specfile autogenerated by cpanspec 1.71.