rpms/perl-JSON-XS/FC-5 perl-JSON-XS.spec,NONE,1.1 sources,1.1,1.2

Chris Weyl (cweyl) fedora-extras-commits at redhat.com
Tue May 15 04:59:18 UTC 2007


Author: cweyl

Update of /cvs/extras/rpms/perl-JSON-XS/FC-5
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv32625

Modified Files:
	sources 
Added Files:
	perl-JSON-XS.spec 
Log Message:
pseudo-branch of perl-JSON-XS to FC-5


--- NEW FILE perl-JSON-XS.spec ---
Name:           perl-JSON-XS
Version:        1.21
Release:        3%{?dist}
Summary:        JSON serialising/deserialising, done correctly and fast
License:        GPL or Artistic 
Group:          Development/Libraries
URL:            http://search.cpan.org/dist/JSON-XS/
Source0:        http://www.cpan.org/authors/id/M/ML/MLEHMANN/JSON-XS-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

# core
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(Test::More)


%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}

sed -i 's/\r//' t/*
perl -pi -e 's|^#! ?perl|#!/usr/bin/perl|' t/*
perl -pi -e 's|^#!/opt/bin/perl|#!/usr/bin/perl|' eg/*
chmod -c -x eg/*

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
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} -type f -name '*.bs' -size 0 -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,-)
%doc Changes COPYING README t/ eg/
%{perl_vendorarch}/auto/*
%{perl_vendorarch}/JSON*
%{_mandir}/man3/*

%changelog
* Mon May 14 2007 Chris Weyl <cweyl at alumni.drew.edu> 1.21-3
- bump

* Mon May 14 2007 Chris Weyl <cweyl at alumni.drew.edu> 1.21-2
- add eg/ to doc

* Sun May 13 2007 Chris Weyl <cweyl at alumni.drew.edu> 1.21-1
- Specfile autogenerated by cpanspec 1.71.


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/perl-JSON-XS/FC-5/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	15 May 2007 04:40:37 -0000	1.1
+++ sources	15 May 2007 04:58:43 -0000	1.2
@@ -0,0 +1 @@
+e799b7430e34728ed5a57f91a49685fa  JSON-XS-1.21.tar.gz




More information about the fedora-extras-commits mailing list