commit 56d294d75cfd5680443b2200d3da8391303d2dbd Author: Steve Traylen <steve.traylen@xxxxxxx> Date: Fri Aug 12 15:03:17 2011 +0200 Import rhbz#729649 .gitignore | 1 + perl-DateTime-Format-XSD.spec | 61 +++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 63 insertions(+), 0 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..2266dcb 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/DateTime-Format-XSD-0.2.tar.gz diff --git a/perl-DateTime-Format-XSD.spec b/perl-DateTime-Format-XSD.spec new file mode 100644 index 0000000..9799aff --- /dev/null +++ b/perl-DateTime-Format-XSD.spec @@ -0,0 +1,61 @@ +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@xxxxxxx> 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) diff --git a/sources b/sources index e69de29..9426679 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +8b78130ef8630d24935c8f1df3467a98 DateTime-Format-XSD-0.2.tar.gz -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel