diff --git a/README.md b/README.md index 57c5c42..fd04771 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,5 @@ # perl-Test-Manifest +MakeMaker assumes that you want to run all of the .t files in the t/ directory in ascii-betical order during C unless you say otherwise. +This leads to some interesting naming schemes for test files to get them in the desired order. + diff --git a/perl-Test-Manifest.spec b/perl-Test-Manifest.spec new file mode 100644 index 0000000..ff9a0a3 --- /dev/null +++ b/perl-Test-Manifest.spec @@ -0,0 +1,65 @@ +%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) + +Name: perl-Test-Manifest +Version: 1.23 +Release: 2mamba +Summary: Test :: Manifest - Interact with a t/test_manifest +Group: Development/Libraries/Perl +Vendor: openmamba +Distribution: openmamba +Packager: Aleph0 +URL: http://www.cpan.org +Source: http://www.cpan.org/modules/by-module/Test/Test-Manifest-%{version}.tar.gz +License: Artistic +BuildRequires: perl-devel >= %perl_major_ver +Requires: perl >= %perl_major_ver +BuildArch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +MakeMaker assumes that you want to run all of the .t files in the t/ directory in ascii-betical order during C unless you say otherwise. +This leads to some interesting naming schemes for test files to get them in the desired order. + +%prep +%setup -q -n Test-Manifest-%{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 -f $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}" + +%files -f .packlist +%defattr(-,root,root) + +%changelog +* Tue Nov 13 2012 Silvan Calarco 1.23-2mamba +- perl 5.16 mass rebuild + +* Tue Jul 21 2009 Automatic Build System 1.23-1mamba +- automatic update by autodist + +* Wed Nov 05 2008 Silvan Calarco 1.22-2mamba +- automatic rebuild by autodist + +* Thu Nov 29 2007 Aleph0 1.22-1mamba +- update to 1.22 + +* Tue Oct 26 2004 Alessandro Ramazzina 1.11-1qilnx +- package created by autospec