2658446d6b
ExtUtils::MakeMaker.
71 lines
2.3 KiB
RPMSpec
71 lines
2.3 KiB
RPMSpec
Name: perl-DateTime-Format-Strptime
|
|
Version: 1.0700
|
|
Release: 3%{?dist}
|
|
Summary: Parse and format strp and strf time patterns
|
|
License: GPL or Artistic
|
|
Group: Development/Libraries
|
|
URL: http://search.cpan.org/dist/DateTime-Format-Strptime/
|
|
Source0: http://www.cpan.org/authors/id/R/RI/RICKM/DateTime-Format-Strptime-%{version}.tar.gz
|
|
Patch0: %{name}-charset.patch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
BuildArch: noarch
|
|
BuildRequires: perl(DateTime)
|
|
BuildRequires: perl(DateTime::Locale) >= 0.02
|
|
BuildRequires: perl(DateTime::TimeZone) >= 0.25
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
BuildRequires: perl(Params::Validate) >= 0.64
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
|
%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 DateTime-Format-Strptime-%{version}
|
|
%patch0
|
|
|
|
%build
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
|
|
|
|
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
|
|
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
|
|
|
|
%{_fixperms} $RPM_BUILD_ROOT/*
|
|
|
|
%check
|
|
make test
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc Changes LICENSE README
|
|
%{perl_vendorlib}/*
|
|
%{_mandir}/man3/*
|
|
|
|
%changelog
|
|
* Tue Apr 17 2007 Steven Pritchard <steve@kspei.com> 1.0700-3
|
|
- Use fixperms macro instead of our own chmod incantation.
|
|
- BR ExtUtils::MakeMaker.
|
|
|
|
* Sat Sep 16 2006 Steven Pritchard <steve@kspei.com> 1.0700-2
|
|
- Fix find option order.
|
|
|
|
* Mon Jul 03 2006 Steven Pritchard <steve@kspei.com> 1.0700-1
|
|
- Specfile autogenerated by cpanspec 1.66.
|
|
- Fix License.
|
|
- Remove versioned DateTime deps (0.1402 > 0.30 according to rpm).
|
|
- Remove versioned explicit dependencies that rpmbuild picks up.
|
|
- Substitute literal "©" for E<169> in pod documentation. (The result
|
|
should be the same, but apparently the man page conversion is generating
|
|
something that rpmlint doesn't like.)
|