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