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