1 | %define _use_internal_dependency_generator 0 |
---|
2 | |
---|
3 | Summary: A Perl module containing a wide variety of date manipulation routines. |
---|
4 | Name: perl-Date-Manip |
---|
5 | Version: 5.54 |
---|
6 | Release: 2%{?_dist_release} |
---|
7 | License: GPL+ or Artistic |
---|
8 | Group: Development/Libraries |
---|
9 | Source0: Date-Manip-%{version}.tar.gz |
---|
10 | URL: http://search.cpan.org/~sbeck/DateManip/ |
---|
11 | |
---|
12 | BuildRoot: %{_tmppath}/%{name}-%{version}-root/ |
---|
13 | BuildRequires: perl >= 5.8.2 |
---|
14 | Requires: perl >= 5.8.2 |
---|
15 | BuildArch: noarch |
---|
16 | |
---|
17 | # This package was formerly known as perl-DateManip |
---|
18 | Provides: perl-DateManip = %{version}-%{release} |
---|
19 | Obsoletes: perl-DateManip < 5.48 |
---|
20 | |
---|
21 | %description |
---|
22 | This is a set of routines designed to make any common date/time |
---|
23 | manipulation easy to do. Operations such as comparing two times, |
---|
24 | calculating a time a given amount of time from another, or parsing |
---|
25 | international times are all easily done. |
---|
26 | |
---|
27 | %if %{?_dist_release} == "vl5" || %{?_dist_release} == "vl4" |
---|
28 | # Provide perl-specific find-{provides,requires}. |
---|
29 | %define __find_provides /usr/lib/rpm/find-provides.perl |
---|
30 | %define __find_requires /usr/lib/rpm/find-requires.perl |
---|
31 | %endif |
---|
32 | |
---|
33 | %prep |
---|
34 | %setup -q -n Date-Manip-%{version} |
---|
35 | |
---|
36 | %build |
---|
37 | CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor |
---|
38 | make %{?_smp_mflags} |
---|
39 | |
---|
40 | %install |
---|
41 | rm -rf $RPM_BUILD_ROOT |
---|
42 | mkdir -p $RPM_BUILD_ROOT%{_prefix} |
---|
43 | make DESTDIR=$RPM_BUILD_ROOT install |
---|
44 | |
---|
45 | [ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress |
---|
46 | |
---|
47 | find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \; |
---|
48 | |
---|
49 | find $RPM_BUILD_ROOT/usr -type f -print | |
---|
50 | sed "s@^$RPM_BUILD_ROOT@@g" | |
---|
51 | grep -v perllocal.pod | |
---|
52 | grep -v "\.packlist" > Date-Manip-%{version}-filelist |
---|
53 | if [ "$(cat Date-Manip-%{version}-filelist)X" = "X" ] ; then |
---|
54 | echo "ERROR: EMPTY FILE LIST" |
---|
55 | exit -1 |
---|
56 | fi |
---|
57 | |
---|
58 | %check |
---|
59 | make test |
---|
60 | |
---|
61 | %clean |
---|
62 | rm -rf $RPM_BUILD_ROOT |
---|
63 | |
---|
64 | %files -f Date-Manip-%{version}-filelist |
---|
65 | %defattr(-,root,root) |
---|
66 | |
---|
67 | %changelog |
---|
68 | * Wed Mar 30 2011 IWAI, Masaharu <iwai@alib.jp> 5.54-2vl6 |
---|
69 | - build with perl 5.12.3 |
---|
70 | - defined __find_{provides,requires} with vl4 and vl5 |
---|
71 | |
---|
72 | * Sat Nov 8 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.54-1 |
---|
73 | - changed name to Date-Manip as now used on CPAN |
---|
74 | - new upstream release |
---|
75 | - applied new versioning policy |
---|
76 | |
---|
77 | * Sun Sep 10 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.44-0vl1 |
---|
78 | - new upstream release |
---|
79 | - installed files to vendor_perl |
---|
80 | - changed URL |
---|
81 | |
---|
82 | * Sun Jan 2 2005 IWAI, Masaharu <iwai@alib.jp> 5.42a-0vl3 |
---|
83 | - build on perl-5.8.6-0vl1 |
---|
84 | |
---|
85 | * Sat Dec 13 2003 Satoshi MACHINO <machino@vinelinux.org> 5.42a-0vl2 |
---|
86 | - rebuilt on perl-5.8.2 |
---|
87 | |
---|
88 | * Thu Nov 06 2003 Satoshi MACHINO <machino@vinelinux.org> 5.42a-0vl1 |
---|
89 | - new upstream version |
---|
90 | - built on perl-5.8.1 |
---|
91 | |
---|
92 | * Sun Apr 29 2003 Satoshi MACHINO <machino@vinelinux.org> 5.40-30vl2 |
---|
93 | - build on perl-5.8.0 |
---|
94 | |
---|
95 | * Sun Mar 02 2003 Satoshi MACHINO <machino@vinelinux.org> 5.40-30vl1 |
---|
96 | - build for VineLinux |
---|
97 | |
---|
98 | * Tue Aug 6 2002 Chip Turner <cturner@redhat.com> |
---|
99 | - automated release bump and build |
---|
100 | |
---|
101 | * Wed Jan 09 2002 Tim Powers <timp@redhat.com> |
---|
102 | - automated rebuild |
---|
103 | |
---|
104 | * Fri Dec 7 2001 root <root@redhat.com> |
---|
105 | - Spec file was autogenerated. |
---|