Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > a91f041499c74dec6a52c4e0a22cfa84 > files > 2

perl-Package-Variant-1.1.2-2.mga3.src.rpm

%define upstream_name    Package-Variant
%define upstream_version 1.001002

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    %mkrel 2

Summary:    Parameterizable packages
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Package/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Carp)
BuildRequires: perl(Import::Into)
BuildRequires: perl(Module::Runtime)
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(strictures)
BuildArch: noarch

%description
This module allows you to build packages that return different variations
depending on what parameters are given.

Users of your package will receive a subroutine able to take parameters and
return the name of a suitable variant package. The implmenetation does not
care about what kind of package it builds.

Declaring a variable package
    There are two important parts to creating a variable package. You first
    have to give 'Package::Variant' some basic information about what kind
    of package you want to provide, and how. The second part is
    implementing a method receiving the user's arguments and generating
    your variants.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml META.json README
%{_mandir}/man3/*
%perl_vendorlib/*




%changelog

* Sun Jan 13 2013 umeabot <umeabot> 1.1.2-2.mga3
+ Revision: 371373
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Mon Oct 15 2012 jquelin <jquelin> 1.1.2-1.mga3
+ Revision: 306353
- imported package perl-Package-Variant