3 %bcond_without tests # do not perform "make test"
7 %include /usr/lib/rpm/macros.perl
8 Summary: Package::Variant - Parameterizable packages
10 Name: perl-Package-Variant
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/Package/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: fc0b756835c26d6d6dca711021fb94c0
18 URL: http://search.cpan.org/dist/Package-Variant/
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
22 BuildRequires: perl-Import-Into >= 1
23 BuildRequires: perl-Module-Runtime >= 0.013
24 BuildRequires: perl-strictures >= 1
25 BuildRequires: perl-Test-Fatal
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 This module allows you to build packages that return different
32 variations depending on what parameters are given.
34 Users of your package will receive a subroutine able to take
35 parameters and return the name of a suitable variant package.
36 The implementation does not care about what kind of package it builds.
38 There are two important parts to creating a variable package. You
39 first have to give Package::Variant some basic information about what
40 kind of package you want to provide, and how. The second part is
41 implementing a method receiving the user's arguments and generating
44 # %description -l pl.UTF-8
48 %setup -q -n %{pdir}-%{pnam}-%{version}
51 %{__perl} Makefile.PL \
55 %{?with_tests:%{__make} test}
58 rm -rf $RPM_BUILD_ROOT
60 %{__make} pure_install \
61 DESTDIR=$RPM_BUILD_ROOT
64 rm -rf $RPM_BUILD_ROOT
67 %defattr(644,root,root,755)
69 %{perl_vendorlib}/Package/Variant.pm