From 59a7124c818dc10a614d89a67b528ce110c04a52 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Jun 09 2014 08:44:42 +0000 Subject: import perl516-perl-JSON-PP-2.27203-1.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f6f3fa3 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/JSON-PP-2.27203.tar.gz diff --git a/.perl516-perl-JSON-PP.metadata b/.perl516-perl-JSON-PP.metadata new file mode 100644 index 0000000..ab1eaa7 --- /dev/null +++ b/.perl516-perl-JSON-PP.metadata @@ -0,0 +1 @@ +7659cd8b58ed42eae2c069f3181a8436c65ba895 SOURCES/JSON-PP-2.27203.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index ce46a88..0000000 --- a/README.md +++ /dev/null @@ -1,5 +0,0 @@ -\ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SPECS/perl-JSON-PP.spec b/SPECS/perl-JSON-PP.spec new file mode 100644 index 0000000..2f93431 --- /dev/null +++ b/SPECS/perl-JSON-PP.spec @@ -0,0 +1,89 @@ +%{?scl:%scl_package perl-JSON-PP} +%{!?scl:%global pkg_name %{name}} + +Name: %{?scl_prefix}perl-JSON-PP +Version: 2.27203 +Release: 1%{?dist} +Summary: JSON::XS compatible pure-Perl module +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/JSON-PP/ +Source0: http://search.cpan.org/CPAN/authors/id/M/MA/MAKAMAKA/JSON-PP-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-%{release}-root-%(id -nu) +BuildArch: noarch +BuildRequires: %{?scl_prefix}perl(B) +BuildRequires: %{?scl_prefix}perl(base) +BuildRequires: %{?scl_prefix}perl(bytes) +BuildRequires: %{?scl_prefix}perl(Carp) +BuildRequires: %{?scl_prefix}perl(constant) +BuildRequires: %{?scl_prefix}perl(Data::Dumper) +BuildRequires: %{?scl_prefix}perl(Exporter) +BuildRequires: %{?scl_prefix}perl(ExtUtils::MakeMaker) +BuildRequires: %{?scl_prefix}perl(Getopt::Long) +BuildRequires: %{?scl_prefix}perl(lib) +BuildRequires: %{?scl_prefix}perl(Math::BigFloat) +BuildRequires: %{?scl_prefix}perl(Math::BigInt) +BuildRequires: %{?scl_prefix}perl(overload) +BuildRequires: %{?scl_prefix}perl(strict) +BuildRequires: %{?scl_prefix}perl(Test::More) +BuildRequires: %{?scl_prefix}perl(Tie::IxHash) +BuildRequires: %{?scl_prefix}perl(utf8) +%{?scl:%global perl_version %(scl enable %{scl} 'eval "`%{__perl} -V:version`"; echo $version')} +%{!?scl:%global perl_version %(eval "`%{__perl} -V:version`"; echo $version)} +Requires: %{?scl_prefix}perl(:MODULE_COMPAT_%{perl_version}) +Requires: %{?scl_prefix}perl(Data::Dumper) +Requires: %{?scl_prefix}perl(Math::BigFloat) +Requires: %{?scl_prefix}perl(Math::BigInt) +Requires: %{?scl_prefix}perl(utf8) +Conflicts: %{?scl_prefix}perl-JSON < 2.50 + +%description +JSON::XS is the fastest and most proper JSON module on CPAN. It is written by +Marc Lehmann in C, so must be compiled and installed in the used environment. + +JSON::PP is a pure-Perl module and is compatible with JSON::XS. + +%prep +%setup -q -n JSON-PP-%{version} + +%build +%{?scl:scl enable %{scl} "} +perl Makefile.PL INSTALLDIRS=vendor +%{?scl:"} +%{?scl:scl enable %{scl} "} +make %{?_smp_mflags} +%{?scl:"} + +%install +rm -rf %{buildroot} +%{?scl:scl enable %{scl} "} +make pure_install DESTDIR=%{buildroot} +%{?scl:"} +find %{buildroot} -type f -name .packlist -exec rm -f {} \; +%{_fixperms} %{buildroot} + +%check +%{?scl:scl enable %{scl} "} +make test +%{?scl:"} + +%clean +rm -rf %{buildroot} + +%files +%doc Changes README +%{_bindir}/json_pp +%{perl_vendorlib}/JSON/ +%{_mandir}/man1/json_pp.1* +%{_mandir}/man3/JSON::PP.3pm* +%{_mandir}/man3/JSON::PP::Boolean.3pm* + +%changelog +* Wed Nov 13 2013 Jitka Plesnikova - 2.27203-1 +- 2.27203 bump + +* Mon May 20 2013 Jitka Plesnikova - 2.27202-1 +- 2.27202 bump + +* Thu Feb 14 2013 Jitka Plesnikova - 2.27200-100 +- SCL package - initial import