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