perl-YAML-LibYAML/perl-YAML-LibYAML.spec

89 lines
2.7 KiB
RPMSpec
Raw Normal View History

%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name: perl-YAML-LibYAML
Version: 0.59
Release: 1mamba
Summary: An XS Wrapper Module of libyaml
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/I/IN/INGY/YAML-LibYAML-%{version}.tar.gz
#Patch0: %{name}-<pck-version>-<patch-description>.patch
License: GPL, Artistic
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: perl-devel
## AUTOBUILDREQ-END
BuildRequires: perl-devel
Requires: perl >= %perl_major_ver
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
An XS Wrapper Module of libyaml.
%prep
%setup -q -n YAML-LibYAML-%{version}
#%patch0 -p1
%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)
%doc README
%changelog
* Sun Feb 15 2015 Automatic Build System <autodist@mambasoft.it> 0.59-1mamba
- automatic update by autodist
* Fri Jan 16 2015 Automatic Build System <autodist@mambasoft.it> 0.56-1mamba
- automatic update by autodist
* Fri Dec 12 2014 Automatic Build System <autodist@mambasoft.it> 0.54-1mamba
- automatic update by autodist
* Sat Sep 20 2014 Automatic Build System <autodist@mambasoft.it> 0.52-1mamba
- automatic update by autodist
* Thu Jul 31 2014 Automatic Build System <autodist@mambasoft.it> 0.44-1mamba
- automatic update by autodist
* Tue Mar 19 2013 Automatic Build System <autodist@mambasoft.it> 0.41-1mamba
- automatic version update by autodist
* Thu Feb 21 2013 Automatic Build System <autodist@mambasoft.it> 0.39-1mamba
- automatic version update by autodist
* Sun Nov 11 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 0.38-2mamba
- perl 5.16 mass rebuild
* Wed Apr 25 2012 Automatic Build System <autodist@mambasoft.it> 0.38-1mamba
- automatic version update by autodist
* Sun May 22 2011 Automatic Build System <autodist@mambasoft.it> 0.35-1mamba
- automatic update by autodist
* Mon Mar 21 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 0.34-1mamba
- package created by autospec