[521] | 1 | %define _use_internal_dependency_generator 0 |
---|
| 2 | |
---|
| 3 | Summary: A Perl module for time and date manipulation. |
---|
| 4 | Name: perl-TimeDate |
---|
[3219] | 5 | Version: 1.20 |
---|
| 6 | Release: 1%{_dist_release} |
---|
[521] | 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 | |
---|
[3219] | 16 | Vendor: Project Vine |
---|
| 17 | Distribution: Vine Linux |
---|
| 18 | |
---|
[521] | 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 | |
---|
[3219] | 26 | %if %{?_dist_release} == "vl5" || %{?_dist_release} == "vl4" |
---|
[521] | 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 |
---|
[3219] | 30 | %endif |
---|
[521] | 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 |
---|
[3219] | 66 | * Wed Mar 30 2011 IWAI, Masaharu <iwai@alib.jp> 1.20-1 |
---|
| 67 | - new upstream release |
---|
| 68 | - add Vendor and Distribution tags |
---|
| 69 | |
---|
[521] | 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. |
---|