source: projects/specs/trunk/p/perl-TimeDate/perl-TimeDate-vl.spec @ 8699

Revision 8699, 2.9 KB checked in by tomop, 10 years ago (diff)

spamassassin-3.4.0

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: 2%{_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* 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.
Note: See TracBrowser for help on using the repository browser.