2012-05-31 13:22:52 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-Module-ExtractUse
|
|
|
|
#
|
2015-04-23 05:27:42 +00:00
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
2012-05-31 13:22:52 +00:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
2010-08-26 13:11:04 +00:00
|
|
|
|
|
|
|
Name: perl-Module-ExtractUse
|
2015-04-23 05:27:42 +00:00
|
|
|
Version: 0.33
|
2010-08-26 13:11:04 +00:00
|
|
|
Release: 0
|
2012-05-31 13:22:52 +00:00
|
|
|
%define cpan_name Module-ExtractUse
|
2010-08-26 13:11:04 +00:00
|
|
|
Summary: Find out what modules are used
|
2012-05-31 13:22:52 +00:00
|
|
|
License: Artistic-1.0 or GPL-1.0+
|
2010-08-26 13:11:04 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2012-05-31 13:22:52 +00:00
|
|
|
Url: http://search.cpan.org/dist/Module-ExtractUse/
|
2015-04-23 05:27:42 +00:00
|
|
|
Source0: http://www.cpan.org/authors/id/D/DO/DOMM/%{cpan_name}-%{version}.tar.gz
|
|
|
|
Source1: cpanspec.yml
|
2012-05-31 13:22:52 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-08-26 13:11:04 +00:00
|
|
|
BuildRequires: perl
|
2010-12-03 14:42:50 +00:00
|
|
|
BuildRequires: perl-macros
|
2015-04-23 05:27:42 +00:00
|
|
|
BuildRequires: perl(Module::Build) >= 0.360100
|
2012-05-31 13:22:52 +00:00
|
|
|
BuildRequires: perl(Parse::RecDescent) >= 1.967009
|
|
|
|
BuildRequires: perl(Pod::Strip)
|
|
|
|
BuildRequires: perl(Test::Deep)
|
2010-08-26 13:11:04 +00:00
|
|
|
BuildRequires: perl(Test::NoWarnings)
|
2012-05-31 13:22:52 +00:00
|
|
|
BuildRequires: perl(version)
|
|
|
|
Requires: perl(Parse::RecDescent) >= 1.967009
|
|
|
|
Requires: perl(Pod::Strip)
|
|
|
|
Requires: perl(version)
|
|
|
|
%{perl_requires}
|
2010-08-26 13:11:04 +00:00
|
|
|
|
|
|
|
%description
|
2012-05-31 13:22:52 +00:00
|
|
|
Module::ExtractUse is basically a Parse::RecDescent grammar to parse Perl
|
|
|
|
code. It tries very hard to find all modules (whether pragmas, Core, or
|
|
|
|
from CPAN) used by the parsed code.
|
|
|
|
|
|
|
|
"Usage" is defined by either calling 'use' or 'require'.
|
2010-08-26 13:11:04 +00:00
|
|
|
|
|
|
|
%prep
|
2012-05-31 13:22:52 +00:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2010-08-26 13:11:04 +00:00
|
|
|
|
|
|
|
%build
|
2012-05-31 13:22:52 +00:00
|
|
|
%{__perl} Build.PL installdirs=vendor
|
|
|
|
./Build build flags=%{?_smp_mflags}
|
2010-08-26 13:11:04 +00:00
|
|
|
|
|
|
|
%check
|
|
|
|
./Build test
|
|
|
|
|
2012-05-31 13:22:52 +00:00
|
|
|
%install
|
|
|
|
./Build install destdir=%{buildroot} create_packlist=0
|
2015-04-23 05:27:42 +00:00
|
|
|
# MANUAL BEGIN
|
|
|
|
: > _build/runtime_params
|
|
|
|
# MANUAL END
|
2012-05-31 13:22:52 +00:00
|
|
|
%perl_gen_filelist
|
2010-08-26 13:11:04 +00:00
|
|
|
|
2012-05-31 13:22:52 +00:00
|
|
|
%files -f %{name}.files
|
|
|
|
%defattr(-,root,root,755)
|
2015-04-23 05:27:42 +00:00
|
|
|
%doc _build Changes example grammar LICENSE README
|
2010-08-26 13:11:04 +00:00
|
|
|
|
2012-05-31 13:22:52 +00:00
|
|
|
%changelog
|