]>
Commit | Line | Data |
---|---|---|
4c84c59f MP |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
5 | %include /usr/lib/rpm/macros.perl | |
8fc450e6 | 6 | %define pdir DateTime |
7 | %define pnam Locale | |
bf28c9b1 | 8 | Summary: DateTime::Locale - localization support for DateTime |
e755f763 | 9 | Summary(pl.UTF-8): DateTime::Locale - wsparcie międzynarodowe dla DateTime |
4c84c59f | 10 | Name: perl-DateTime-Locale |
c3060224 | 11 | Version: 0.42 |
fc490ef1 | 12 | Release: 1 |
13 | # same as perl | |
b8c9bd59 | 14 | License: GPL v1+ or Artistic (parts on ICU License) |
4c84c59f | 15 | Group: Development/Languages/Perl |
bbc10c45 | 16 | Source0: http://www.cpan.org/modules/by-module/DateTime/%{pdir}-%{pnam}-%{version}.tar.gz |
c3060224 | 17 | # Source0-md5: 2f40350ef1c697f1bc402220824f6a7a |
bbc10c45 JB |
18 | URL: http://search.cpan.org/dist/DateTime-Locale/ |
19 | BuildRequires: perl-Module-Build | |
4c84c59f MP |
20 | BuildRequires: perl-devel >= 1:5.8.0 |
21 | BuildRequires: rpm-perlprov >= 4.1-13 | |
b16dc7ed | 22 | %if %{with tests} |
5415fd6a | 23 | #BuildRequires: perl-DateTime # circular dependency |
010e7765 | 24 | BuildRequires: perl-File-Find-Rule |
b16dc7ed | 25 | BuildRequires: perl-Test-Pod >= 0.95 |
26 | %endif | |
4c84c59f MP |
27 | BuildArch: noarch |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
29 | ||
d6916c49 | 30 | %define _noautoreq 'perl(DateTime::Locale.*)' |
31 | ||
4c84c59f MP |
32 | %description |
33 | This package contains DateTime::Locale, an factory for the various | |
34 | locale subclasses. It also provides some functions for getting | |
35 | information on available locales. | |
36 | ||
8fd338af JR |
37 | %description -l pl.UTF-8 |
38 | Pakiet ten zawiera DateTime::Locale, źródło różnych klas związanych z | |
39 | umiędzynarodowieniem. Udostępnia również pewne funkcje służące do | |
40 | pobierania informacji o dostępnych locale. | |
bf28c9b1 | 41 | |
4c84c59f MP |
42 | %prep |
43 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
44 | ||
45 | %build | |
46 | %{__perl} Build.PL \ | |
23e4f0ba MP |
47 | installdirs=vendor \ |
48 | destdir=$RPM_BUILD_ROOT | |
4c84c59f MP |
49 | ./Build |
50 | ||
51 | %{?with_tests:./Build test} | |
52 | ||
53 | %install | |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | ./Build install | |
56 | ||
57 | %clean | |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | ||
60 | %files | |
61 | %defattr(644,root,root,755) | |
fc490ef1 | 62 | %doc Changes README |
4c84c59f MP |
63 | %{perl_vendorlib}/DateTime/Locale*pm |
64 | %dir %{perl_vendorlib}/DateTime/Locale | |
65 | %{perl_vendorlib}/DateTime/Locale/*.pm | |
4c84c59f | 66 | %{_mandir}/man3/* |