1 |
%define upstream_name Time-Format |
2 |
%define upstream_version 1.11 |
3 |
|
4 |
Name: perl-%{upstream_name} |
5 |
Version: %perl_convert_version %{upstream_version} |
6 |
Release: %mkrel 1 |
7 |
|
8 |
Summary: Perl module for date and time formatting |
9 |
License: GPL+ or Artistic |
10 |
Group: Development/Perl |
11 |
Url: http://search.cpan.org/dist/%{upstream_name} |
12 |
Source0: ftp://ftp.perl.org/pub/CPAN/modules/by-module/Time/%{upstream_name}-%{upstream_version}.tar.gz |
13 |
|
14 |
BuildArch: noarch |
15 |
|
16 |
|
17 |
%description |
18 |
Time::Format provides a very easy way to format dates and times. The |
19 |
formatting functions are tied to hash variables, so they can be used |
20 |
inside strings as well as in ordinary expressions. The formatting |
21 |
codes used are meant to be easy to remember, use, and read. They |
22 |
follow a simple, consistent pattern. |
23 |
%prep |
24 |
%setup -q -n %{upstream_name}-%{upstream_version} |
25 |
|
26 |
%build |
27 |
%{__perl} Makefile.PL INSTALLDIRS=vendor |
28 |
%make |
29 |
|
30 |
%install |
31 |
rm -rf %{buildroot} |
32 |
%makeinstall_std |
33 |
|
34 |
%clean |
35 |
rm -rf %{buildroot} |
36 |
|
37 |
%files |
38 |
%defattr(-,root,root) |
39 |
%doc README Changes quickref.* META.yml |
40 |
%{perl_vendorlib}/Time |
41 |
%{_mandir}/man3/* |