perl-YAML-Tiny/perl-YAML-Tiny.spec

92 lines
2.9 KiB
RPMSpec

%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name: perl-YAML-Tiny
Version: 1.51
Release: 2mamba
Summary: YAML::Tiny - Read/Write YAML files with as little code as possible
Group: System/Libraries/Perl
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.cpan.org
Source: http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/YAML-Tiny-%{version}.tar.gz
License: Artistic, GPL
Requires: perl >= %perl_major_ver
BuildRequires: perl-devel >= %perl_major_ver
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
YAML::Tiny - Read/Write YAML files with as little code as possible
%prep
%setup -q -n YAML-Tiny-%{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 Nov 11 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 1.51-2mamba
- perl 5.16 mass rebuild
* Tue May 01 2012 Automatic Build System <autodist@mambasoft.it> 1.51-1mamba
- automatic version update by autodist
* Fri Aug 05 2011 Automatic Build System <autodist@mambasoft.it> 1.50-1mamba
- automatic version update by autodist
* Thu Feb 24 2011 Automatic Build System <autodist@mambasoft.it> 1.48-1mamba
- automatic update by autodist
* Mon Jan 31 2011 Automatic Build System <autodist@mambasoft.it> 1.47-1mamba
- automatic update by autodist
* Thu Dec 16 2010 Automatic Build System <autodist@mambasoft.it> 1.46-1mamba
- automatic update by autodist
* Sat Dec 11 2010 Automatic Build System <autodist@mambasoft.it> 1.45_02-1mamba
- automatic update by autodist
* Mon Aug 16 2010 Automatic Build System <autodist@mambasoft.it> 1.44-1mamba
- automatic update by autodist
* Mon Jul 12 2010 Automatic Build System <autodist@mambasoft.it> 1.43-1mamba
- automatic update by autodist
* Tue Jun 29 2010 Automatic Build System <autodist@mambasoft.it> 1.42-1mamba
- automatic update by autodist
* Sat Jan 16 2010 Automatic Build System <autodist@mambasoft.it> 1.41-1mamba
- automatic update by autodist
* Sat Aug 01 2009 Automatic Build System <autodist@mambasoft.it> 1.40-1mamba
- automatic update by autodist
* Mon Jun 22 2009 Automatic Build System <autodist@mambasoft.it> 1.39-1mamba
- automatic update by autodist
* Sat May 02 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 1.36-1mamba
- package created by autospec