]> git.pld-linux.org Git - packages/perl-DateTime-Format-MySQL.git/blame - perl-DateTime-Format-MySQL.spec
- R: perl-DateTime-Format-Builder (not autodetected); release 2
[packages/perl-DateTime-Format-MySQL.git] / perl-DateTime-Format-MySQL.spec
CommitLineData
beec227e 1#
2# Conditional build:
4620e261 3%bcond_without tests # unit tests
beec227e 4#
beec227e 5%define pdir DateTime
6%define pnam Format-MySQL
7Summary: DateTime::Format::MySQL - Parse and format MySQL dates and times
5bfbef02 8Summary(pl.UTF-8): DateTime::Format::MySQL - analizowanie i formatowanie dat MySQL-a
beec227e 9Name: perl-DateTime-Format-MySQL
75407a12 10Version: 0.06
4620e261 11Release: 2
beec227e 12# same as perl
13License: GPL v1+ or Artistic
14Group: Development/Languages/Perl
4620e261 15Source0: https://www.cpan.org/modules/by-module/DateTime/%{pdir}-%{pnam}-%{version}.tar.gz
75407a12
JB
16# Source0-md5: 60b84516b5f29e0c639cd1a0f12333d2
17URL: https://metacpan.org/release/DateTime-Format-MySQL
4483ba63 18BuildRequires: perl-Module-Build
beec227e 19BuildRequires: perl-devel >= 1:5.8.0
20BuildRequires: rpm-perlprov >= 4.1-13
75407a12 21BuildRequires: rpmbuild(macros) >= 1.745
beec227e 22%if %{with tests}
5bfbef02 23BuildRequires: perl-DateTime
4620e261 24BuildRequires: perl-DateTime-Format-Builder >= 0.60
beec227e 25%endif
4620e261 26Requires: perl-DateTime-Format-Builder >= 0.60
beec227e 27BuildArch: noarch
28BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30%description
31This module understands the formats used by MySQL for its DATE,
5bfbef02 32DATETIME, TIME and TIMESTAMP data types. It can be used to parse
beec227e 33these formats in order to create DateTime objects, and it can take a
34DateTime object and produce a string representing it in the MySQL
35format.
36
5bfbef02
JB
37%description -l pl.UTF-8
38Ten moduł rozumie formaty używane przez MySQL-a dla typów danych DATE,
39DATETIME, TIME i TIMESTAMP. Może być używany do analizy tych formatów
40w celu utworzenia obiektów DateTime; może także przyjąć obiekt
41DateTime i utworzyć łańcuch z jego reprezentacją w formacie MySQL-a.
beec227e 42
43%prep
44%setup -q -n %{pdir}-%{pnam}-%{version}
45
46%build
47%{__perl} Build.PL \
48 destdir=$RPM_BUILD_ROOT \
49 installdirs=vendor
50./Build
51
52%{?with_tests:./Build test}
53
54%install
55rm -rf $RPM_BUILD_ROOT
56
57./Build install
58
59%clean
60rm -rf $RPM_BUILD_ROOT
61
62%files
63%defattr(644,root,root,755)
64%doc Changes README
75407a12
JB
65%{perl_vendorlib}/DateTime/Format/MySQL.pm
66%{_mandir}/man3/DateTime::Format::MySQL.3pm*
This page took 0.210761 seconds and 4 git commands to generate.