8
0
Files
perl-Module-Info/perl-Module-Info.spec

75 lines
2.0 KiB
RPMSpec
Raw Normal View History

#
# spec file for package perl-Module-Info (Version 0.31)
#
# 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-Module-Info
%define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' )
Summary: Information about Perl modules
Version: 0.31
Release: 77
License: Artistic
Group: Development/Languages/Perl
Url: http://search.cpan.org/dist/Module-Info/
Source: %{cpan_name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Test::Pod) >= 1.00
BuildRequires: perl(Test::Pod::Coverage) >= 1.00
#
BuildRequires: perl(File::Spec) >= 0.08
Requires: perl = %{perl_version}
Requires: perl(File::Spec) >= 0.08
Provides: %{cpan_name}
%description
Module::Info gives you information about Perl modules without actually
loading the module. It actually isn't specific to modules and should
work on any perl code.
Authors:
--------
Mattia Barbon <mbarbon@users.sourceforge.net>
%prep
%setup -n %{cpan_name}-%{version}
%build
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
%{__make} %{?_smp_mflags}
%check
%{__make} test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%files -f %{name}.files
%defattr(-,root,root)
%doc Changes
%changelog