Name: perl-License-Syntax Version: 0.13 Release: 1%{?dist} Summary: Coding and decoding of license strings using SPDX and SUSE syntax License: GPL+ or Artistic URL: http://search.cpan.org/dist/License-Syntax/ Source0: http://www.cpan.org/authors/id/J/JN/JNW/License-Syntax-%{version}.tar.gz BuildArch: noarch # Build BuildRequires: perl BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 BuildRequires: perl(strict) BuildRequires: perl(warnings) # Runtime BuildRequires: perl(Carp) BuildRequires: perl(Data::Dumper) BuildRequires: perl(DBD::SQLite) BuildRequires: perl(DBI) BuildRequires: perl(POSIX) BuildRequires: perl(Text::CSV) # Tests only BuildRequires: perl(Test::More) # Optional tests only BuildRequires: perl(Pod::Coverage) >= 0.18 BuildRequires: perl(Test::Pod) >= 1.22 BuildRequires: perl(Test::Pod::Coverage) >= 1.08 Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version)) Requires: perl(DBD::SQLite) %description License::Syntax is an object oriented module. When constructing new License::Syntax objects, you can provide a mapping table for license names. The table is used for recognizing alternate alias names for the licenses (left hand side) and also defines the canonical short names of the licenses (right hand side). The mapping table is consulted twice, before and after decoding the syntax, thus non-terminal mappings may actually be followed. %prep %setup -q -n License-Syntax-%{version} chmod -c a-x license_syntax.pl %build perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 make %{?_smp_mflags} %install make pure_install DESTDIR=%{buildroot} rm %{buildroot}/%{perl_vendorlib}/License/license_syntax.pl %{_fixperms} %{buildroot}/* %check make test %files %doc Changes README license_syntax.pl synopsis.csv %{perl_vendorlib}/* %{_mandir}/man3/* %changelog * Thu Apr 02 2015 Petr Ĺ abata 0.13-1 - Initial packaging