perl-Package-Generator/perl-Package-Generator.spec

68 lines
2.1 KiB
RPMSpec
Raw Permalink Normal View History

%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name: perl-Package-Generator
Version: 1.106
Release: 1mamba
Summary: Package::Generator - generate new packages quickly and easily
Group: System/Libraries/Perl
Vendor: openmamba
Distribution: openmamba
Packager: Automatic Build System <autodist@mambasoft.it>
URL: http://www.cpan.org
Source: http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/Package-Generator-%{version}.tar.gz
License: GPL, Artistic
Requires: perl >= %perl_major_ver
BuildRequires: perl-devel >= %perl_major_ver
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
This module lets you quickly and easily construct new packages. It gives them unused names and sets up their package data, if provided.
%prep
%setup -q -n Package-Generator-%{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 Dec 29 2013 Automatic Build System <autodist@mambasoft.it> 1.106-1mamba
- automatic update by autodist
* Thu Jul 11 2013 Automatic Build System <autodist@mambasoft.it> 1.105-1mamba
- automatic update by autodist
* Tue Nov 13 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 0.103-2mamba
- perl 5.16 mass rebuild
* Wed Jul 15 2009 Automatic Build System <autodist@mambasoft.it> 0.103-1mamba
- automatic update by autodist
* Wed Nov 05 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 0.102-2mamba
- automatic rebuild by autodist
* Mon Oct 20 2008 gil <puntogil@libero.it> 0.102-1mamba
- package created by autospec