diff --git a/Test-Requires-0.05.tar.gz b/Test-Requires-0.05.tar.gz deleted file mode 100644 index 5cf8ea8..0000000 --- a/Test-Requires-0.05.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8cd216c03340d3ef3971c170c3a04c16501d79183a0b0c7948dff8770275da15 -size 19107 diff --git a/Test-Requires-0.06.tar.bz2 b/Test-Requires-0.06.tar.bz2 new file mode 100644 index 0000000..8d8ee9a --- /dev/null +++ b/Test-Requires-0.06.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8ed0d905eb95d1b34d412902d383b9719bb9c7bde9e6d5033a21e9c40c9dbb4c +size 18634 diff --git a/perl-Test-Requires.changes b/perl-Test-Requires.changes index acf22d4..39acf0d 100644 --- a/perl-Test-Requires.changes +++ b/perl-Test-Requires.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Thu Nov 11 17:54:01 UTC 2010 - chris@computersalat.de + +- update to 0.06 + - support Perl 5.6.0 or later. Because Mouse need to support it. + (gfx) +- noarch pkg + ------------------------------------------------------------------- Thu Aug 26 19:00:34 UTC 2010 - pascal.bleser@opensuse.org diff --git a/perl-Test-Requires.spec b/perl-Test-Requires.spec index 7fc552d..6937eae 100644 --- a/perl-Test-Requires.spec +++ b/perl-Test-Requires.spec @@ -1,50 +1,69 @@ -# vim: set sw=4 ts=4 et nu: +# +# spec file for package perl-Test-Requires (Version 0.06) +# +# Copyright (c) 2010 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/ +# + # norootforbuild Name: perl-Test-Requires -Version: 0.05 -Release: 0 +%define cpan_name Test-Requires Summary: Checks to see if the module can be loaded -Source: http://search.cpan.org/CPAN/authors/id/T/TO/TOKUHIROM/Test-Requires-%{version}.tar.gz -URL: http://search.cpan.org/dist/Test-Requires +Version: 0.06 +Release: 1 +License: GPL+ or Artistic Group: Development/Libraries/Perl -License: Perl License -BuildRoot: %{_tmppath}/build-%{name}-%{version} -Requires: perl = %{perl_version} -BuildRequires: make perl -BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42 +Url: http://search.cpan.org/dist/Test-Requires/ +#Source: http://search.cpan.org/CPAN/authors/id/T/TO/TOKUHIROM/Test-Requires-0.06.tar.gz +Source: %{cpan_name}-%{version}.tar.bz2 +BuildArch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: perl +%if 0%{?suse_version} < 1120 +BuildRequires: perl-macros +%endif BuildRequires: perl(Test::More) >= 0.61 +Requires: perl = %{perl_version} Requires: perl(Test::More) >= 0.61 %description Test::Requires checks to see if the module can be loaded. -If this fails rather than failing tests this skips all tests. - %prep -%setup -q -n "Test-Requires-%{version}" -%__sed -i '/^auto_install/d' Makefile.PL +%setup -q -n %{cpan_name}-%{version} %build -%__perl Makefile.PL PREFIX="%{_prefix}" -%__make %{?jobs:-j%{jobs}} -%install -%perl_make_install -%perl_process_packlist +%{__perl} Makefile.PL INSTALLDIRS=vendor +%{__make} %{?_smp_mflags} %check -%__make test +%{__make} test + +%install +%perl_make_install +# do not perl_process_packlist (noarch) +# remove .packlist file +%{__rm} -rf $RPM_BUILD_ROOT%perl_vendorarch +# remove perllocal.pod file +%{__rm} -rf $RPM_BUILD_ROOT%perl_archlib +%perl_gen_filelist %clean -%{?buildroot:%__rm -rf "%{buildroot}"} +%{__rm} -rf $RPM_BUILD_ROOT -%files -%defattr(-,root,root) +%files -f %{name}.files +%defattr(-,root,root,-) %doc Changes README -%dir %{perl_vendorlib}/Test -%{perl_vendorlib}/Test/Requires.pm -%dir %{perl_vendorarch}/auto/Test -%{perl_vendorarch}/auto/Test/Requires -%doc %{perl_man3dir}/Test::Requires.%{perl_man3ext}%{ext_man} -/var/adm/perl-modules/%{name} +%changelog