]>
Commit | Line | Data |
---|---|---|
cda8a19a | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
cda8a19a | 5 | %define pdir Petal |
6 | %define pnam Utils | |
49e03cd5 | 7 | Summary: Petal::Utils - Useful template modifiers for Petal |
6b1d5e9f | 8 | Summary(pl.UTF-8): Petal::Utils - przydatne modyfikatory szablonów dla Petala |
cda8a19a | 9 | Name: perl-Petal-Utils |
10 | Version: 0.06 | |
5ad7abb2 | 11 | Release: 1 |
cda8a19a | 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 | |
fcf6025d JB |
17 | URL: http://search.cpan.org/dist/Petal-Utils/ |
18 | BuildRequires: perl-Module-Build >= 0.20 | |
cda8a19a | 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 | |
49e03cd5 | 23 | BuildRequires: perl-Petal >= 1.06 |
cda8a19a | 24 | BuildRequires: perl(URI::Escape) >= 3.0 |
cda8a19a | 25 | %endif |
26 | BuildArch: noarch | |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
28 | ||
29 | %description | |
49e03cd5 JB |
30 | The Petal::Utils package contains commonly used Petal modifiers (or |
31 | plugins), and bundles them with an easy-to-use installation interface. | |
cda8a19a | 32 | |
f093b143 | 33 | %description -l pl.UTF-8 |
49e03cd5 | 34 | Pakiet Petal::Utils zawiera poplarne modyfikatory (lub wtyczki) Petala |
f093b143 | 35 | i łączy je przy użyciu łatwego interfejsu instalacyjnego. |
cda8a19a | 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/* |