- regenerate with current template
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Test-Without-Module?expand=0&rev=5
This commit is contained in:
parent
bf32ba5371
commit
c9826192e1
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Aug 5 18:43:54 UTC 2013 - coolo@suse.com
|
||||
|
||||
- regenerate with current template
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 1 06:55:45 UTC 2010 - coolo@novell.com
|
||||
|
||||
|
@ -1,55 +1,62 @@
|
||||
# vim: set sw=4 ts=4 et nu:
|
||||
# norootforbuild
|
||||
#
|
||||
# spec file for package perl-Test-Without-Module
|
||||
#
|
||||
# Copyright (c) 2013 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-Test-Without-Module
|
||||
Version: 0.17
|
||||
Release: 0
|
||||
%define cpan_name Test-Without-Module
|
||||
Summary: Test fallback behaviour in absence of modules
|
||||
Source: http://search.cpan.org/CPAN/authors/id/C/CO/CORION/Test-Without-Module-%{version}.tar.gz
|
||||
URL: http://search.cpan.org/dist/Test-Without-Module/
|
||||
License: Artistic-1.0 or GPL-1.0+
|
||||
Group: Development/Libraries/Perl
|
||||
License: Perl License
|
||||
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
||||
%{perl_requires}
|
||||
BuildRequires: make perl
|
||||
Url: http://search.cpan.org/dist/Test-Without-Module/
|
||||
Source: http://www.cpan.org/authors/id/C/CO/CORION/%{cpan_name}-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: perl(Test::Pod)
|
||||
BuildRequires: perl(File::Slurp)
|
||||
#BuildRequires: perl(My::Module)
|
||||
#BuildRequires: perl(Test::Pod)
|
||||
#BuildRequires: perl(Test::Without::Module)
|
||||
%{perl_requires}
|
||||
|
||||
%description
|
||||
This module allows you to deliberately hide modules from a program even though
|
||||
they are installed. This is mostly useful for testing modules that have a
|
||||
fallback when a certain dependency module is not installed.
|
||||
This module allows you to deliberately hide modules from a program even
|
||||
though they are installed. This is mostly useful for testing modules that
|
||||
have a fallback when a certain dependency module is not installed.
|
||||
|
||||
%prep
|
||||
%setup -q -n "Test-Without-Module-%{version}"
|
||||
%__sed -i '/^auto_install/d' Makefile.PL
|
||||
|
||||
%__sed -i 's/\r$//' Changes README
|
||||
%__chmod 0644 Changes README
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
find . -type f -print0 | xargs -0 chmod 644
|
||||
|
||||
%build
|
||||
%__perl Makefile.PL PREFIX="%{_prefix}"
|
||||
%__make %{?jobs:-j%{jobs}}
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
%{__make} %{?_smp_mflags}
|
||||
|
||||
%check
|
||||
%{__make} test
|
||||
|
||||
%install
|
||||
%perl_make_install
|
||||
%perl_process_packlist
|
||||
%perl_gen_filelist
|
||||
|
||||
%check
|
||||
%__make test
|
||||
|
||||
%clean
|
||||
%{?buildroot:%__rm -rf "%{buildroot}"}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc Changes README
|
||||
%dir %{perl_vendorlib}/Test
|
||||
%dir %{perl_vendorlib}/Test/Without
|
||||
%{perl_vendorlib}/Test/Without/Module.pm
|
||||
%dir %{perl_vendorarch}/auto/Test
|
||||
%dir %{perl_vendorarch}/auto/Test/Without
|
||||
%{perl_vendorarch}/auto/Test/Without/Module
|
||||
%doc %{perl_man3dir}/Test::Without::Module.%{perl_man3ext}%{ext_man}
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root,755)
|
||||
%doc Changes MANIFEST.skip README
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user