# # spec file for package perl-App-SerializeUtils # # Copyright (c) 2011 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/ # Name: perl-App-SerializeUtils Version: 0.02 Release: 0 Summary: Perl Module for Serialization Tasks Source: http://search.cpan.org/CPAN/authors/id/S/SH/SHARYANTO/App-SerializeUtils-%{version}.tar.gz Url: http://search.cpan.org/dist/App-SerializeUtils Group: Development/Libraries/Perl License: GNU General Public License version 2 or later or Artistic (GPLv2+ or Artistic) BuildRoot: %{_tmppath}/%{name}-%{version}-build %{perl_requires} BuildRequires: perl-macros BuildRequires: perl(Module::Build) >= 0.3601 BuildRequires: perl(Test::More) >= 0.96 BuildRequires: perl(Data::Dump) BuildRequires: perl(YAML::Syck) BuildRequires: perl(JSON) BuildRequires: perl(PHP::Serialization) Requires: perl(Data::Dump) Requires: perl(YAML::Syck) Requires: perl(JSON) Requires: perl(PHP::Serialization) %if 0%{?suse_version} >= 1120 BuildArch: noarch %endif %description This package contains a Perl module to convert between different serializable formats. %package -n serialize-utils Summary: Command-Line Utilities for Serialization Tasks Group: Productivity/Text/Convertors Requires: %{name} = %{version} %description -n serialize-utils This package contains command-line utilities to convert between different serializable formats: * Data::Dump * PHP serializable * YAML * JSON * YAML It also includes a pretty-printer for JSON. %prep %setup -q -n "App-SerializeUtils-%{version}" %build %__perl ./Build.PL ./Build %install ./Build pure_install --destdir "%{buildroot}" --installdirs vendor %perl_process_packlist %check ./Build test %clean %{?buildroot:%__rm -rf "%{buildroot}"} %files %defattr(-,root,root) %doc README Changes LICENSE %dir %{perl_vendorlib}/App %{perl_vendorlib}/App/SerializeUtils.pm %doc %{perl_man3dir}/App::SerializeUtils.%{perl_man3ext}%{ext_man} %files -n serialize-utils %defattr(-,root,root) %{_bindir}/dd2json %{_bindir}/dd2php %{_bindir}/dd2yaml %{_bindir}/json2dd %{_bindir}/json2php %{_bindir}/json2yaml %{_bindir}/php2dd %{_bindir}/php2json %{_bindir}/php2yaml %{_bindir}/pp-json %{_bindir}/yaml2dd %{_bindir}/yaml2json %{_bindir}/yaml2php %doc %{_mandir}/man1/dd2json.1* %doc %{_mandir}/man1/dd2php.1* %doc %{_mandir}/man1/dd2yaml.1* %doc %{_mandir}/man1/json2dd.1* %doc %{_mandir}/man1/json2php.1* %doc %{_mandir}/man1/json2yaml.1* %doc %{_mandir}/man1/php2dd.1* %doc %{_mandir}/man1/php2json.1* %doc %{_mandir}/man1/php2yaml.1* %doc %{_mandir}/man1/pp-json.1* %doc %{_mandir}/man1/yaml2dd.1* %doc %{_mandir}/man1/yaml2json.1* %doc %{_mandir}/man1/yaml2php.1* %changelog