[suggest] spec for perl-YAML-Syck (much newer version of CPAN module)

Al Pacifico adpacifico at users.sourceforge.net
Fri Sep 22 05:14:01 CEST 2006


Name:           perl-YAML-Syck
Version:        0.67
Release:        1%{?dist}
Summary:        Fast, lightweight YAML loader and dumper
Group:          Development/Libraries
License:        GPL or Artistic
URL:
http://search.cpan.org/~nuffin/YAML-Syck-%{version}/lib/YAML/Syck.pod
<http://search.cpan.org/%7Enuffin/YAML-Syck-%25%7Bversion%7D/lib/YAML/Syck.pod>
Source0:
http://search.cpan.org/CPAN/authors/id/N/NU/NUFFIN/YAML-Syck-%{version}.tar.gz<http://search.cpan.org/CPAN/authors/id/N/NU/NUFFIN/YAML-Syck-%25%7Bversion%7D.tar.gz>
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u}
-n)

BuildRequires:  perl
Requires:  perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo
$version))

%description
YAML is a human-readable data serialization format. 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' -a -size 0 -exec rm -f {} ';'
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
chmod -R u+w $RPM_BUILD_ROOT/*


%check
make test


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc README Changes
%doc %{_mandir}/man3/*.3*
%{perl_vendorarch}/auto/YAML/Syck/
%{perl_vendorarch}/JSON/
%{perl_vendorarch}/YAML/Dumper/
%{perl_vendorarch}/YAML/Loader/
%{perl_vendorarch}/YAML/Syck.p*


%changelog
* Thu Sep 08 2006 Al Pacifico <adpacifico at users.sourceforge.net> - 0.67-1
- Initial packaging.


-- 
Al Pacifico
Seattle, WA
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.repoforge.org/pipermail/users/attachments/20060921/a217d13c/attachment-0004.html>


More information about the users mailing list