Chris Weyl d540c20
Name:           perl-JSON-XS
Chris Weyl 05c27d8
Version:        2.21
Chris Weyl be8ffb5
Release:        1%{?dist}
Chris Weyl d540c20
Summary:        JSON serialising/deserialising, done correctly and fast
Chris Weyl 6efe062
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 be8ffb5
find %{buildroot} -type f -name .packlist -exec rm -f {} +
Chris Weyl be8ffb5
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 05c27d8
* Wed Jun 25 2008 Chris Weyl <cweyl@alumni.drew.edu> 2.21-1
Chris Weyl 05c27d8
- update to 2.21
Chris Weyl 05c27d8
Chris Weyl 05c27d8
* Wed May 28 2008 Chris Weyl <cweyl@alumni.drew.edu> 2.2-1
Chris Weyl 05c27d8
- update to 2.2
Chris Weyl 05c27d8
Chris Weyl be8ffb5
* Sun Mar 09 2008 Chris Weyl <cweyl@alumni.drew.edu> 2.01-1
Chris Weyl be8ffb5
- update to 2.x series before F9
Chris Weyl be8ffb5
bf872ff
* Thu Mar 06 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.52-3
bf872ff
Rebuild for new perl
bf872ff
586ec90
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.52-2
586ec90
- Autorebuild for GCC 4.3
586ec90
Chris Weyl 6efe062
* Wed Oct 17 2007 Chris Weyl <cweyl@alumni.drew.edu> 1.52-1
Chris Weyl 6efe062
- update to 1.52
Chris Weyl 6efe062
- license tag update: GPL -> GPL+
Chris Weyl 6efe062
Chris Weyl dfccfe3
* Tue Aug 21 2007 Chris Weyl <cweyl@alumni.drew.edu> 1.43-2
Chris Weyl dfccfe3
- bump
Chris Weyl dfccfe3
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.