diff --git a/README.md b/README.md index 6274a79..19e4fd0 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # perl-DateTime-Format-W3CDTF +This module handles formatting and parsing of W3CDTF, a W3C sponsored, simplified profile of ISO 8601 for the Web. + diff --git a/perl-DateTime-Format-W3CDTF.spec b/perl-DateTime-Format-W3CDTF.spec new file mode 100644 index 0000000..33dc56c --- /dev/null +++ b/perl-DateTime-Format-W3CDTF.spec @@ -0,0 +1,60 @@ +%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) + +Name: perl-DateTime-Format-W3CDTF +Version: 0.06 +Release: 2mamba +Summary: DateTime::Format::W3CDTF - Handles formatting and parsing of W3CDTF +Group: System/Libraries/Perl +Vendor: openmamba +Distribution: openmamba +Packager: Aleph0 +URL: http://www.cpan.org +Source: http://www.cpan.org/modules/by-module/DateTime/DateTime-Format-W3CDTF-%{version}.tar.gz +License: GPL +Requires: perl >= %perl_major_ver +BuildRequires: perl-devel >= %perl_major_ver +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +This module handles formatting and parsing of W3CDTF, a W3C sponsored, simplified profile of ISO 8601 for the Web. + +%prep +%setup -q -n DateTime-Format-W3CDTF-%{version} + +%build +perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor +%make +%make test + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall_perl +packlist=`find %{buildroot} -name .packlist` +[ -z "$packlist" ] && exit 1 || cat $packlist | \ + sed "s,%buildroot,,g;s,.*/man/.*,&.gz,g" | \ + sort -u > .packlist && rm $packlist + +strid=`echo $packlist | sed 's,.*auto\(.*\)/.packlist,\1,'` +for dir in `find %{buildroot} -type d | grep $strid`; do + echo "%dir ${dir#%buildroot}" >> .packlist +done + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +rm -f .packlist + +%files -f .packlist +%defattr(-,root,root) + +%changelog +* Tue Nov 13 2012 Silvan Calarco 0.06-2mamba +- perl 5.16 mass rebuild + +* Wed Mar 16 2011 Automatic Build System 0.06-1mamba +- automatic update by autodist + +* Wed Nov 05 2008 Silvan Calarco 0.04-2mamba +- automatic rebuild by autodist + +* Tue Dec 11 2007 Aleph0 0.04-1mamba +- package created by autospec