source: projects/specs/branches/6/p/perl-TimeDate/perl-TimeDate-vl.spec @ 3219

Revision 3219, 2.8 KB checked in by iwaim, 13 years ago (diff)

perl-TimeDate?-1.20-1

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