diff --git a/perl-JSON-Parse.changes b/perl-JSON-Parse.changes index 053e931..8a75db4 100644 --- a/perl-JSON-Parse.changes +++ b/perl-JSON-Parse.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Fri Aug 26 22:38:35 UTC 2011 - chris@computersalat.de + +- cpanspec +- fix build for CentOS, SLE_10, SLE_11 +- fix deps + + perl(Test::More) >= 0.88 + ------------------------------------------------------------------- Sat Jun 11 00:25:57 CET 2011 - pascal.bleser@opensuse.org diff --git a/perl-JSON-Parse.spec b/perl-JSON-Parse.spec index 2488c1f..089ca16 100644 --- a/perl-JSON-Parse.spec +++ b/perl-JSON-Parse.spec @@ -1,47 +1,65 @@ -# vim: set sw=4 ts=4 et nu: +# +# spec file for package perl-JSON-Parse +# +# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Name: perl-JSON-Parse Version: 0.07 -Release: 0 +Release: 1 +License: GPL+ or Artistic +%define cpan_name JSON-Parse Summary: Convert JSON into a Perl variable -Source: http://search.cpan.org/CPAN/authors/id/B/BK/BKB/JSON-Parse-%{version}.tar.gz -URL: http://search.cpan.org/dist/JSON-Parse +Url: http://search.cpan.org/dist/JSON-Parse/ Group: Development/Libraries/Perl -License: GNU General Public License version 2 or later or Artistic (GPLv2+ or Artistic) -BuildRoot: %{_tmppath}/build-%{name}-%{version} -%{perl_requires} -BuildRequires: gcc glibc-devel bison flex +Source: http://www.cpan.org/authors/id/B/BK/BKB/%{cpan_name}-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: glibc-devel +BuildRequires: perl BuildRequires: perl-macros -BuildRequires: make -BuildRequires: perl(ExtUtils::MakeMaker) +%if 0%{suse_version} >= 1120 +BuildRequires: perl(Test::More) >= 0.88 +%endif +%{perl_requires} %description Convert JSON (JavaScript Object Notation) into Perl. %prep -%setup -q -n "JSON-Parse-%{version}" -%__sed -i '/^auto_install/d' Makefile.PL +%setup -q -n %{cpan_name}-%{version} +%if 0%{?suse_version} < 1120 || 0%{?rhel_version} || 0%{?centos_version} + %{__perl} -p -i\ + -e 's|(use Test::More);|\1 qw(no_plan);|,s|(done_testing.*)|#\1|' t/JSON-Parse.t +%endif %build -%__perl Makefile.PL PREFIX="%{_prefix}" -%__make %{?_smp_flags} +%{__perl} Makefile.PL INSTALLDIRS=vendor +%{__make} %{?_smp_mflags} + +%check +%{__make} test %install %perl_make_install %perl_process_packlist - -%check -%__make test +%perl_gen_filelist %clean -%{?buildroot:%__rm -rf "%{buildroot}"} +%{__rm} -rf %{buildroot} -%files -%defattr(-,root,root) +%files -f %{name}.files +%defattr(-,root,root,755) %doc Changes -%dir %{perl_vendorarch}/JSON -%{perl_vendorarch}/JSON/Parse.pm -%dir %{perl_vendorarch}/auto/JSON -%{perl_vendorarch}/auto/JSON/Parse -%doc %{perl_man3dir}/JSON::Parse.%{perl_man3ext}%{ext_man} +%changelog