67 lines
2.1 KiB
RPMSpec
67 lines
2.1 KiB
RPMSpec
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
|
|
|
|
Name: perl-DateTime-Format-W3CDTF
|
|
Version: 0.08
|
|
Release: 1mamba
|
|
Summary: DateTime::Format::W3CDTF - Handles formatting and parsing of W3CDTF
|
|
Group: System/Libraries/Perl
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Aleph0 <aleph0@openmamba.org>
|
|
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
|
|
* Sat Jan 16 2021 Automatic Build System <autodist@mambasoft.it> 0.08-1mamba
|
|
- automatic update by autodist
|
|
|
|
* Mon Apr 10 2017 Automatic Build System <autodist@mambasoft.it> 0.07-1mamba
|
|
- automatic update by autodist
|
|
|
|
* Tue Nov 13 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 0.06-2mamba
|
|
- perl 5.16 mass rebuild
|
|
|
|
* Wed Mar 16 2011 Automatic Build System <autodist@mambasoft.it> 0.06-1mamba
|
|
- automatic update by autodist
|
|
|
|
* Wed Nov 05 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 0.04-2mamba
|
|
- automatic rebuild by autodist
|
|
|
|
* Tue Dec 11 2007 Aleph0 <aleph0@openmamba.org> 0.04-1mamba
|
|
- package created by autospec
|