Name: perl-DateTime-Format-XSD Version: 0.2 Release: 1%{?dist} Summary: Format DateTime according to xsd:dateTime License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/DateTime-Format-XSD/ Source0: http://www.cpan.org/modules/by-module/DateTime/DateTime-Format-XSD-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: perl(DateTime::Format::ISO8601) BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Test::More) Requires: perl(DateTime::Format::ISO8601) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) #Not autodetermined. Provides: perl(DateTime::Format::XSD) = %{version} %description XML Schema defines a usage profile which is a subset of the ISO8601 profile. This profile defines that 'YYYY-MM-DD"T"HH:MI:SS(Z|[+-]zh:zm)' is the only possible representation for a dateTime, despite all other options ISO provides. %prep %setup -q -n DateTime-Format-XSD-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %install rm -rf %{buildroot} make pure_install DESTDIR=%{buildroot} find %{buildroot} -type f -name .packlist -exec rm -f {} \; find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \; %{_fixperms} %{buildroot}/* %check make test %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc Changes README %{perl_vendorlib}/* %{_mandir}/man3/* %changelog * Wed Aug 10 2011 Steve Traylen <steve.traylen@cern.ch> 0.2-1 - Specfile autogenerated by cpanspec 1.78. - Change RPM_BUILD_ROOT for %%buildroot. - Change PERL_INSTALL_ROOT for DESTDIR. - Add BR: perl(Test::More)