Files
perl-Log-Report-Optional/perl-Log-Report-Optional.spec

75 lines
2.3 KiB
RPMSpec
Raw Normal View History

#
# spec file for package perl-Log-Report-Optional
#
# Copyright (c) 2016 SUSE LINUX 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-Log-Report-Optional
Version: 1.02
Release: 0
%define cpan_name Log-Report-Optional
Summary: Log::Report or ::Minimal
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Log-Report-Optional/
Source0: http://www.cpan.org/authors/id/M/MA/MARKOV/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(String::Print) >= 0.13
BuildRequires: perl(Test::More) >= 0.86
Requires: perl(String::Print) >= 0.13
Requires: perl(Test::More) >= 0.86
%{perl_requires}
%description
This module will allow libraries (helper modules) to have a dependency to a
small module instead of the full Log-Report distribution. The full power of
'Log::Report' is only released when the main program uses that module. In
that case, the module using the 'Optional' will also use the full
Log::Report, otherwise the dressed-down Log::Report::Minimal version.
For the full documentation:
* * see Log::Report when it is used by main
* * see Log::Report::Minimal otherwise
The latter provides the same functions from the former, but is the
simpelest possible way.
%prep
%setup -q -n %{cpan_name}-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
%check
%{__make} test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc ChangeLog README
%changelog