]> git.pld-linux.org Git - packages/perl-Modern-Perl.git/blob - perl-Modern-Perl.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Modern-Perl.git] / perl-Modern-Perl.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define         pdir    Modern
6 %define         pnam    Perl
7 Summary:        Modern::Perl - enable all of the features of Modern Perl with one command
8 #Summary(pl.UTF-8):
9 Name:           perl-Modern-Perl
10 Version:        1.03
11 Release:        2
12 # same as perl
13 License:        GPL v1+ or Artistic
14 Group:          Development/Languages/Perl
15 Source0:        http://www.cpan.org/modules/by-authors/id/C/CH/CHROMATIC/Modern-Perl-%{version}.tar.gz
16 # Source0-md5:  1338c29f86b109280f8c723ece49299e
17 URL:            http://search.cpan.org/dist/Modern-Perl/
18 BuildRequires:  perl-Module-Build
19 BuildRequires:  perl-devel >= 1:5.8.0
20 BuildRequires:  rpm-perlprov >= 4.1-13
21 %if %{with tests}
22 %endif
23 BuildArch:      noarch
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
27
28
29 # %description -l pl.UTF-8 # TODO
30
31 %prep
32 %setup -q -n %{pdir}-%{pnam}-%{version}
33
34 %build
35 %{__perl} Build.PL \
36         destdir=$RPM_BUILD_ROOT \
37         installdirs=vendor
38 ./Build
39
40 %{?with_tests:./Build test}
41
42 %install
43 rm -rf $RPM_BUILD_ROOT
44
45 ./Build install
46
47 %clean
48 rm -rf $RPM_BUILD_ROOT
49
50 %files
51 %defattr(644,root,root,755)
52 %doc Changes README
53 %dir %{perl_vendorlib}/Modern
54 %{perl_vendorlib}/Modern/*.pm
55 %{_mandir}/man3/*
This page took 0.111938 seconds and 4 git commands to generate.