]> git.pld-linux.org Git - packages/perl-DateTime-Format-Builder.git/blame - perl-DateTime-Format-Builder.spec
- updated to 0.83
[packages/perl-DateTime-Format-Builder.git] / perl-DateTime-Format-Builder.spec
CommitLineData
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
7Summary: DateTime::Format::Builder - Create DateTime parser classes and objects
8Summary(pl.UTF-8): DateTime::Format::Builder - tworzenie klas i obiektów analizatorów DateTime
187abb58 9Name: perl-DateTime-Format-Builder
02940b95 10Version: 0.83
187abb58 11Release: 1
e5a3915b 12Epoch: 1
02940b95 13License: Artistic v2.0
187abb58 14Group: Development/Languages/Perl
02940b95
JB
15Source0: http://www.cpan.org/modules/by-module/DateTime/%{pdir}-%{pnam}-%{version}.tar.gz
16# Source0-md5: aa41917ca9ad69b3898728ce9c2fb477
17URL: https://metacpan.org/release/DateTime-Format-Builder
18BuildRequires: perl-ExtUtils-MakeMaker
187abb58 19BuildRequires: perl-devel >= 1:5.8.0
20BuildRequires: rpm-perlprov >= 4.1-13
02940b95 21BuildRequires: rpmbuild(macros) >= 1.745
187abb58 22%if %{with tests}
02940b95 23BuildRequires: perl-DateTime >= 1.0.0
7d68cf8c
JB
24BuildRequires: perl-DateTime-Format-Strptime >= 1.04
25BuildRequires: perl-Params-Validate >= 0.72
02940b95
JB
26BuildRequires: perl-Scalar-List-Utils
27BuildRequires: perl-Test-Simple >= 0.96
187abb58 28%endif
29BuildArch: noarch
30BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32%description
7d68cf8c
JB
33DateTime::Format::Builder creates DateTime parsers. Many string
34formats of dates and times are simple and just require a basic
35regular expression to extract the relevant information. Builder
36provides a simple way to do this without writing reams of structural
37code.
187abb58 38
7d68cf8c
JB
39Builder provides a number of methods, most of which you'll never need,
40or at least rarely need. They're provided more for exposing of the
41module's innards to any subclasses, or for when you need to do
42something slightly beyond what I expected.
187abb58 43
7d68cf8c
JB
44%description -l pl.UTF-8
45DateTime::Format::Builder tworzy analizatory DateTime. Wiele formatów
46łańcuchów dat i czasu jest prostych i do wyciągnięcia istotnych
47informacji wymaga jedynie prostego wyrażenia regularnego. Builder
48udostępnia prosty sposób wykonania tego bez pisania większego kodu
49strukturalnego.
50
51Builder udostępnia wiele metod, z których większości się nie używa lub
52używa bardzo rzadko. Są udostępnione bardziej dla ukazania wnętrzności
53modułu dla podklas albo w razie potrzeby zrobienia czegoś więcej niż
54oczekiwał 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
68rm -rf $RPM_BUILD_ROOT
69
02940b95
JB
70%{__make} install \
71 DESTDIR=$RPM_BUILD_ROOT
187abb58 72
73install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
e5a3915b
JB
74cp -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
79rm -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}
This page took 0.177706 seconds and 4 git commands to generate.