perl-Test-YAML-Meta/perl-Test-YAML-Meta.spec

78 lines
2.6 KiB
RPMSpec

%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name: perl-Test-YAML-Meta
Version: 0.22
Release: 1mamba
Summary: Test::YAML::Meta - Validation of the META.yml file in a distribution
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/Test/Test-YAML-Meta-%{version}.tar.gz
License: Artistic
Requires: perl >= %perl_major_ver
BuildRequires: perl-devel >= %perl_major_ver
BuildRequires: perl-YAML
#BuildRequires: perl-Test-More perl-Test-Simple
BuildRequires: perl-Test-YAML-Valid
BuildRequires: perl-Test-CPAN-Meta
BuildRequires: perl-Test-CPAN-Meta-YAML
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
This module was written to ensure that a META.yml file, provided with a standard distribution uploaded to CPAN, meets the specifications that slowly being introduced to module uploads, via the use of ExtUtils::MakeMaker, Module::Build and Module::Install.
%prep
%setup -q -n Test-YAML-Meta-%{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
* Mon Feb 02 2015 Automatic Build System <autodist@mambasoft.it> 0.22-1mamba
- automatic update by autodist
* Sun Jan 25 2015 Automatic Build System <autodist@mambasoft.it> 0.21-1mamba
- automatic update by autodist
* Wed Apr 10 2013 Automatic Build System <autodist@mambasoft.it> 0.20-1mamba
- automatic version update by autodist
* Mon Feb 25 2013 Automatic Build System <autodist@mambasoft.it> 0.19-1mamba
- automatic version update by autodist
* Sun Jun 07 2009 Automatic Build System <autodist@mambasoft.it> 0.12-1mamba
- automatic update by autodist
* Thu Nov 06 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 0.11-2mamba
- automatic rebuild by autodist
* Mon Oct 20 2008 gil <puntogil@libero.it> 0.11-1mamba
- update to 0.11
* Mon Nov 12 2007 Aleph0 <aleph0@openmamba.org> 0.06-1mamba
- package created by autospec