65 lines
1.7 KiB
RPMSpec
65 lines
1.7 KiB
RPMSpec
|
Summary: A Perl module for time and date manipulation.
|
||
|
Name: perl-TimeDate
|
||
|
Version: 1.1301
|
||
|
Release: 2
|
||
|
License: distributable
|
||
|
Group: Applications/CPAN
|
||
|
Source0: TimeDate-%{version}.tar.gz
|
||
|
Url: http://www.cpan.org
|
||
|
BuildRoot: %{_tmppath}/perl-TimeDate-buildroot/
|
||
|
BuildRequires: perl >= 0:5.00503
|
||
|
Requires: perl >= 0:5.00503
|
||
|
BuildArch: noarch
|
||
|
|
||
|
%description
|
||
|
This module includes a number of smaller modules suited for
|
||
|
manipulation of time and date strings with Perl. In particular, the
|
||
|
Date::Format and Date::Parse modules can display and read times and
|
||
|
dates in various formats, providing a more reliable interface to
|
||
|
textual representations of points in time.
|
||
|
|
||
|
# Provide perl-specific find-{provides,requires}.
|
||
|
%define __find_provides /usr/lib/rpm/find-provides.perl
|
||
|
%define __find_requires /usr/lib/rpm/find-requires.perl
|
||
|
|
||
|
%prep
|
||
|
%setup -q -n TimeDate-%{version}
|
||
|
|
||
|
%build
|
||
|
CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL PREFIX=$RPM_BUILD_ROOT/usr INSTALLDIRS=vendor
|
||
|
make
|
||
|
|
||
|
%clean
|
||
|
rm -rf $RPM_BUILD_ROOT
|
||
|
|
||
|
%install
|
||
|
rm -rf $RPM_BUILD_ROOT
|
||
|
make install
|
||
|
|
||
|
[ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress
|
||
|
|
||
|
find $RPM_BUILD_ROOT/usr -type f -print |
|
||
|
sed "s@^$RPM_BUILD_ROOT@@g" |
|
||
|
grep -v perllocal.pod |
|
||
|
grep -v "\.packlist" > TimeDate-%{version}-filelist
|
||
|
if [ "$(cat TimeDate-%{version}-filelist)X" = "X" ] ; then
|
||
|
echo "ERROR: EMPTY FILE LIST"
|
||
|
exit -1
|
||
|
fi
|
||
|
|
||
|
%files -f TimeDate-%{version}-filelist
|
||
|
%defattr(-,root,root)
|
||
|
|
||
|
%changelog
|
||
|
* Tue Aug 6 2002 Chip Turner <cturner@redhat.com>
|
||
|
- automated release bump and build
|
||
|
|
||
|
* Tue Aug 6 2002 Chip Turner <cturner@localhost.localdomain>
|
||
|
- update to 1.301
|
||
|
|
||
|
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
|
||
|
- automated rebuild
|
||
|
|
||
|
* Wed Oct 24 2001 root <root@redhat.com>
|
||
|
- Spec file was autogenerated.
|