3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
7 %define pnam Format-Builder
8 Summary: DateTime::Format::Builder - Create DateTime parser classes and objects
9 Summary(pl.UTF-8): DateTime::Format::Builder - tworzenie klas i obiektów analizatorów DateTime
10 Name: perl-DateTime-Format-Builder
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-authors/id/D/DR/DROLSKY/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: 43407285237cdc3cdd2c08b936229198
18 URL: http://search.cpan.org/dist/DateTime-Format-Builder/
19 BuildRequires: perl-Module-Build
20 BuildRequires: perl-devel >= 1:5.8.0
21 BuildRequires: rpm-perlprov >= 4.1-13
23 BuildRequires: perl-Class-Factory-Util >= 1.6
24 BuildRequires: perl-DateTime >= 0.12
25 BuildRequires: perl-DateTime-Format-Strptime >= 1.04
26 BuildRequires: perl-Params-Validate >= 0.72
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 DateTime::Format::Builder creates DateTime parsers. Many string
33 formats of dates and times are simple and just require a basic
34 regular expression to extract the relevant information. Builder
35 provides a simple way to do this without writing reams of structural
38 Builder provides a number of methods, most of which you'll never need,
39 or at least rarely need. They're provided more for exposing of the
40 module's innards to any subclasses, or for when you need to do
41 something slightly beyond what I expected.
43 %description -l pl.UTF-8
44 DateTime::Format::Builder tworzy analizatory DateTime. Wiele formatów
45 łańcuchów dat i czasu jest prostych i do wyciągnięcia istotnych
46 informacji wymaga jedynie prostego wyrażenia regularnego. Builder
47 udostępnia prosty sposób wykonania tego bez pisania większego kodu
50 Builder udostępnia wiele metod, z których większości się nie używa lub
51 używa bardzo rzadko. Są udostępnione bardziej dla ukazania wnętrzności
52 modułu dla podklas albo w razie potrzeby zrobienia czegoś więcej niż
56 %setup -q -n %{pdir}-%{pnam}-%{version}
60 destdir=$RPM_BUILD_ROOT \
64 %{?with_tests:./Build test}
67 rm -rf $RPM_BUILD_ROOT
71 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
72 cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
75 rm -rf $RPM_BUILD_ROOT
78 %defattr(644,root,root,755)
79 %doc AUTHORS Changes CREDITS INSTALL README
80 %{perl_vendorlib}/DateTime/Format/*.pm
81 %{perl_vendorlib}/DateTime/Format/Builder
83 %{_examplesdir}/%{name}-%{version}