107 lines
3.6 KiB
RPMSpec
107 lines
3.6 KiB
RPMSpec
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
|
|
|
|
Name: perl-YAML-Syck
|
|
Version: 1.32
|
|
Release: 1mamba
|
|
Summary: YAML::Syck - Fast, lightweight YAML loader and dumper
|
|
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/YAML/YAML-Syck-%{version}.tar.gz
|
|
License: Artistic
|
|
Requires: perl >= %perl_major_ver
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: glibc-devel
|
|
BuildRequires: perl-devel
|
|
## AUTOBUILDREQ-END
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
%description
|
|
This module provides a Perl interface to the libsyck data serialization library. It exports the Dump and Load functions for converting Perl data structures to YAML strings, and the other way around.
|
|
|
|
NOTE: If you are working with other language's YAML/Syck bindings (such as Ruby), please set $YAML::Syck::ImplicitTyping to 1 before calling the Load/Dump functions. The default setting is for preserving backward-compatibility with YAML.pm.
|
|
|
|
%prep
|
|
%setup -q -n YAML-Syck-%{version}
|
|
|
|
%build
|
|
perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor
|
|
%make
|
|
%ifnarch arm
|
|
%make test
|
|
%endif
|
|
|
|
%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
|
|
* Sat May 02 2020 Automatic Build System <autodist@mambasoft.it> 1.32-1mamba
|
|
- automatic update by autodist
|
|
|
|
* Sat Oct 28 2017 Automatic Build System <autodist@mambasoft.it> 1.30-1mamba
|
|
- automatic update by autodist
|
|
|
|
* Wed Nov 09 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 1.29-2mamba
|
|
- rebuilt with perl 5.24
|
|
|
|
* Sun Dec 21 2014 Automatic Build System <autodist@mambasoft.it> 1.29-1mamba
|
|
- automatic update by autodist
|
|
|
|
* Fri May 24 2013 Automatic Build System <autodist@mambasoft.it> 1.27-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Tue Mar 12 2013 Automatic Build System <autodist@mambasoft.it> 1.25-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Thu Feb 28 2013 Automatic Build System <autodist@mambasoft.it> 1.23-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Tue Jan 08 2013 Automatic Build System <autodist@mambasoft.it> 1.22-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sun Nov 11 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 1.21-2mamba
|
|
- perl 5.16 mass rebuild
|
|
|
|
* Thu Oct 11 2012 Automatic Build System <autodist@mambasoft.it> 1.21-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Tue Aug 07 2012 Automatic Build System <autodist@mambasoft.it> 1.20-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sun Nov 06 2011 Automatic Build System <autodist@mambasoft.it> 1.18-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Thu Mar 17 2011 Automatic Build System <autodist@mambasoft.it> 1.17-1mamba
|
|
- automatic update by autodist
|
|
|
|
* Fri May 01 2009 Automatic Build System <autodist@mambasoft.it> 1.07-1mamba
|
|
- automatic update by autodist
|
|
|
|
* Thu Nov 06 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 1.05-2mamba
|
|
- automatic rebuild by autodist
|
|
|
|
* Sat Oct 25 2008 gil <puntogil@libero.it> 1.05-1mamba
|
|
- update to 1.05
|
|
|
|
* Mon Nov 12 2007 Aleph0 <aleph0@openmamba.org> 0.99-1mamba
|
|
- package created by autospec
|