Name: perl-JSON-XS Version: 2.2222 Release: 1%{?dist} Summary: JSON serialising/deserialising, done correctly and fast License: Distributable, see COPYING Group: Development/Libraries URL: http://search.cpan.org/dist/JSON-XS/ Source0: http://www.cpan.org/modules/by-module/JSON/JSON-XS-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: perl(ExtUtils::MakeMaker) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description This module converts Perl data structures to JSON and vice versa. Its primary goal is to be correct and its secondary goal is to be fast. To reach the latter goal it was written in C. %prep %setup -q -n JSON-XS-%{version} %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' -size 0 -exec rm -f {} \; find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; %{_fixperms} $RPM_BUILD_ROOT/* %check make test %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc Changes COPYING README %{perl_vendorarch}/auto/* %{perl_vendorarch}/JSON* %{_mandir}/man3/* %changelog * Tue Mar 25 2008 Dave Cross 2.1-1 - Specfile autogenerated by cpanspec 1.74.