]> git.pld-linux.org Git - packages/perl-Petal-Utils.git/blob - perl-Petal-Utils.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Petal-Utils.git] / perl-Petal-Utils.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define pdir    Petal
6 %define pnam    Utils
7 Summary:        Petal::Utils - Useful template modifiers for Petal
8 Summary(pl.UTF-8):      Petal::Utils - przydatne modyfikatory szablonów dla Petala
9 Name:           perl-Petal-Utils
10 Version:        0.06
11 Release:        1
12 # same as perl
13 License:        GPL v1+ or Artistic
14 Group:          Development/Languages/Perl
15 Source0:        http://search.cpan.org/CPAN/authors/id/W/WM/WMCKEE/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  d93d4e1724a967891b4974b6985986cb
17 URL:            http://search.cpan.org/dist/Petal-Utils/
18 BuildRequires:  perl-Module-Build >= 0.20
19 BuildRequires:  perl-devel >= 1:5.8.0
20 BuildRequires:  rpm-perlprov >= 4.1-13
21 %if %{with tests}
22 BuildRequires:  perl(Date::Format) >= 0.01
23 BuildRequires:  perl-Petal >= 1.06
24 BuildRequires:  perl(URI::Escape) >= 3.0
25 %endif
26 BuildArch:      noarch
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %description
30 The Petal::Utils package contains commonly used Petal modifiers (or
31 plugins), and bundles them with an easy-to-use installation interface.
32
33 %description -l pl.UTF-8
34 Pakiet Petal::Utils zawiera poplarne modyfikatory (lub wtyczki) Petala
35 i łączy je przy użyciu łatwego interfejsu instalacyjnego.
36
37 %prep
38 %setup -q -n %{pdir}-%{pnam}-%{version}
39
40 %build
41 %{__perl} Build.PL \
42         destdir=$RPM_BUILD_ROOT \
43         installdirs=vendor
44 ./Build
45
46 %{?with_tests:./Build test}
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50
51 ./Build install
52
53 %clean
54 rm -rf $RPM_BUILD_ROOT
55
56 %files
57 %defattr(644,root,root,755)
58 %doc Changes INSTALL README TODO
59 %{perl_vendorlib}/Petal/*.pm
60 %{perl_vendorlib}/Petal/Utils
61 %{_mandir}/man3/*
This page took 0.09102 seconds and 4 git commands to generate.