source: projects/specs/branches/6/p/perl-Date-Manip/perl-Date-Manip-vl.spec @ 3197

Revision 3197, 2.9 KB checked in by iwaim, 13 years ago (diff)

perl-Date-Manip-5.54-2

Line 
1%define _use_internal_dependency_generator 0
2
3Summary: A Perl module containing a wide variety of date manipulation routines.
4Name: perl-Date-Manip
5Version: 5.54
6Release: 2%{?_dist_release}
7License: GPL+ or Artistic
8Group: Development/Libraries
9Source0: Date-Manip-%{version}.tar.gz
10URL: http://search.cpan.org/~sbeck/DateManip/
11
12BuildRoot: %{_tmppath}/%{name}-%{version}-root/
13BuildRequires: perl >= 5.8.2
14Requires: perl >= 5.8.2
15BuildArch: noarch
16
17# This package was formerly known as perl-DateManip
18Provides: perl-DateManip = %{version}-%{release}
19Obsoletes: perl-DateManip < 5.48
20
21%description
22This is a set of routines designed to make any common date/time
23manipulation easy to do.  Operations such as comparing two times,
24calculating a time a given amount of time from another, or parsing
25international 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
37CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor
38make %{?_smp_mflags}
39
40%install
41rm -rf $RPM_BUILD_ROOT
42mkdir -p $RPM_BUILD_ROOT%{_prefix}
43make DESTDIR=$RPM_BUILD_ROOT install
44
45[ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress
46
47find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \;
48
49find $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
53if [ "$(cat Date-Manip-%{version}-filelist)X" = "X" ] ; then
54    echo "ERROR: EMPTY FILE LIST"
55    exit -1
56fi
57
58%check
59make test
60
61%clean
62rm -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.
Note: See TracBrowser for help on using the repository browser.