]>
Commit | Line | Data |
---|---|---|
1e652072 | 1 | # |
2 | # Conditional build: | |
ead42f85 | 3 | %bcond_with tests # perform "make test" |
d26f85ba | 4 | |
1e652072 | 5 | %include /usr/lib/rpm/macros.perl |
6 | %define pdir DateTime | |
7 | %define pnam Format-Natural | |
8 | Summary: DateTime::Format::Natural - Create machine readable date/time with natural parsing logic | |
ead42f85 | 9 | Summary(pl.UTF-8): DateTime::Format::Natural - Tworzy datę/czas dogodny dla maszyn |
1e652072 | 10 | Name: perl-DateTime-Format-Natural |
8875ab1e | 11 | Version: 1.02 |
1e652072 | 12 | Release: 1 |
1e652072 | 13 | License: GPL v1+ or Artistic |
14 | Group: Development/Languages/Perl | |
1565b870 | 15 | Source0: http://www.cpan.org/modules/by-authors/id/S/SC/SCHUBIGER/%{pdir}-%{pnam}-%{version}.tar.gz |
8875ab1e | 16 | # Source0-md5: 258203626de566250ef245b2b680cacc |
1e652072 | 17 | URL: http://search.cpan.org/dist/DateTime-Format-Natural/ |
18 | BuildRequires: perl-devel >= 1:5.8.0 | |
19 | BuildRequires: rpm-perlprov >= 4.1-13 | |
20 | %if %{with tests} | |
d26f85ba | 21 | BuildRequires: perl(Test::MockTime) |
1e652072 | 22 | BuildRequires: perl(boolean) |
23 | BuildRequires: perl-Date-Calc | |
24 | BuildRequires: perl-DateTime | |
25 | BuildRequires: perl-List-MoreUtils | |
26 | BuildRequires: perl-Params-Validate | |
1e652072 | 27 | %endif |
28 | BuildArch: noarch | |
29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
30 | ||
31 | %description | |
32 | DateTime::Format::Natural takes a string with a human readable | |
33 | date/time and creates a machine readable one by applying natural | |
34 | parsing logic. | |
35 | ||
ead42f85 | 36 | %description -l pl.UTF-8 |
37 | DateTime::Format::Natural przyjmuje łańcuch znaków zawierający | |
38 | datę/czas w formacie dogodnym dla ludzi i tworzy z niego format | |
39 | dogodny dla maszyn. | |
1e652072 | 40 | |
41 | %prep | |
42 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
43 | ||
44 | %build | |
45 | %{__perl} Build.PL \ | |
46 | destdir=$RPM_BUILD_ROOT \ | |
47 | installdirs=vendor | |
48 | ./Build | |
49 | ||
50 | %{?with_tests:./Build test} | |
51 | ||
52 | %install | |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | ||
55 | ./Build install | |
56 | ||
57 | %clean | |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | ||
60 | %files | |
61 | %defattr(644,root,root,755) | |
62 | %doc Changes | |
63 | %attr(755,root,root) %{_bindir}/* | |
64 | %{perl_vendorlib}/DateTime/Format/*.pm | |
65 | %{perl_vendorlib}/DateTime/Format/Natural | |
66 | %{_mandir}/man?/* |