]> git.pld-linux.org Git - packages/perl-Date-Manip.git/blame - perl-Date-Manip.spec
- updated URL and macros
[packages/perl-Date-Manip.git] / perl-Date-Manip.spec
CommitLineData
567c2a1c
JB
1#
2# Conditional build:
ac79695f 3%bcond_without tests # unit tests
d29027b9 4#
64f0e8ea 5%define pdir Date
6%define pnam Manip
0a6487a4 7Summary: Date::Manip - date manipulation routines
8b80bcf0 8Summary(pl.UTF-8): Date::Manip - procedury do operowania na datach
526b204d 9Name: perl-Date-Manip
f7deecfa 10Version: 6.89
c94588aa 11Release: 1
466b6c57 12# same as perl
13License: GPL v1+ or Artistic
526b204d 14Group: Development/Languages/Perl
567c2a1c 15Source0: http://www.cpan.org/modules/by-module/Date/%{pdir}-%{pnam}-%{version}.tar.gz
f7deecfa 16# Source0-md5: f9fe372c7abaf90e9da2ee7c3a4d32ff
ac79695f 17URL: https://metacpan.org/dist/Date-Manip
bc077be0 18BuildRequires: perl-ExtUtils-MakeMaker >= 6.30
88accebd 19BuildRequires: perl-devel >= 1:5.8.0
3beb9c8c 20BuildRequires: rpm-perlprov >= 4.1-13
ac79695f 21BuildRequires: rpmbuild(macros) >= 1.745
567c2a1c
JB
22%if %{with tests}
23BuildRequires: perl-Test-Inter
24BuildRequires: perl-YAML-Syck
25%endif
bedcb871 26Obsoletes: perl-DateManip
f5f4a518 27BuildArch: noarch
45c36b1e 28BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
526b204d 29
30%description
466b6c57 31Perl module Date::Manip contains a set of routines designed to make
c94588aa 32any common date/time manipulation easy to do. Operations such as
466b6c57 33comparing two times, calculating a time a given amount of time from
34another, or parsing international times are all easily done.
526b204d 35
6e9fe69a
JR
36%description -l pl.UTF-8
37Moduł Perla Date::Manip zawiera zbiór procedur zaprojektowanych, aby
38ułatwić często wykonywane operacje na datach/czasie. Operacje takie
39jak porównywanie dwóch czasów, obliczanie czasu następującego po
40zadanej ilości czasu od innego czasu, analiza czasów z podaną strefą
41czasową - wszystkie łatwo wykonać.
526b204d 42
43%prep
c94588aa 44%setup -q -n %{pdir}-%{pnam}-%{version}
526b204d 45
46%build
3beb9c8c 47%{__perl} Makefile.PL \
fc94b3e3 48 INSTALLDIRS=vendor
444196d4 49%{__make}
526b204d 50
567c2a1c
JB
51%{?with_tests:%{__make} test}
52
526b204d 53%install
54rm -rf $RPM_BUILD_ROOT
526b204d 55
bedcb871 56%{__make} install \
57 DESTDIR=$RPM_BUILD_ROOT
526b204d 58
567c2a1c 59%{__rm} $RPM_BUILD_ROOT%{perl_vendorlib}/Date/{Manip,Manip/*,Manip/Lang/*}.pod
58cac7f2 60
526b204d 61%clean
62rm -rf $RPM_BUILD_ROOT
63
64%files
65%defattr(644,root,root,755)
ea80a170 66%doc Changes LICENSE README.first
713fdb90
JB
67%attr(755,root,root) %{_bindir}/dm_date
68%attr(755,root,root) %{_bindir}/dm_zdump
567c2a1c 69%{perl_vendorlib}/Date/Manip.pm
c94588aa 70%dir %{perl_vendorlib}/Date/Manip
71%{perl_vendorlib}/Date/Manip/*.pm
72%dir %{perl_vendorlib}/Date/Manip/Lang
73%{perl_vendorlib}/Date/Manip/Lang/*.pm
74%dir %{perl_vendorlib}/Date/Manip/Offset
75%{perl_vendorlib}/Date/Manip/Offset/*.pm
76%dir %{perl_vendorlib}/Date/Manip/TZ
77%{perl_vendorlib}/Date/Manip/TZ/*.pm
8d0e7ecc
AM
78%{_mandir}/man1/dm_date.1*
79%{_mandir}/man1/dm_zdump.1*
58cac7f2 80%{_mandir}/man3/Date::Manip*.3pm*
This page took 0.115345 seconds and 4 git commands to generate.