File perl-YAML-Syck.spec of Package perl-YAML-Syck

#
# spec file for package perl-YAML-Syck (Version 1.07)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           perl-YAML-Syck
%define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' )
Summary:        A fast, lightweight YAML loader and dumper library
Version:        1.07
Release:        1
License:        MIT License (or similar)
Group:          Development/Libraries/Perl
Url:            http://search.cpan.org/~audreyt/
Source:         %{cpan_name}-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(Devel::Leak)
Requires:       perl = %{perl_version}

%description
JSON::Syck is a syck implementation of JSON parsing and generation.
 Because JSON is YAML (http://redhanded.hobix.com/inspect/yamlIsJson.html),
 using syck gives you a fast and memory-efficient parser and
 dumper for JSON data representation.

However, a newer module JSON::XS, has since emerged.
 It is more flexible, efficient and robust,
 so please consider using it instead of this module.

  Author:	Audrey Tang <cpan@audreyt.org>


%prep
%setup -q -n %{cpan_name}-%{version}

%build
CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL
%{__make}

%check
%{__make} test

%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist

%clean 
%{__rm} -rf $RPM_BUILD_ROOT

%files -f %{name}.files
# normally you only need to check for doc files
%defattr(-,root,root)
%doc COPYING Changes README

%changelog
openSUSE Build Service is sponsored by