1
0
Files
perl-Module-CoreList/perl-Module-CoreList.spec

78 lines
2.4 KiB
RPMSpec
Raw Normal View History

#
# spec file for package perl-Module-CoreList
#
# 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-Module-CoreList
Version: 5.20160920
Release: 0
%define cpan_name Module-CoreList
Summary: What Modules Shipped with Versions of Perl
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Module-CoreList/
Source0: http://www.cpan.org/authors/id/B/BI/BINGOS/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(version) >= 0.88
Requires: perl(version) >= 0.88
%{perl_requires}
%description
Module::CoreList provides information on which core and dual-life modules
shipped with each version of perl.
It provides a number of mechanisms for querying this information.
There is a utility called corelist provided with this module which is a
convenient way of querying from the command-line.
There is a functional programming API available for programmers to query
information.
Programmers may also query the contained hash structures to find relevant
information.
%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
# MANUAL BEGIN
mv %{buildroot}%{_bindir}/corelist %{buildroot}%{_bindir}/corelist-%{name}
# the perl docu will do
mv %{buildroot}%{_mandir}/man1/{corelist,corelist-%{name}}.1
rm %{buildroot}%{_mandir}/man3/Module::CoreList.3pm
# MANUAL END
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes corelist identify-dependencies README
%changelog