3 %bcond_without tests # do not perform "make test"
6 %define pnam Build-Tiny
7 %include /usr/lib/rpm/macros.perl
8 Summary: Module::Build::Tiny - A tiny replacement for Module::Build
10 Name: perl-Module-Build-Tiny
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/Module/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: 31efb75e0e535566c70551b46d981f7e
18 URL: http://search.cpan.org/dist/Module-Build-Tiny/
19 BuildRequires: perl-Module-Build
20 BuildRequires: perl-devel >= 1:5.8.0
21 BuildRequires: rpm-perlprov >= 4.1-13
23 BuildRequires: perl-ExtUtils-Config >= 0.003
24 BuildRequires: perl-ExtUtils-Helpers >= 0.020
25 BuildRequires: perl-ExtUtils-InstallPaths >= 0.002
26 BuildRequires: perl-Test-Harness >= 3.30
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 Many Perl distributions use a Build.PL file instead of a Makefile.PL
33 file to drive distribution configuration, build, test and
34 installation. Traditionally, Build.PL uses Module::Build as
35 the underlying build system. This module provides a simple,
36 lightweight, drop-in replacement.
38 Whereas Module::Build has over 6,700 lines of code; this module has
39 less than 120, yet supports the features needed by most distributions.
41 Your .pm and .pod files must be in lib/. Any executables must be in
42 script/. Test files must be in t/. Dist sharedirs must be in share/.
44 # %description -l pl.UTF-8
48 %setup -q -n %{pdir}-%{pnam}-%{version}
50 %{__sed} -i -e 's/.*in blib is readonly.*/#&/g' t/simple.t
57 %{?with_tests:./Build test}
60 rm -rf $RPM_BUILD_ROOT
63 --destdir=$RPM_BUILD_ROOT \
67 rm -rf $RPM_BUILD_ROOT
70 %defattr(644,root,root,755)
71 %doc Changes INSTALL README
72 %dir %{perl_vendorlib}/Module/Build
73 %{perl_vendorlib}/Module/Build/Tiny.pm