From 025148b98df0f86b7d84f080f6f3111d64d34674 Mon Sep 17 00:00:00 2001 From: Automatic Build System Date: Sat, 6 Jan 2024 09:20:18 +0100 Subject: [PATCH] automatic update by autodist [release 0.12-1mamba;Sun Feb 09 2014] --- README.md | 4 +++ perl-Module-Find.spec | 71 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 75 insertions(+) create mode 100644 perl-Module-Find.spec diff --git a/README.md b/README.md index a7d6be3..57ded65 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,6 @@ # perl-Module-Find +Module::Find lets you find and use modules in categories. +This can be very useful for auto-detecting driver or plugin modules. +You can differentiate between looking in the category itself or in all subcategories. + diff --git a/perl-Module-Find.spec b/perl-Module-Find.spec new file mode 100644 index 0000000..b2d4375 --- /dev/null +++ b/perl-Module-Find.spec @@ -0,0 +1,71 @@ +%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) + +Name: perl-Module-Find +Version: 0.12 +Release: 1mamba +Summary: Module::Find - Lets you find and use modules in categories +Group: System/Libraries/Perl +Vendor: openmamba +Distribution: openmamba +Packager: Aleph0 +URL: http://www.cpan.org +Source: http://www.cpan.org/modules/by-module/Module/Module-Find-%{version}.tar.gz +License: Artistic +Requires: perl >= %perl_major_ver +BuildRequires: perl-devel >= %perl_major_ver +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Module::Find lets you find and use modules in categories. +This can be very useful for auto-detecting driver or plugin modules. +You can differentiate between looking in the category itself or in all subcategories. + +%prep +%setup -q -n Module-Find-%{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 +* Sun Feb 09 2014 Automatic Build System 0.12-1mamba +- automatic update by autodist + +* Mon Nov 12 2012 Silvan Calarco 0.11-2mamba +- perl 5.16 mass rebuild + +* Mon May 28 2012 Automatic Build System 0.11-1mamba +- automatic version update by autodist + +* Wed Mar 16 2011 Automatic Build System 0.10-1mamba +- automatic update by autodist + +* Fri Feb 06 2009 Silvan Calarco 0.06-1mamba +- automatic update by autodist + +* Wed Nov 05 2008 Silvan Calarco 0.05-2mamba +- automatic rebuild by autodist + +* Fri Nov 09 2007 Aleph0 0.05-1mamba +- package created by autospec