3 %bcond_without tests # unit tests
6 %define pnam Format-MySQL
7 Summary: DateTime::Format::MySQL - Parse and format MySQL dates and times
8 Summary(pl.UTF-8): DateTime::Format::MySQL - analizowanie i formatowanie dat MySQL-a
9 Name: perl-DateTime-Format-MySQL
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: https://www.cpan.org/modules/by-module/DateTime/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 80d9a362c218124b51be3cc0b7e4c657
17 URL: https://metacpan.org/dist/DateTime-Format-MySQL
18 BuildRequires: perl-Module-Build
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRequires: rpmbuild(macros) >= 1.745
23 BuildRequires: perl-DateTime
24 BuildRequires: perl-DateTime-Format-Builder >= 0.60
26 Requires: perl-DateTime-Format-Builder >= 0.60
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 This module understands the formats used by MySQL for its DATE,
32 DATETIME, TIME and TIMESTAMP data types. It can be used to parse
33 these formats in order to create DateTime objects, and it can take a
34 DateTime object and produce a string representing it in the MySQL
37 %description -l pl.UTF-8
38 Ten moduł rozumie formaty używane przez MySQL-a dla typów danych DATE,
39 DATETIME, TIME i TIMESTAMP. Może być używany do analizy tych formatów
40 w celu utworzenia obiektów DateTime; może także przyjąć obiekt
41 DateTime i utworzyć łańcuch z jego reprezentacją w formacie MySQL-a.
44 %setup -q -n %{pdir}-%{pnam}-%{version}
48 destdir=$RPM_BUILD_ROOT \
52 %{?with_tests:./Build test}
55 rm -rf $RPM_BUILD_ROOT
60 rm -rf $RPM_BUILD_ROOT
63 %defattr(644,root,root,755)
65 %{perl_vendorlib}/DateTime/Format/MySQL.pm
66 %{_mandir}/man3/DateTime::Format::MySQL.3pm*