From 51485b0c534f1fac5c128c9108369e6a8fdcaa69 Mon Sep 17 00:00:00 2001 From: gil Date: Sat, 6 Jan 2024 09:53:40 +0100 Subject: [PATCH] package created by autospec [release 0.81-1mamba;Mon Feb 21 2011] --- README.md | 8 ++++++ perl-XML-Dumper.spec | 63 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 71 insertions(+) create mode 100644 perl-XML-Dumper.spec diff --git a/README.md b/README.md index 0abcda7..f5975b8 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,10 @@ # perl-XML-Dumper +XML::Dumper dumps Perl data to XML format. XML::Dumper can also read +XML data that was previously dumped by the module and convert it back +to Perl. Perl objects are blessed back to their original packaging; +if the modules are installed on the system where the perl objects are +reconstituted from xml, they will behave as expected. Intuitively, if +the perl objects are converted and reconstituted in the same +environment, all should be well. + diff --git a/perl-XML-Dumper.spec b/perl-XML-Dumper.spec new file mode 100644 index 0000000..9d77c25 --- /dev/null +++ b/perl-XML-Dumper.spec @@ -0,0 +1,63 @@ +%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) + +Name: perl-XML-Dumper +Version: 0.81 +Release: 1mamba +Summary: XML::Dumper - Perl module for dumping Perl objects from/to XML +Group: System/Libraries/Perl +Vendor: openmamba +Distribution: openmamba +Packager: gil +URL: http://www.cpan.org +Source: http://search.cpan.org/CPAN/authors/id/M/MI/MIKEWONG/XML-Dumper-%{version}.tar.gz +License: GPL, Artistic +BuildRequires: perl(XML::Parser) +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(Test::More) +BuildRequires: perl-devel +Requires: perl >= %perl_major_ver +Requires: perl(XML::Parser) +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +XML::Dumper dumps Perl data to XML format. XML::Dumper can also read +XML data that was previously dumped by the module and convert it back +to Perl. Perl objects are blessed back to their original packaging; +if the modules are installed on the system where the perl objects are +reconstituted from xml, they will behave as expected. Intuitively, if +the perl objects are converted and reconstituted in the same +environment, all should be well. + +%prep +%setup -q -n XML-Dumper-%{version} + + +iconv -f iso-8859-1 -t utf-8 < README > README_ +mv -f "README_" "READMEe" + + +%build +perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor +%make +%make test + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall_perl + +find %{buildroot} -type f -name .packlist -exec rm -f {} ';' +find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';' +chmod -R u+w %{buildroot}/* + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{perl_vendorlib}/* +%{_mandir}/man3/*.3pm.gz +%doc Changes README + +%changelog +* Mon Feb 21 2011 gil 0.81-1mamba +- package created by autospec