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