]>
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 |
ffecb444 | 11 | Version: 6.41 |
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 |
ffecb444 | 17 | # Source0-md5: 5fd8ba69642db5fc87a99eab6376c0ac |
58cac7f2 | 18 | URL: http://search.cpan.org/dist/Date-Manip/ |
88accebd | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
3beb9c8c | 20 | BuildRequires: rpm-perlprov >= 4.1-13 |
567c2a1c JB |
21 | %if %{with tests} |
22 | BuildRequires: perl-Test-Inter | |
23 | BuildRequires: perl-YAML-Syck | |
24 | %endif | |
bedcb871 | 25 | Obsoletes: perl-DateManip |
f5f4a518 | 26 | BuildArch: noarch |
45c36b1e | 27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
526b204d | 28 | |
29 | %description | |
466b6c57 | 30 | Perl module Date::Manip contains a set of routines designed to make |
c94588aa | 31 | any common date/time manipulation easy to do. Operations such as |
466b6c57 | 32 | comparing two times, calculating a time a given amount of time from |
33 | another, or parsing international times are all easily done. | |
526b204d | 34 | |
6e9fe69a JR |
35 | %description -l pl.UTF-8 |
36 | Moduł Perla Date::Manip zawiera zbiór procedur zaprojektowanych, aby | |
37 | ułatwić często wykonywane operacje na datach/czasie. Operacje takie | |
38 | jak porównywanie dwóch czasów, obliczanie czasu następującego po | |
39 | zadanej ilości czasu od innego czasu, analiza czasów z podaną strefą | |
40 | czasową - wszystkie łatwo wykonać. | |
526b204d | 41 | |
42 | %prep | |
c94588aa | 43 | %setup -q -n %{pdir}-%{pnam}-%{version} |
526b204d | 44 | |
45 | %build | |
3beb9c8c | 46 | %{__perl} Makefile.PL \ |
fc94b3e3 | 47 | INSTALLDIRS=vendor |
444196d4 | 48 | %{__make} |
526b204d | 49 | |
567c2a1c JB |
50 | %{?with_tests:%{__make} test} |
51 | ||
526b204d | 52 | %install |
53 | rm -rf $RPM_BUILD_ROOT | |
526b204d | 54 | |
bedcb871 | 55 | %{__make} install \ |
56 | DESTDIR=$RPM_BUILD_ROOT | |
526b204d | 57 | |
567c2a1c | 58 | %{__rm} $RPM_BUILD_ROOT%{perl_vendorlib}/Date/{Manip,Manip/*,Manip/Lang/*}.pod |
58cac7f2 | 59 | |
526b204d | 60 | %clean |
61 | rm -rf $RPM_BUILD_ROOT | |
62 | ||
63 | %files | |
64 | %defattr(644,root,root,755) | |
567c2a1c JB |
65 | %doc HISTORY LICENSE README.first |
66 | %{perl_vendorlib}/Date/Manip.pm | |
c94588aa | 67 | %dir %{perl_vendorlib}/Date/Manip |
68 | %{perl_vendorlib}/Date/Manip/*.pm | |
69 | %dir %{perl_vendorlib}/Date/Manip/Lang | |
70 | %{perl_vendorlib}/Date/Manip/Lang/*.pm | |
71 | %dir %{perl_vendorlib}/Date/Manip/Offset | |
72 | %{perl_vendorlib}/Date/Manip/Offset/*.pm | |
73 | %dir %{perl_vendorlib}/Date/Manip/TZ | |
74 | %{perl_vendorlib}/Date/Manip/TZ/*.pm | |
58cac7f2 | 75 | %{_mandir}/man3/Date::Manip*.3pm* |