]>
Commit | Line | Data |
---|---|---|
1be96855 | 1 | # |
2 | # Conditional build: | |
33452edb | 3 | %bcond_without tests # do not perform "make test" |
5926710f | 4 | |
e636414c | 5 | %define pdir MasonX |
6 | %define pnam Resolver-Polyglot | |
5926710f | 7 | %include /usr/lib/rpm/macros.perl |
373a3034 | 8 | Summary: MasonX::Resolver::Polyglot - component path resolver for easy internationalization |
f69d0418 | 9 | Summary(pl.UTF-8): MasonX::Resolver::Polyglot - resolver ścieżek komponentów do łatwego umiędzynaradawiania |
1be96855 | 10 | Name: perl-MasonX-Resolver-Polyglot |
a82af0ee | 11 | Version: 0.7 |
1be96855 | 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 | |
a82af0ee | 17 | # Source0-md5: 938ed09d946569a1adbcd55a6031d921 |
5926710f | 18 | URL: http://search.cpan.org/dist/MasonX-Resolver-Polyglot/ |
373a3034 | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
1be96855 | 20 | BuildRequires: rpm-perlprov >= 4.1-13 |
21 | %if %{with tests} | |
3890c1fd | 22 | BuildRequires: perl(Locale::Country) >= 2.06 |
23 | BuildRequires: perl(Locale::Language) >= 2.02 | |
5926710f ER |
24 | BuildRequires: perl-HTML-Mason >= 1.1 |
25 | BuildRequires: perl-Locale-Codes | |
1be96855 | 26 | %endif |
27 | BuildArch: noarch | |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
29 | ||
30 | %description | |
31 | This HTML::Mason::Resolver::File::ApacheHandler subclass enables Mason | |
373a3034 JB |
32 | to determine the client's language preference and find the best |
33 | matching component to fulfill it. | |
1be96855 | 34 | |
52eeb9b4 JR |
35 | %description -l pl.UTF-8 |
36 | Ta podklasa HTML::Mason::Resolver::File::ApacheHandler umożliwia | |
37 | Masonowi określanie preferowanego przez klienta języka i odnajdywania | |
38 | najlepszego pasującego komponentu, aby sprostać preferencjom. | |
1be96855 | 39 | |
40 | %prep | |
a82af0ee | 41 | %setup -q -n %{pdir}-%{pnam} |
1be96855 | 42 | |
43 | %build | |
44 | %{__perl} Makefile.PL \ | |
45 | INSTALLDIRS=vendor | |
46 | %{__make} | |
47 | ||
48 | %{?with_tests:%{__make} test} | |
49 | ||
50 | %install | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
53 | %{__make} install \ | |
54 | DESTDIR=$RPM_BUILD_ROOT | |
55 | ||
56 | %clean | |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
59 | %files | |
60 | %defattr(644,root,root,755) | |
61 | %doc Changes README | |
373a3034 | 62 | %{perl_vendorlib}/MasonX/*/*.pm |
1be96855 | 63 | %{_mandir}/man3/* |