Author: glen Date: Tue Aug 22 16:10:56 2006 GMT Module: SPECS Tag: HEAD ---- Log message: - new
---- Files affected: SPECS: perl-DateTime-Format-Strptime.spec (NONE -> 1.1) (NEW) ---- Diffs: ================================================================ Index: SPECS/perl-DateTime-Format-Strptime.spec diff -u /dev/null SPECS/perl-DateTime-Format-Strptime.spec:1.1 --- /dev/null Tue Aug 22 18:10:56 2006 +++ SPECS/perl-DateTime-Format-Strptime.spec Tue Aug 22 18:10:51 2006 @@ -0,0 +1,70 @@ +# $Revision$, $Date$ +# +# Conditional build: +%bcond_without tests # do not perform "make test" +# +%include /usr/lib/rpm/macros.perl +%define pdir DateTime +%define pnam Format-Strptime +Summary: DateTime::Format::Strptime - Parse and format strp and strf time patterns +Name: perl-DateTime-Format-Strptime +Version: 1.0700 +Release: 1 +# same as perl +License: GPL v1+ or Artistic +Group: Development/Languages/Perl +Source0: http://www.cpan.org/modules/by-authors/id/R/RI/RICKM/DateTime-Format-Strptime-%{version}.tar.gz +# Source0-md5: fcda7127b01dcad43ca7cf30be9a1dc6 +URL: http://search.cpan.org/dist/DateTime-Format-Strptime/ +BuildRequires: perl-devel >= 1:5.8.0 +BuildRequires: rpm-perlprov >= 4.1-13 +%if %{with tests} +BuildRequires: perl(DateTime) >= 0.15 +BuildRequires: perl(DateTime::Locale) >= 0.02 +BuildRequires: perl(DateTime::TimeZone) >= 0.25 +BuildRequires: perl(Params::Validate) >= 0.64 +%endif +Requires: perl-DateTime >= 0.28-2 +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +This module implements most of strptime(3), the POSIX function that is +the reverse of strftime(3), for DateTime. While strftime takes a +DateTime and a pattern and returns a string, strptime takes a string +and a pattern and returns the DateTime object associated. + +%prep +%setup -q -n %{pdir}-%{pnam}-%{version} + +%build +%{__perl} Makefile.PL \ + INSTALLDIRS=vendor +%{__make} + +%{?with_tests:%{__make} test} + +%install +rm -rf $RPM_BUILD_ROOT + +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc Changes README +%{perl_vendorlib}/DateTime/Format/*.pm +%{_mandir}/man3/* + +%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) +%changelog +* %{date} PLD Team <[EMAIL PROTECTED]> +All persons listed below can be reached at <cvs_login>@pld-linux.org + +$Log$ +Revision 1.1 2006/08/22 16:10:51 glen +- new + ================================================================ _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
