]>
Commit | Line | Data |
---|---|---|
cffbfeb7 | 1 | # |
2 | # Conditional build: | |
cd16e1ee | 3 | %bcond_without tests # do not perform "make test" |
bb0537ac | 4 | |
e9b762e9 | 5 | %define pdir MasonX |
6 | %define pnam Resolver-PAR | |
bb0537ac | 7 | %include /usr/lib/rpm/macros.perl |
05711ca5 | 8 | Summary: MasonX::Resolver::PAR - get Mason components from a PAR file |
c72f9f5e | 9 | Summary(pl.UTF-8): MasonX::Resolver::PAR - pobieranie komponentów Masona z pliku PAR |
cffbfeb7 | 10 | Name: perl-MasonX-Resolver-PAR |
11 | Version: 0.2 | |
12 | Release: 1 | |
13 | # same as perl | |
14 | License: GPL v1+ or Artistic | |
15 | Group: Development/Languages/Perl | |
16 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz | |
17 | # Source0-md5: 85b7ea68b962f9e19002e9239ed222e5 | |
bb0537ac | 18 | URL: http://search.cpan.org/dist/MasonX-Resolver-PAR/ |
cffbfeb7 | 19 | BuildRequires: perl-devel >= 1:5.8 |
20 | BuildRequires: rpm-perlprov >= 4.1-13 | |
8f4b55ef | 21 | %if %{with tests} |
22 | BuildRequires: apache1-mod_perl | |
23 | BuildRequires: perl-HTML-Mason >= 1.1 | |
24 | BuildRequires: perl-PAR >= 0.62 | |
25 | %endif | |
cffbfeb7 | 26 | BuildArch: noarch |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
28 | ||
29 | %description | |
30 | This is a custom Mason Resolver which loads it's content from a PAR | |
05711ca5 | 31 | archive. This is meant to be used in conjunction with Apache::PAR. |
cffbfeb7 | 32 | |
385f6ceb JR |
33 | %description -l pl.UTF-8 |
34 | To jest własny obiekt Mason Resolver ładujący swoją zawartość z | |
35 | archiwum PAR. Jest przeznaczony do używania w połączeniu z | |
05711ca5 | 36 | Apache::PAR. |
cffbfeb7 | 37 | |
38 | %prep | |
39 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
40 | ||
41 | %build | |
42 | %{__perl} Makefile.PL \ | |
43 | INSTALLDIRS=vendor | |
44 | %{__make} | |
45 | ||
46 | %{?with_tests:%{__make} test} | |
47 | ||
48 | %install | |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
51 | %{__make} install \ | |
52 | DESTDIR=$RPM_BUILD_ROOT | |
53 | ||
54 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
55 | cp -a sample $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
56 | ||
57 | %clean | |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | ||
60 | %files | |
61 | %defattr(644,root,root,755) | |
62 | %doc Changes README | |
05711ca5 | 63 | %{perl_vendorlib}/MasonX/*/*.pm |
cffbfeb7 | 64 | %{_mandir}/man3/* |
65 | %{_examplesdir}/%{name}-%{version} |