Christian Wittmer 2010-11-11 17:56:12 +00:00 committed by Git OBS Bridge
parent 76d344006e
commit 2b49cf8d5f
4 changed files with 59 additions and 32 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8cd216c03340d3ef3971c170c3a04c16501d79183a0b0c7948dff8770275da15
size 19107

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8ed0d905eb95d1b34d412902d383b9719bb9c7bde9e6d5033a21e9c40c9dbb4c
size 18634

View File

@ -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 Thu Aug 26 19:00:34 UTC 2010 - pascal.bleser@opensuse.org

View File

@ -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 # norootforbuild
Name: perl-Test-Requires Name: perl-Test-Requires
Version: 0.05 %define cpan_name Test-Requires
Release: 0
Summary: Checks to see if the module can be loaded 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 Version: 0.06
URL: http://search.cpan.org/dist/Test-Requires Release: 1
License: GPL+ or Artistic
Group: Development/Libraries/Perl Group: Development/Libraries/Perl
License: Perl License Url: http://search.cpan.org/dist/Test-Requires/
BuildRoot: %{_tmppath}/build-%{name}-%{version} #Source: http://search.cpan.org/CPAN/authors/id/T/TO/TOKUHIROM/Test-Requires-0.06.tar.gz
Requires: perl = %{perl_version} Source: %{cpan_name}-%{version}.tar.bz2
BuildRequires: make perl BuildArch: noarch
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42 BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
%if 0%{?suse_version} < 1120
BuildRequires: perl-macros
%endif
BuildRequires: perl(Test::More) >= 0.61 BuildRequires: perl(Test::More) >= 0.61
Requires: perl = %{perl_version}
Requires: perl(Test::More) >= 0.61 Requires: perl(Test::More) >= 0.61
%description %description
Test::Requires checks to see if the module can be loaded. Test::Requires checks to see if the module can be loaded.
If this fails rather than failing tests this skips all tests.
%prep %prep
%setup -q -n "Test-Requires-%{version}" %setup -q -n %{cpan_name}-%{version}
%__sed -i '/^auto_install/d' Makefile.PL
%build %build
%__perl Makefile.PL PREFIX="%{_prefix}" %{__perl} Makefile.PL INSTALLDIRS=vendor
%__make %{?jobs:-j%{jobs}} %{__make} %{?_smp_mflags}
%install
%perl_make_install
%perl_process_packlist
%check %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 %clean
%{?buildroot:%__rm -rf "%{buildroot}"} %{__rm} -rf $RPM_BUILD_ROOT
%files %files -f %{name}.files
%defattr(-,root,root) %defattr(-,root,root,-)
%doc Changes README %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