1 | %define _use_internal_dependency_generator 0 |
---|
2 | |
---|
3 | Summary: A Perl module for time and date manipulation. |
---|
4 | Name: perl-TimeDate |
---|
5 | Version: 1.16 |
---|
6 | Release: 3%{_dist_release} |
---|
7 | License: distributable |
---|
8 | Group: Development/Libraries |
---|
9 | Source0: TimeDate-%{version}.tar.gz |
---|
10 | Url: http://search.cpan.org/search?query=timedate&mode=all |
---|
11 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
12 | BuildRequires: perl >= 0:5.00503 |
---|
13 | Requires: perl >= 0:5.00503 |
---|
14 | BuildArch: noarch |
---|
15 | |
---|
16 | %description |
---|
17 | This module includes a number of smaller modules suited for |
---|
18 | manipulation of time and date strings with Perl. In particular, the |
---|
19 | Date::Format and Date::Parse modules can display and read times and |
---|
20 | dates in various formats, providing a more reliable interface to |
---|
21 | textual representations of points in time. |
---|
22 | |
---|
23 | # Provide perl-specific find-{provides,requires}. |
---|
24 | %define __find_provides /usr/lib/rpm/find-provides.perl |
---|
25 | %define __find_requires /usr/lib/rpm/find-requires.perl |
---|
26 | |
---|
27 | %prep |
---|
28 | %setup -q -n TimeDate-%{version} |
---|
29 | |
---|
30 | %build |
---|
31 | CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor |
---|
32 | make |
---|
33 | |
---|
34 | %check |
---|
35 | make test |
---|
36 | |
---|
37 | %clean |
---|
38 | rm -rf $RPM_BUILD_ROOT |
---|
39 | |
---|
40 | %install |
---|
41 | rm -rf $RPM_BUILD_ROOT |
---|
42 | make DESTDIR=$RPM_BUILD_ROOT install |
---|
43 | |
---|
44 | [ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress |
---|
45 | |
---|
46 | find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \; |
---|
47 | |
---|
48 | find $RPM_BUILD_ROOT%{_prefix} -type f -print | |
---|
49 | sed "s@^$RPM_BUILD_ROOT@@g" | |
---|
50 | grep -v perllocal.pod | |
---|
51 | grep -v "\.packlist" > TimeDate-%{version}-filelist |
---|
52 | if [ "$(cat TimeDate-%{version}-filelist)X" = "X" ] ; then |
---|
53 | echo "ERROR: EMPTY FILE LIST" |
---|
54 | exit -1 |
---|
55 | fi |
---|
56 | |
---|
57 | %files -f TimeDate-%{version}-filelist |
---|
58 | %defattr(-,root,root) |
---|
59 | |
---|
60 | %changelog |
---|
61 | * Thu May 1 2008 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 1.16-3 |
---|
62 | - built with perl-5.10.0. |
---|
63 | |
---|
64 | * Sun Sep 10 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.16-2vl3 |
---|
65 | - changed Group to Development/Libraries |
---|
66 | - changed INSTALLDIRS to vendor from site |
---|
67 | |
---|
68 | * Mon Jan 10 2005 Satoshi MACHINO <machino@vinelinux.org> 1.16-2vl2 |
---|
69 | - built with perl-5.8.6 |
---|
70 | |
---|
71 | * Sun Oct 03 2004 Satoshi MACHINO <machino@vinelinux.org> 1.16-2vl1 |
---|
72 | - rebuilt for VineLinux |
---|
73 | -- deleted epoch tag |
---|
74 | -- changed INSTALLDIR to site from vendor |
---|
75 | |
---|
76 | * Wed Sep 22 2004 Chip Turner <cturner@redhat.com> 1:1.16-2 |
---|
77 | - rebuild |
---|
78 | |
---|
79 | * Fri Feb 13 2004 Chip Turner <cturner@redhat.com> 1:1.16-1 |
---|
80 | - update to 1.16, bump epoch since previous version was 1.1301 |
---|
81 | |
---|
82 | * Tue Aug 6 2002 Chip Turner <cturner@redhat.com> |
---|
83 | - automated release bump and build |
---|
84 | |
---|
85 | * Tue Aug 6 2002 Chip Turner <cturner@localhost.localdomain> |
---|
86 | - update to 1.301 |
---|
87 | |
---|
88 | * Wed Jan 09 2002 Tim Powers <timp@redhat.com> |
---|
89 | - automated rebuild |
---|
90 | |
---|
91 | * Wed Oct 24 2001 root <root@redhat.com> |
---|
92 | - Spec file was autogenerated. |
---|