]>
Commit | Line | Data |
---|---|---|
187abb58 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
187abb58 | 5 | %define pdir DateTime |
6 | %define pnam Format-Builder | |
7d68cf8c JB |
7 | Summary: DateTime::Format::Builder - Create DateTime parser classes and objects |
8 | Summary(pl.UTF-8): DateTime::Format::Builder - tworzenie klas i obiektów analizatorów DateTime | |
187abb58 | 9 | Name: perl-DateTime-Format-Builder |
02940b95 | 10 | Version: 0.83 |
187abb58 | 11 | Release: 1 |
e5a3915b | 12 | Epoch: 1 |
02940b95 | 13 | License: Artistic v2.0 |
187abb58 | 14 | Group: Development/Languages/Perl |
02940b95 JB |
15 | Source0: http://www.cpan.org/modules/by-module/DateTime/%{pdir}-%{pnam}-%{version}.tar.gz |
16 | # Source0-md5: aa41917ca9ad69b3898728ce9c2fb477 | |
17 | URL: https://metacpan.org/release/DateTime-Format-Builder | |
18 | BuildRequires: perl-ExtUtils-MakeMaker | |
187abb58 | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
20 | BuildRequires: rpm-perlprov >= 4.1-13 | |
02940b95 | 21 | BuildRequires: rpmbuild(macros) >= 1.745 |
187abb58 | 22 | %if %{with tests} |
02940b95 | 23 | BuildRequires: perl-DateTime >= 1.0.0 |
7d68cf8c JB |
24 | BuildRequires: perl-DateTime-Format-Strptime >= 1.04 |
25 | BuildRequires: perl-Params-Validate >= 0.72 | |
02940b95 JB |
26 | BuildRequires: perl-Scalar-List-Utils |
27 | BuildRequires: perl-Test-Simple >= 0.96 | |
187abb58 | 28 | %endif |
29 | BuildArch: noarch | |
30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
31 | ||
32 | %description | |
7d68cf8c JB |
33 | DateTime::Format::Builder creates DateTime parsers. Many string |
34 | formats of dates and times are simple and just require a basic | |
35 | regular expression to extract the relevant information. Builder | |
36 | provides a simple way to do this without writing reams of structural | |
37 | code. | |
187abb58 | 38 | |
7d68cf8c JB |
39 | Builder provides a number of methods, most of which you'll never need, |
40 | or at least rarely need. They're provided more for exposing of the | |
41 | module's innards to any subclasses, or for when you need to do | |
42 | something slightly beyond what I expected. | |
187abb58 | 43 | |
7d68cf8c JB |
44 | %description -l pl.UTF-8 |
45 | DateTime::Format::Builder tworzy analizatory DateTime. Wiele formatów | |
46 | łańcuchów dat i czasu jest prostych i do wyciągnięcia istotnych | |
47 | informacji wymaga jedynie prostego wyrażenia regularnego. Builder | |
48 | udostępnia prosty sposób wykonania tego bez pisania większego kodu | |
49 | strukturalnego. | |
50 | ||
51 | Builder udostępnia wiele metod, z których większości się nie używa lub | |
52 | używa bardzo rzadko. Są udostępnione bardziej dla ukazania wnętrzności | |
53 | modułu dla podklas albo w razie potrzeby zrobienia czegoś więcej niż | |
54 | oczekiwał autor. | |
187abb58 | 55 | |
56 | %prep | |
57 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
58 | ||
59 | %build | |
02940b95 JB |
60 | %{__perl} Makefile.PL \ |
61 | INSTALLDIRS=vendor | |
187abb58 | 62 | |
02940b95 JB |
63 | %{__make} |
64 | ||
65 | %{?with_tests:%{__make} test} | |
187abb58 | 66 | |
67 | %install | |
68 | rm -rf $RPM_BUILD_ROOT | |
69 | ||
02940b95 JB |
70 | %{__make} install \ |
71 | DESTDIR=$RPM_BUILD_ROOT | |
187abb58 | 72 | |
73 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
e5a3915b JB |
74 | cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
75 | ||
02940b95 | 76 | %{__rm} $RPM_BUILD_ROOT%{perl_vendorlib}/DateTime/Format/Builder/Tutorial.pod |
187abb58 | 77 | |
78 | %clean | |
79 | rm -rf $RPM_BUILD_ROOT | |
80 | ||
81 | %files | |
82 | %defattr(644,root,root,755) | |
02940b95 | 83 | %doc Changes README.md |
e5a3915b | 84 | %{perl_vendorlib}/DateTime/Format/Builder.pm |
187abb58 | 85 | %{perl_vendorlib}/DateTime/Format/Builder |
e5a3915b | 86 | %{_mandir}/man3/DateTime::Format::Builder*.3pm* |
187abb58 | 87 | %{_examplesdir}/%{name}-%{version} |