From 1b5436bd807fd430fd8f7e4855d726799ae1043b Mon Sep 17 00:00:00 2001 From: Chris Weyl Date: Fri, 4 May 2007 22:42:02 +0000 Subject: [PATCH] initial import --- .cvsignore | 1 + perl-YAML-Syck.spec | 55 +++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 57 insertions(+) create mode 100644 perl-YAML-Syck.spec diff --git a/.cvsignore b/.cvsignore index e69de29..d954b19 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +YAML-Syck-0.82.tar.gz diff --git a/perl-YAML-Syck.spec b/perl-YAML-Syck.spec new file mode 100644 index 0000000..3cd90b3 --- /dev/null +++ b/perl-YAML-Syck.spec @@ -0,0 +1,55 @@ +Name: perl-YAML-Syck +Version: 0.82 +Release: 1%{?dist} +Summary: Fast, lightweight YAML loader and dumper +License: MIT +Group: Development/Libraries +URL: http://search.cpan.org/dist/YAML-Syck/ +Source0: http://www.cpan.org/authors/id/A/AU/AUDREYT/YAML-Syck-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildRequires: perl(Devel::Leak) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%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. + +%prep +%setup -q -n YAML-Syck-%{version} + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT + +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT + +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \; +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc Changes COMPATIBILITY COPYING README +%{perl_vendorarch}/auto/* +%{perl_vendorarch}/YAML* +%{perl_vendorarch}/JSON* +%{_mandir}/man3/* + +%changelog +* Thu Feb 01 2007 Steven Pritchard 0.82-1 +- Specfile autogenerated by cpanspec 1.69.1. +- Remove explicit build dependency on perl. +- Include JSON module. +- BR Devel::Leak (for tests). diff --git a/sources b/sources index e69de29..41eb723 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +ebb765d22bc14bddab4f86a5ade249d9 YAML-Syck-0.82.tar.gz