]>
Commit | Line | Data |
---|---|---|
567c2a1c JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
d29027b9 | 4 | # |
a932eade | 5 | %include /usr/lib/rpm/macros.perl |
64f0e8ea | 6 | %define pdir Date |
7 | %define pnam Manip | |
0a6487a4 | 8 | Summary: Date::Manip - date manipulation routines |
8b80bcf0 | 9 | Summary(pl.UTF-8): Date::Manip - procedury do operowania na datach |
526b204d | 10 | Name: perl-Date-Manip |
6169ba58 | 11 | Version: 6.75 |
c94588aa | 12 | Release: 1 |
466b6c57 | 13 | # same as perl |
14 | License: GPL v1+ or Artistic | |
526b204d | 15 | Group: Development/Languages/Perl |
567c2a1c | 16 | Source0: http://www.cpan.org/modules/by-module/Date/%{pdir}-%{pnam}-%{version}.tar.gz |
6169ba58 | 17 | # Source0-md5: d922d5fe4a00521dc171ac3ee65a9d61 |
58cac7f2 | 18 | URL: http://search.cpan.org/dist/Date-Manip/ |
bc077be0 | 19 | BuildRequires: perl-ExtUtils-MakeMaker >= 6.30 |
88accebd | 20 | BuildRequires: perl-devel >= 1:5.8.0 |
3beb9c8c | 21 | BuildRequires: rpm-perlprov >= 4.1-13 |
567c2a1c JB |
22 | %if %{with tests} |
23 | BuildRequires: perl-Test-Inter | |
24 | BuildRequires: perl-YAML-Syck | |
25 | %endif | |
bedcb871 | 26 | Obsoletes: perl-DateManip |
f5f4a518 | 27 | BuildArch: noarch |
45c36b1e | 28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
526b204d | 29 | |
30 | %description | |
466b6c57 | 31 | Perl module Date::Manip contains a set of routines designed to make |
c94588aa | 32 | any common date/time manipulation easy to do. Operations such as |
466b6c57 | 33 | comparing two times, calculating a time a given amount of time from |
34 | another, or parsing international times are all easily done. | |
526b204d | 35 | |
6e9fe69a JR |
36 | %description -l pl.UTF-8 |
37 | Moduł Perla Date::Manip zawiera zbiór procedur zaprojektowanych, aby | |
38 | ułatwić często wykonywane operacje na datach/czasie. Operacje takie | |
39 | jak porównywanie dwóch czasów, obliczanie czasu następującego po | |
40 | zadanej ilości czasu od innego czasu, analiza czasów z podaną strefą | |
41 | czasową - 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 |
54 | rm -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 |
62 | rm -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* |