File perl-CPANXR.spec of Package perl-CPANXR
#
# spec file for package perl-CPANXR
#
# 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-CPANXR
Version: 0.08
Release: 0
%define cpan_name CPANXR
Summary: Cross Referencer for CPAN (and Perl code)
License: GPL-1.0+ or Artistic-1.0
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/CPANXR/
Source0: http://www.cpan.org/authors/id/C/CL/CLAESJAC/%{cpan_name}-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Config::Simple) >= 4.55
BuildRequires: perl(DBD::mysql) >= 2.9002
BuildRequires: perl(DBI) >= 1.37
BuildRequires: perl(Data::Page) >= 0.18
BuildRequires: perl(File::Find::Rule) >= 0.11
BuildRequires: perl(GraphViz) >= 1.8
BuildRequires: perl(PPI) >= 0.805
Requires: perl(Config::Simple) >= 4.55
Requires: perl(DBD::mysql) >= 2.9002
Requires: perl(DBI) >= 1.37
Requires: perl(Data::Page) >= 0.18
Requires: perl(File::Find::Rule) >= 0.11
Requires: perl(GraphViz) >= 1.8
Requires: perl(PPI) >= 0.805
%{perl_requires}
%description
CPANXR is the software for the CPAN Cross Reference site. It consits of
some HTML, and some Perl code for analysing Perl code and building a
database. It also features a web-interface for browsing the database.
%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 Changes docs README setup
%changelog